R6 Peak Region Finder
SCPeakRegionFinder.RdR6 Peak Region Finder
R6 Peak Region Finder
Details
Think of it like managing all the stuff that needs to happen to find the peaks in the regions.
Public fields
run_timehow long did the process take
start_timewhen did we start
stop_timewhen did we start
peak_regionsSCPeakRegions object
sliding_region_sizehow big are the sliding regions in data points
sliding_region_deltahow much space between sliding region starts
quantile_multiplierhow much to multiply quantile based cutoff by
n_point_regionhow many points are there in the big tiled regions for quantile based cutoff
tiled_region_sizehow wide are the tiled regions in data points
tiled_region_deltahow far in between each tiled region
region_percentile??
peak_methodwhat method to extract peak center, height, area, etc
min_pointshow many points wide does a peak have to be to get characterized
sample_idwhat sample are we processing
zero_normalizationdo we want to pretend to do normalization
Methods
Method remove_double_peaks_in_scans()
Check for the presence of two peaks with the same scan number in each region and remove them. Any regions with zero peaks left, remove the region.
Method indicate_high_frequency_sd()
Look for peaks with higher than expected frequency standard deviation.
Method add_offset()
Add an offset based on width in frequency space to m/z to describe how wide the peak is.
Method characterize_peaks()
Run the overall peak characterization from start to finish.
Method summarize()
Summarize everything for output to the zip file after completion.
Method new()
Make a new SCPeakRegionFinder object.
Usage
SCPeakRegionFinder$new(
sc_mzml = NULL,
sliding_region_size = 10,
sliding_region_delta = 1,
tiled_region_size = 1,
tiled_region_delta = 1,
region_percentile = 0.99,
offset_multiplier = 1,
frequency_multiplier = 400,
quantile_multiplier = 1.5,
n_point_region = 2000,
peak_method = "lm_weighted",
min_points = 4,
zero_normalization = FALSE
)Arguments
sc_mzmlthe SCMzml object to use (can be missing)
sliding_region_sizehow wide to make the sliding regions in data points
sliding_region_deltahow far apart are the starting locations of the sliding regions
tiled_region_sizehow wide are the tiled regions
tiled_region_deltahow far apart are the tiled reigons
region_percentilecumulative percentile cutoff to use
offset_multiplierwhat offset multiplier should be used
frequency_multiplierhow much to multiply frequency points to interval ranges
quantile_multiplierhow much to adjust the quantile cutoff by
n_point_regionhow many points in the large tiled regions
peak_methodthe peak characterization method to use (lm_weighted)
min_pointshow many points to say there is a peak (4)
zero_normalizationdon't actually do normalization (FALSE)