Mercurial > repos > recetox > waveica
comparison waveica_wrapper.R @ 9:6fc9f6dbcef5 draft
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/waveica commit bbcbf9c32acaedffb78f0caef47faeed8f68cb52
author | recetox |
---|---|
date | Fri, 16 May 2025 10:14:27 +0000 |
parents | bf32ae95a06f |
children | 821062fc5782 |
comparison
equal
deleted
inserted
replaced
8:bf32ae95a06f | 9:6fc9f6dbcef5 |
---|---|
15 } | 15 } |
16 | 16 |
17 read_data <- function(file, ext) { | 17 read_data <- function(file, ext) { |
18 if (ext == "csv") { | 18 if (ext == "csv") { |
19 data <- read.csv(file, header = TRUE) | 19 data <- read.csv(file, header = TRUE) |
20 } else if (ext == "tsv") { | 20 } else if (ext == "tsv" || ext == "tabular") { |
21 data <- read.csv(file, header = TRUE, sep = "\t") | 21 data <- read.csv(file, header = TRUE, sep = "\t") |
22 } else { | 22 } else { |
23 data <- arrow::read_parquet(file) | 23 data <- arrow::read_parquet(file) |
24 } | 24 } |
25 | 25 |