Contains methods for reading and plotting contents of
the fragment_length_hist.csv
file output from DRAGEN.
Super class
dracarys::File
-> FragmentLengthHistFile
Methods
Method read()
Reads the fragment_length_hist.csv
file, which contains the
fragment length distribution for each sample.
Method write()
Writes a tidy version of the fragment_length_hist.csv
file output
from DRAGEN.
Method plot()
Plots the fragment length distributions as given in the
fragment_length_hist.csv
file.
Examples
x <- system.file("extdata/wgs/SEQC-II.fragment_length_hist.csv.gz", package = "dracarys")
fl <- FragmentLengthHistFile$new(x)
d <- fl$read() # or read(fl)
fl$plot(d) # or plot(fl)
fl$write(d |> dplyr::filter(count > 10), out_dir = tempdir(), prefix = "seqc_fl")