readISATab: Read an ISA-Tab dataset into an R object.

Description Usage Arguments Value Examples

View source: R/read.R

Description

Reads an ISA-Tab dataset, given as a zip file or as a set of files in a specific folder, and builds an object of the ISA class.

Usage

1
readISATab(path = getwd(), zipfile = NULL, verbose = FALSE)

Arguments

path

A character vector with the name of the directory in which the ISA-Tab files are located (if the parameter zipfile is not provided or if it is equal to NULL), or the name of the directory where the zip archive containing the ISA-Tab files is located (if the parameter zipfile is not NULL). The default value is the current working directory.

zipfile

A character vector with the name of the zip archive containing ISA-Tab files themselves (without a directory name in the zip archive). The default value is NULL (specifying that the ISA-Tab files have not been archived in one zipped file).

verbose

Should the messages for the different reading steps be shown?

Value

An object of the ISA class.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Read example Atwell data set.
isaObject1 <- readISATab(path = file.path(system.file("extdata/Atwell",
                                          package = "isatabr")))

## Read example zipped Atwell data set.
isazip <- "Atwell.zip"
isaObject2 <- readISATab(path = file.path(system.file("extdata",
                                                      package = "isatabr")),
                         zipfile = isazip,
                         verbose = TRUE)

isatabr documentation built on July 16, 2021, 9:09 a.m.