Contains methods for reading and displaying contents of the
fragment_length_hist.json.gz
file output from TSO.
Super class
dracarys::File
-> TsoFragmentLengthHistFile
Methods
Method read()
Reads the fragment_length_hist.json.gz
file output from TSO.
Method write()
Writes a tidy version of the fragment_length_hist.json.gz
file output
from TSO.
Method plot()
Plots the fragment length distributions as given in the
fragment_length_hist.json.gz
file.
Examples
x <- system.file("extdata/tso/sample705.fragment_length_hist.json.gz", package = "dracarys")
fl <- TsoFragmentLengthHistFile$new(x)
d_parsed <- fl$read() # or read(fl)
fl$plot(d_parsed, 5)
fl$write(d_parsed, out_dir = tempdir(), prefix = "sample705", out_format = "tsv")