Contains methods for reading and displaying contents of
the wgs_coverage_metrics_<phenotype>.csv
file output from DRAGEN.
This file contains read depth of coverage metrics.
Super class
dracarys::File
-> WgsCoverageMetricsFile
Methods
Method read()
Reads the wgs_coverage_metrics_<phenotype>.csv
file output from DRAGEN.
Method write()
Writes a tidy version of the wgs_coverage_metrics_<phenotype>.csv
file output
from DRAGEN
Examples
x1 <- system.file("extdata/wgs/SEQC-II.wgs_coverage_metrics_normal.csv.gz", package = "dracarys")
x2 <- system.file("extdata/wgs/SEQC-II.wgs_coverage_metrics_tumor.csv.gz", package = "dracarys")
cm1 <- WgsCoverageMetricsFile$new(x1)
cm2 <- WgsCoverageMetricsFile$new(x2)
d1 <- read(cm1)
d2 <- read(cm2)
cm1$write(d1, out_dir = tempdir(), prefix = "seqc_n", out_format = "tsv")
cm2$write(d2, out_dir = tempdir(), prefix = "seqc_t", out_format = "tsv")