Contains methods for reading and displaying contents of
the mapping_metrics.csv
file output from DRAGEN.
This file contains mapping and aligning metrics, like the metrics computed by
the Samtools Flagstat command. These metrics are available on an aggregate
level (over all input data), and on a per read group level. NOTE: we are
keeping only the read group level metrics (i.e. removing the aggregate data).
Unless explicitly stated, the metrics units are in reads (i.e., not in
terms of pairs or alignments).
Super class
dracarys::File
-> MappingMetricsFile
Methods
Method read()
Reads the mapping_metrics.csv
file output from DRAGEN.
Method write()
Writes a tidy version of the mapping_metrics.csv
file output
from DRAGEN.
Examples
x <- system.file("extdata/wgs/SEQC-II.mapping_metrics.csv.gz", package = "dracarys")
mm <- MappingMetricsFile$new(x)
d <- mm$read() # or read(mm)
mm$write(d, out_dir = tempdir(), prefix = "seqc_mm", out_format = "tsv")