numCollisions {MassArray} | R Documentation |
Function to count the number of peak collisions (i.e. molecular weights are indistinguishable given the specified resolution)
numCollisions(peaks, resolution = 0.5)
peaks |
Numerical list of molecular weights (in Da) corresponding to a set of peaks |
resolution |
Resolution (in Da), used to specify the ability to distinguish two different molecular weights. For a resolution of 0.5 (default), two molecular weights are considered identical if they are less than 0.5 Da apart. |
Returns a list of peak collision counts for each peak in the original list.
Reid F. Thompson (rthompso@aecom.yu.edu), John M. Greally (jgreally@aecom.yu.edu)
numCollisions(1:5, 1.5)