Skip to contents

Sigs file parsing and manipulation.

Super class

nemo::Tool -> Sigs

Methods

Inherited methods


Method new()

Create a new Sigs object.

Usage

Sigs$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 nemo::list_files_dir().


Method parse_allocation()

Read allocation.tsv file.

Usage

Sigs$parse_allocation(x)

Arguments

x

(character(1))
Path to file.


Method tidy_allocation()

Tidy allocation.tsv file.

Usage

Sigs$tidy_allocation(x)

Arguments

x

(character(1))
Path to file.


Method parse_snvcounts()

Read snv_counts.csv file.

Usage

Sigs$parse_snvcounts(x)

Arguments

x

(character(1))
Path to file.


Method tidy_snvcounts()

Tidy snv_counts.csv file.

Usage

Sigs$tidy_snvcounts(x)

Arguments

x

(character(1))
Path to file.


Method clone()

The objects of this class are cloneable with this method.

Usage

Sigs$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

cls <- Sigs
indir <- system.file("extdata/oa", package = "tidywigits")
odir <- tempdir()
id <- "sigs_run1"
obj <- cls$new(indir)
obj$nemofy(odir = odir, format = "parquet", id = id)
#> NULL
(lf <- list.files(odir, pattern = "sigs.*parquet", full.names = FALSE))
#> character(0)