|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.experiment.filters.massspectrometry.SpectrumFilter
com.compomics.util.experiment.filters.massspectrometry.spectrumfilters.MzFilter
public class MzFilter
This class checks whether a peak is present in a spectrum among the most intense peaks.
Field Summary |
---|
Fields inherited from class com.compomics.util.experiment.filters.massspectrometry.SpectrumFilter |
---|
name |
Constructor Summary | |
---|---|
MzFilter(double mz,
double mzTolerance,
boolean isPpm,
double intensityQuantile)
Constructor. |
|
MzFilter(MzFilter brotherFilter,
double mz)
Creates a filter from a similar filter. |
Method Summary | |
---|---|
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. |
double |
getIntensityQuantile()
Returns the intensity quantile to look into. |
ArrayList<Double> |
getMzArray()
Returns the mzArray. |
double |
getMzTolerance()
Returns the m/z tolerance to search with. |
String |
getSpectrumLoaded()
Returns the key of the spectrum loaded. |
boolean |
isPpm()
Returns a boolean indicating whether the m/z tolerance is in ppm. |
boolean |
validateSpectrum(MSnSpectrum spectrum)
Indicates whether a peak was found in the spectrum at the desired m/z in the given intensity quartile. |
Methods inherited from class com.compomics.util.experiment.filters.massspectrometry.SpectrumFilter |
---|
getElementaryFilters, getFilter, getName, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MzFilter(double mz, double mzTolerance, boolean isPpm, double intensityQuantile)
mz
- the m/z to look formzTolerance
- the m/z toleranceisPpm
- a boolean indicating whether the m/z tolerance is in ppmintensityQuantile
- the intensity quantile to look intopublic MzFilter(MzFilter brotherFilter, double mz)
brotherFilter
- another filtermz
- the other m/z to look forMethod Detail |
---|
public double getMzTolerance()
public boolean isPpm()
public double getIntensityQuantile()
public String getSpectrumLoaded()
public ArrayList<Double> getMzArray()
public boolean validateSpectrum(MSnSpectrum spectrum)
validateSpectrum
in class SpectrumFilter
spectrum
- the spectrum to inspect
public double getError(double otherMz)
otherMz
-
public String getDescription()
SpectrumFilter
getDescription
in class SpectrumFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |