|
||||||||||
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
public abstract class SpectrumFilter
This class represent all spectrum filters which will be used to filter spectra.
Field Summary | |
---|---|
protected java.lang.String |
name
The name of the filter. |
Constructor Summary | |
---|---|
SpectrumFilter()
|
Method Summary | |
---|---|
abstract java.lang.String |
getDescription()
Returns a description of the validated spectra, typically "containing a peak at m/z 114". |
static java.lang.String[] |
getElementaryFilters()
Convenience method returning the types of implemented elementary filters. |
static SpectrumFilter |
getFilter(javax.swing.JFrame parentFrame,
java.lang.Double mzTolerance,
java.lang.Double intensityQuantile,
java.lang.Double intensityTolerance,
java.lang.Boolean isPpm)
Allows the user to design basic filters via a GUI. |
java.lang.String |
getName()
Returns the name of the filter. |
void |
setName(java.lang.String name)
Sets the name of the filter. |
abstract boolean |
validateSpectrum(MSnSpectrum spectrum)
Indicates whether a spectrum passed the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
Constructor Detail |
---|
public SpectrumFilter()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the filterpublic abstract boolean validateSpectrum(MSnSpectrum spectrum)
spectrum
- the spectrum to inspect
public abstract java.lang.String getDescription()
public static java.lang.String[] getElementaryFilters()
public static SpectrumFilter getFilter(javax.swing.JFrame parentFrame, java.lang.Double mzTolerance, java.lang.Double intensityQuantile, java.lang.Double intensityTolerance, java.lang.Boolean isPpm)
parentFrame
- the parent framemzTolerance
- the mz tolerance, can be nullintensityQuantile
- the intensity quantile, can be nullintensityTolerance
- the intensity tolerance, can be nullisPpm
- a boolean indicating whether the tolerance is in ppm, can be
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |