Cobalt file parsing and manipulation.
Super class
nemo::Tool -> Cobalt
Methods
Method new()
Create a new Cobalt object.
Usage
Cobalt$new(path = NULL, files_tbl = NULL)Arguments
path(
character(1))
Output directory of tool. Iffiles_tblis supplied, this is ignored.files_tbl(
tibble(n))
Tibble of files fromnemo::list_files_dir().
Examples
cls <- Cobalt
indir <- system.file("extdata/oa", package = "tidywigits")
odir <- tempdir()
id <- "cobalt_run1"
obj <- cls$new(indir)
obj$run(output_dir = odir, format = "parquet", input_id = id)
(lf <- list.files(odir, pattern = "cobalt_.*parquet", full.names = FALSE))
#> [1] "sample1_cobalt_gcmedbuckets.parquet" "sample1_cobalt_gcmedsample.parquet"
#> [3] "sample1_cobalt_ratiomed.parquet" "sample1_cobalt_ratiopcf.parquet"
#> [5] "version_cobalt_version.parquet"
