Contains methods for reading and displaying contents of
the wgs_fine_hist_<phenotype>.csv
file output from DRAGEN.
This file contains two columns: Depth and Overall.
The value in the Depth column ranges from 0 to 1000+ and the Overall
column indicates the number of loci covered at the corresponding depth.
Super class
dracarys::File
-> WgsFineHistFile
Methods
Method read()
Reads the wgs_fine_hist_<phenotype>.csv
file output from DRAGEN.
Method write()
Writes a tidy version of the wgs_fine_hist_<phenotype>.csv
file output
from DRAGEN
Method plot()
Plots the wgs_fine_hist_<phenotype>.csv
files.
Usage
WgsFineHistFile$plot(d, x_lim = c(0, 300))
Examples
x1 <- system.file("extdata/wgs/SEQC-II.wgs_fine_hist_normal.csv.gz", package = "dracarys")
x2 <- system.file("extdata/wgs/SEQC-II.wgs_fine_hist_tumor.csv.gz", package = "dracarys")
ch1 <- WgsFineHistFile$new(x1)
ch2 <- WgsFineHistFile$new(x2)
d1 <- read(ch1)
d2 <- read(ch2)
ch1$plot(d1)
ch2$plot(d2)
ch1$write(d1, out_dir = tempdir(), prefix = "seqc_n", out_format = "tsv")
ch2$write(d2, out_dir = tempdir(), prefix = "seqc_t", out_format = "tsv")