fragments_repeats object
fragments_repeats.Rd
An R6 Class representing a fragments_repeats object.
Details
The idea behind this class is to store data for processing of the peak level data towards calculation of repeat instability metrics.
It contains important setters and getters for alleles and index peaks. It's very important that the exactly correct size and repeat value is set for the alleles and index peak. This is used for subsetting etc, so if it's not exactly correct many functions would break.
It also contains methods for plotting the ladder and traces (if available).
Super class
trace::fragments
-> fragments_repeats
Public fields
trace_bp_df
A dataframe of bp size for every scan from
find_ladders()
.peak_table_df
A dataframe containing the fragment peak level information.
repeat_table_df
A dataframe containing the fragment peak level information with the repeat size added. May or may not be the same as peak_table_df depending on what options are chosen in
call_repeats
.
Methods
Method set_allele_peak()
This sets a single allele size/repeat. It searches through the appropriate peak table and finds the closest peak to the value that's provided.
Arguments
allele
Either
1
or2
, indicating which allele information should be set. Allele 1 is the only one used for repeat instability metrics calculations.unit
Either "size" or "repeats" to indicate if the value you're providing is bp size or repeat length.
value
Numeric vector (length one) of the size/repeat length to set.
Method set_index_peak()
This sets the index repeat length. It searches through the repeat table and finds the closest peak to the value that's provided.
Method plot_fragments()
This plots the peak/repeat table as a histogram