Skip to contents

Alignments file parsing and manipulation.

Super class

nemo::Tool -> Alignments

Methods

Inherited methods


Method new()

Create a new Alignments object.

Usage

Alignments$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_dupfreq()

Read duplicate_freq.tsv file.

Usage

Alignments$parse_dupfreq(x)

Arguments

x

(character(1))
Path to file.


Method tidy_dupfreq()

Tidy duplicate_freq.tsv file.

Usage

Alignments$tidy_dupfreq(x)

Arguments

x

(character(1))
Path to file.


Method parse_markdup()

Read md.metrics file.

Usage

Alignments$parse_markdup(x)

Arguments

x

(character(1))
Path to file.


Method tidy_markdup()

Tidy md.metrics file.

Usage

Alignments$tidy_markdup(x)

Arguments

x

(character(1))
Path to file.


Method clone()

The objects of this class are cloneable with this method.

Usage

Alignments$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

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