public class MzFilter extends SpectrumFilter
name
Constructor and Description |
---|
MzFilter(double mz,
double mzTolerance,
boolean isPpm,
double intensityQuantile)
Constructor.
|
MzFilter(MzFilter brotherFilter,
double mz)
Creates a filter from a similar filter.
|
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.
|
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.
|
getElementaryFilters, getFilter, getName, setName
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 forpublic double getMzTolerance()
public boolean isPpm()
public double getIntensityQuantile()
public String getSpectrumLoaded()
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.