An official website of the United States government
Here’s how you know
Official websites use .gov
A .gov website belongs to an official government organization in the United States.
Secure .gov websites use HTTPS
A lock (
)or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.
# uses Dan Garrett's "algorithm":
# 1. Sort intensities list
# 2. largest 20% of peaks become "strong" (1.8 - 2.7)
# 3. next 30% become "medium" (1.8 - 3.3)
# 4. next 30% into "weak" (1.8 - 5.0)
# 5. last 20% into "very weak" (1.8 - 6.0)
The distanceBins argument contains a sequence of 3-membered tuples,
the first two of which specify the lower and upper distance bounds,
while the third specifies the lower bound of the absolute value of
intensity of a peak relative in the intensity range of the input
values.
Returns a list of tuples containing
(lowerIntensityBound, (lowerDist, upperDist))
Remove peak assignments with likelihood lower than the cutoff value.
If preventUnassignment=True, in the event of a peak having no assignments
greater than cutoff, keep that with the largest likelihood rather than
deleting the peak entirely.
Returns a named tuple with these members
numRemoved - number of removed peak assignments
numPeaksAffected - number of peaks having some peak assignments removed
numLRremoved - number of removed long-range peak assignments
numGoodRemoved - number of removed good peak assignments
numGoodLRremoved - number of removed good long-range peak assignments