| fragments | R Documentation |
An R6 Class representing a fragments object.
This is the parent class of both fragments_trace and fragments_repeats object. The idea is that shared fields and methods are both inherited from this object, but it is not itself directly used.
unique_idunique id of the sample usually the file name
metrics_group_idsample grouping for metrics calculations. Associated with add_metadata().
metrics_baseline_controllogical to indicate if sample is the baseline control. Associated with add_metadata().
batch_run_idfragment analysis run. Associated with add_metadata().
batch_sample_idAn id for the sample used as size standard for repeat calculation. Associated with add_metadata().
batch_sample_modal_repeatValidated repeat length for the modal repeat repeat in that sample. Associated with add_metadata().
new()initialization function that is not used since the child classes are the main object of this package.
fragments$new(unique_id)
unique_idunique_id
print()A function to print informative information to the console
fragments$print()
plot_trace()plot the trace data
fragments$plot_trace( show_peaks = TRUE, x_axis = NULL, ylim = NULL, xlim = NULL, signal_color_threshold = 0.05, plot_title = NULL )
show_peaksA logical to say if the called peaks should be plotted on top of the trace. Only valid for fragments_repeats objects.
x_axisEither "size" or "repeats" to indicate what should be plotted on the x-axis.
ylimnumeric vector length two specifying the y axis limits
xlimnumeric vector length two specifying the x axis limits
signal_color_thresholdA threshold value to colour the peaks relative to the tallest peak.
plot_titleA character string for setting the plot title. Defaults to the unique id of the object
A base R plot
clone()The objects of this class are cloneable with this method.
fragments$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.