Skip to contents

Cobalt file parsing and manipulation.

Super class

nemo::Tool -> Cobalt

Methods

Inherited methods


Method new()

Create a new Cobalt object.

Usage

Cobalt$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_gcmed()

Read gc.median.tsv file.

Usage

Cobalt$parse_gcmed(x)

Arguments

x

(character(1))
Path to file.


Method tidy_gcmed()

Tidy gc.median.tsv file.

Usage

Cobalt$tidy_gcmed(x)

Arguments

x

(character(1))
Path to file.


Method parse_ratiomed()

Read ratio.median.tsv file.

Usage

Cobalt$parse_ratiomed(x)

Arguments

x

(character(1))
Path to file.


Method tidy_ratiomed()

Tidy ratio.median.tsv file.

Usage

Cobalt$tidy_ratiomed(x)

Arguments

x

(character(1))
Path to file.


Method parse_ratiotsv()

Read ratio.tsv file.

Usage

Cobalt$parse_ratiotsv(x)

Arguments

x

(character(1))
Path to file.


Method tidy_ratiotsv()

Tidy ratio.tsv file.

Usage

Cobalt$tidy_ratiotsv(x)

Arguments

x

(character(1))
Path to file.


Method parse_ratiopcf()

Read ratio.pcf file.

Usage

Cobalt$parse_ratiopcf(x)

Arguments

x

(character(1))
Path to file.


Method tidy_ratiopcf()

Tidy ratio.pcf file.

Usage

Cobalt$tidy_ratiopcf(x)

Arguments

x

(character(1))
Path to file.


Method parse_version()

Read cobalt.version file.

Usage

Cobalt$parse_version(x)

Arguments

x

(character(1))
Path to file.


Method tidy_version()

Tidy cobalt.version file.

Usage

Cobalt$tidy_version(x)

Arguments

x

(character(1))
Path to file.


Method clone()

The objects of this class are cloneable with this method.

Usage

Cobalt$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

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