com.compomics.util.experiment.filters.massspectrometry.spectrumfilters
Class FingerprintPattern
java.lang.Object
com.compomics.util.experiment.filters.massspectrometry.SpectrumFilter
com.compomics.util.experiment.filters.massspectrometry.spectrumfilters.FingerprintPattern
- All Implemented Interfaces:
- java.io.Serializable
public class FingerprintPattern
- extends SpectrumFilter
Filters according to an m/z - intensity fingerprint.
- Author:
- Marc Vaudel
- See Also:
- Serialized Form
Fields inherited from class com.compomics.util.experiment.filters.massspectrometry.SpectrumFilter |
name |
Constructor Summary |
FingerprintPattern(java.util.ArrayList<java.lang.Double> mzArray,
java.util.ArrayList<java.lang.Double> intensityArray,
double mzTolerance,
boolean isPpm,
double intensityTolerance)
Constructor. |
Method Summary |
java.lang.String |
getDescription()
Returns a description of the validated spectra, typically "containing a
peak at m/z 114". |
boolean |
validateSpectrum(MSnSpectrum spectrum)
Returns a boolean indicating whether the filter fingerprint was found in
the spectrum. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FingerprintPattern
public FingerprintPattern(java.util.ArrayList<java.lang.Double> mzArray,
java.util.ArrayList<java.lang.Double> intensityArray,
double mzTolerance,
boolean isPpm,
double intensityTolerance)
- Constructor.
- Parameters:
mzArray
- list of m/z to look forintensityArray
- list of intensities corresponding to the m/z arraymzTolerance
- the m/z toleranceisPpm
- a boolean indicating whether the m/z tolerance is in ppmintensityTolerance
- the intensity relative tolerance (0.1 for 10%)
validateSpectrum
public boolean validateSpectrum(MSnSpectrum spectrum)
- Returns a boolean indicating whether the filter fingerprint was found in
the spectrum.
- Specified by:
validateSpectrum
in class SpectrumFilter
- Parameters:
spectrum
- the spectrum to inspect
- Returns:
- a boolean indicating whether the filter fingerprint was found in
the spectrum
getDescription
public java.lang.String getDescription()
- Description copied from class:
SpectrumFilter
- Returns a description of the validated spectra, typically "containing a
peak at m/z 114".
- Specified by:
getDescription
in class SpectrumFilter
- Returns:
- a description of the validated spectra
Copyright © 2013. All Rights Reserved.