fragments object
fragments.RdAn R6 Class representing a fragments object.
Details
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.
Public fields
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().
Methods
Method new()
initialization function that is not used since the child classes are the main object of this package.
Usage
fragments$new(unique_id)Method plot_trace()
plot the trace data
Usage
fragments$plot_trace(
  show_peaks = TRUE,
  x_axis = NULL,
  ylim = NULL,
  xlim = NULL,
  signal_color_threshold = 0.05,
  plot_title = NULL
)Arguments
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