Skip to contents

Tool1 file parsing and manipulation.

Super class

nemo::Tool -> Tool1

Methods

Inherited methods


Method new()

Create a new Tool1 object.

Usage

Tool1$new(path = NULL, files_tbl = NULL)

Arguments

path

(character(1))
Output directory of tool. If files_tbl is supplied, this basically gets ignored.

files_tbl

(tibble(n))
Tibble of files from list_files_dir().


Method parse_table1()

Read table1.tsv file.

Usage

Tool1$parse_table1(x)

Arguments

x

(character(1))
Path to file.


Method tidy_table1()

Tidy table1.tsv file.

Usage

Tool1$tidy_table1(x)

Arguments

x

(character(1))
Path to file.


Method parse_table2()

Read table2.tsv file.

Usage

Tool1$parse_table2(x)

Arguments

x

(character(1))
Path to file.


Method tidy_table2()

Tidy table2.tsv file.

Usage

Tool1$tidy_table2(x)

Arguments

x

(character(1))
Path to file.


Method parse_table3()

Read table3.tsv file.

Usage

Tool1$parse_table3(x)

Arguments

x

(character(1))
Path to file.


Method tidy_table3()

Tidy table3.tsv file.

Usage

Tool1$tidy_table3(x)

Arguments

x

(character(1))
Path to file.


Method clone()

The objects of this class are cloneable with this method.

Usage

Tool1$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

cls <- Tool1
indir <- system.file("extdata/tool1", package = "nemo")
odir <- tempdir()
id <- "tool1_run1"
obj <- cls$new(indir)
obj$nemofy(odir = odir, format = "parquet", id = id)
(lf <- list.files(odir, pattern = "tool1.*parquet", full.names = FALSE))
#> [1] "sampleA_2_tool1_table1.parquet" "sampleA_tool1_table1.parquet"  
#> [3] "sampleA_tool1_table2.parquet"   "sampleA_tool1_table3.parquet"