SCPeakRegionFinder | R Documentation |
R6 Peak Region Finder
R6 Peak Region Finder
Think of it like managing all the stuff that needs to happen to find the peaks in the regions.
run_time
how long did the process take
start_time
when did we start
stop_time
when did we start
peak_regions
SCPeakRegions object
sliding_region_size
how big are the sliding regions in data points
sliding_region_delta
how much space between sliding region starts
quantile_multiplier
how much to multiply quantile based cutoff by
n_point_region
how many points are there in the big tiled regions for quantile based cutoff
tiled_region_size
how wide are the tiled regions in data points
tiled_region_delta
how far in between each tiled region
region_percentile
??
peak_method
what method to extract peak center, height, area, etc
min_points
how many points wide does a peak have to be to get characterized
sample_id
what sample are we processing
n_zero_tiles
how many zero count tiled regions split up a region into multiple peaks?
zero_normalization
do we want to pretend to do normalization
calculate_peak_area
should peak area be calculated as well?
add_regions()
Add the sliding and tiled regions
SCPeakRegionFinder$add_regions()
reduce_sliding_regions()
Find the regions most likely to contain real signal
SCPeakRegionFinder$reduce_sliding_regions()
split_peak_regions()
Split up signal regions by peaks found
SCPeakRegionFinder$split_peak_regions( use_regions = NULL, stop_after_initial_detection = FALSE )
use_regions
an index of the regions we want to split up
stop_after_initial_detection
should it do full characterization or stop
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.
SCPeakRegionFinder$remove_double_peaks_in_scans()
normalize_data()
Normalize the intensity data
SCPeakRegionFinder$normalize_data(which_data = "both")
which_data
raw, characterized, or both (default)
find_peaks_in_regions()
Find the peaks in the regions.
SCPeakRegionFinder$find_peaks_in_regions()
model_mzsd()
Model the m/z standard deviation.
SCPeakRegionFinder$model_mzsd()
model_heightsd()
Model the intensity height standard deviation.
SCPeakRegionFinder$model_heightsd()
indicate_high_frequency_sd()
Look for peaks with higher than expected frequency standard deviation.
SCPeakRegionFinder$indicate_high_frequency_sd()
add_data()
Add the data from an SCMzml object to the underlying SCPeakRegions object.
SCPeakRegionFinder$add_data(sc_mzml)
sc_mzml
the SCMzml object being passed in
summarize_peaks()
Summarize the peaks to go into JSON form.
SCPeakRegionFinder$summarize_peaks()
add_offset()
Add an offset based on width in frequency space to m/z to describe how wide the peak is.
SCPeakRegionFinder$add_offset()
sort_ascending_mz()
Sort the data in m/z order, as the default is frequency order
SCPeakRegionFinder$sort_ascending_mz()
characterize_peaks()
Run the overall peak characterization from start to finish.
SCPeakRegionFinder$characterize_peaks(stop_after_initial_detection = FALSE)
stop_after_initial_detection
do we stop the whole process after finding initial peaks in each scan?
summarize()
Summarize everything for output to the zip file after completion.
SCPeakRegionFinder$summarize( package_used = "package:ScanCentricPeakCharacterization" )
package_used
which package is being used for this work.
peak_meta()
Generate the meta data that goes into the accompanying JSON file.
SCPeakRegionFinder$peak_meta()
new()
Make a new SCPeakRegionFinder object.
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, n_zero_tiles = 1, zero_normalization = FALSE, calculate_peak_area = FALSE )
sc_mzml
the SCMzml object to use (can be missing)
sliding_region_size
how wide to make the sliding regions in data points
sliding_region_delta
how far apart are the starting locations of the sliding regions
tiled_region_size
how wide are the tiled regions
tiled_region_delta
how far apart are the tiled reigons
region_percentile
cumulative percentile cutoff to use
offset_multiplier
what offset multiplier should be used
frequency_multiplier
how much to multiply frequency points to interval ranges
quantile_multiplier
how much to adjust the quantile cutoff by
n_point_region
how many points in the large tiled regions
peak_method
the peak characterization method to use (lm_weighted)
min_points
how many points to say there is a peak (4)
n_zero_tiles
how many tiles in a row do there need to be to split things up? (1)
zero_normalization
don't actually do normalization (FALSE)
calculate_peak_area
should peak area as well as peak height be returned? (FALSE)
clone()
The objects of this class are cloneable with this method.
SCPeakRegionFinder$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.