read_isa: Read or write an isatab file

View source: R/isatools.R

read_isaR Documentation

Read or write an isatab file

Description

Read or write an isatab file

Usage

read_isa(file, type = "auto")

write_isa(x, file = NULL)

Arguments

file

file name to read / write. For write_isa, if file is missing, the function will return the isatab object as a character vector. If file is not missing, the function will return the file name.

type

Either 'auto', or 'investigation', 'study', 'assay' (can be abbreviated)

x

isatab object

Value

read_isa() returns either an object of class isatab (for study / assay files) or an object of class isa_i (for investigation files).

See Also

isatab

Examples

file <- system.file('extdata', 'i_Investigation.txt', package='isaeditor')
isa_i <- read_isa(file)
print(isa_i)

file <- system.file('extdata', 's_isatab.txt', package='isaeditor')
isa_s <- read_isa(file)
print(isa_s)


bihealth/isaeditor documentation built on Feb. 8, 2025, 2:23 p.m.