Skip to contents

Contains methods for reading and displaying contents of the fastqc_metrics.csv file output from DRAGEN.

Super class

dracarys::File -> FastqcMetricsFile

Methods

Inherited methods


Method read()

Reads the fastqc_metrics.csv file output from DRAGEN.

Usage

FastqcMetricsFile$read()

Returns

tibble. TODO.


Method write()

Writes a tidy version of the fastqc_metrics.csv file output from DRAGEN.

Usage

FastqcMetricsFile$write(
  d,
  out_dir = NULL,
  prefix,
  out_format = "tsv",
  drid = NULL
)

Arguments

d

Parsed object from self$read().

out_dir

Output directory.

prefix

Prefix of output file(s).

out_format

Format of output file(s).

drid

dracarys ID to use for the dataset (e.g. wfrid.123, prid.456).


Method clone()

The objects of this class are cloneable with this method.

Usage

FastqcMetricsFile$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

x <- system.file("extdata/wgs/SEQC-II.fastqc_metrics.csv.gz", package = "dracarys")
fq <- FastqcMetricsFile$new(x)
d <- fq$read()
fq$write(d, out_dir = tempdir(), prefix = "seqc_fq", out_format = "tsv")
# fq$plot(d)