Skip to contents

Flagstats file parsing and manipulation.

Super class

nemo::Tool -> Flagstats

Methods

Inherited methods


Method new()

Create a new Flagstats object.

Usage

Flagstats$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_flagstats()

Read flagstat file.

Usage

Flagstats$parse_flagstats(x)

Arguments

x

(character(1))
Path to file.


Method tidy_flagstats()

Tidy flagstat file.

Usage

Flagstats$tidy_flagstats(x)

Arguments

x

(character(1))
Path to file.


Method clone()

The objects of this class are cloneable with this method.

Usage

Flagstats$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

cls <- Flagstats
indir <- system.file("extdata/oa", package = "tidywigits")
odir <- tempdir()
id <- "flagstats_run1"
obj <- cls$new(indir)
obj$nemofy(odir = odir, format = "parquet", id = id)
#> NULL
(lf <- list.files(odir, pattern = "parquet", full.names = FALSE))
#> character(0)
#TODO: add flagstats test data