Skip to contents

Amber file parsing and manipulation.

Super class

nemo::Tool -> Amber

Methods

Public methods

Inherited methods


Method new()

Create a new Amber object.

Usage

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

Arguments

path

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

files_tbl

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


Method tidy_qc()

Tidy qc file.

Usage

Amber$tidy_qc(x)

Arguments

x

(character(1) or tibble())
Path to file or already parsed tibble.

Examples

cls <- Amber
indir <- system.file("extdata/oa", package = "tidywigits")
odir <- tempdir()
id <- "amber_run1"
obj <- cls$new(indir)
obj$run(output_dir = odir, format = "parquet", input_id = id)
(lf <- list.files(odir, pattern = "amber_.*parquet", full.names = FALSE))
#> [1] "sample1_amber_bafpcf.parquet"          
#> [2] "sample1_amber_contaminationtsv.parquet"
#> [3] "sample1_amber_homozygousregion.parquet"
#> [4] "sample1_amber_qc.parquet"