| fragments_trace | R Documentation |
An R6 Class representing a fragments_trace object.
The idea behind this class is to store data for processing of the continuous trace-level information from an fsa file towards peak level data.
It also contains methods for plotting the ladder and traces
trace::fragments -> fragments_trace
unique_idunique id of the sample usually the file name
fsaThe whole fsa file, output from seqinr::read.abif()
raw_ladderThe raw data from the ladder channel
raw_dataThe raw data from the sample channel
scanThe scan number
off_scale_scansvector indicating which scales were too big and off scale. Note can be in any channel
ladder_dfA dataframe of the identified ladder from find_ladders(). Scan is the scan number of peak and size is the associated bp size.
trace_bp_dfA dataframe of bp size for every scan from find_ladders().
new()Create a new fragments_trace.
fragments_trace$new(unique_id, fsa_file)
unique_idusually the file name
fsa_fileoutput from seqinr::read.abif()
A new fragments_trace object.
plot_ladder()plot the ladder data
fragments_trace$plot_ladder(xlim = NULL, ylim = NULL, plot_title = NULL)
xlimnumeric vector length two specifying the x axis limits
ylimnumeric vector length two specifying the y axis limits
plot_titleA character string for setting the plot title. Defaults to the unique id of the object
A base R plot
plot_data_channels()plot the raw data channels in the fsa file. It identifies every channel that has "DATA" in its name.
fragments_trace$plot_data_channels()
A base R plot
clone()The objects of this class are cloneable with this method.
fragments_trace$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.