public class PeakFilter extends SpectrumFilter
name
Constructor and Description |
---|
PeakFilter(double mz,
double mzTolerance,
boolean isPpm,
double intensity,
double intensityTolerance)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a description of the validated spectra, typically "containing a
peak at m/z 114".
|
double |
getError(double otherMz)
Get the absolute matching error in Da.
|
boolean |
validateSpectrum(MSnSpectrum spectrum)
Indicates whether a peak was found in the spectrum at the desired m/z in
the given intensity quartile.
|
getElementaryFilters, getFilter, getName, setName
public PeakFilter(double mz, double mzTolerance, boolean isPpm, double intensity, double intensityTolerance)
mz
- the m/z to look formzTolerance
- the m/z toleranceisPpm
- a boolean indicating whether the m/z tolerance is in ppmintensity
- the intensity to look forintensityTolerance
- the intensity relative tolerance (0.1 for 10%)public boolean validateSpectrum(MSnSpectrum spectrum)
validateSpectrum
in class SpectrumFilter
spectrum
- the spectrum to inspectpublic double getError(double otherMz)
otherMz
- public String getDescription()
SpectrumFilter
getDescription
in class SpectrumFilter
Copyright © 2013. All Rights Reserved.