com.compomics.util.experiment.massspectrometry
Class MSnSpectrum

java.lang.Object
  extended by com.compomics.util.experiment.personalization.ExperimentObject
      extended by com.compomics.util.experiment.massspectrometry.Spectrum
          extended by com.compomics.util.experiment.massspectrometry.MSnSpectrum
All Implemented Interfaces:
Serializable, Cloneable

public class MSnSpectrum
extends Spectrum

This class models an MSn spectrum. Created by IntelliJ IDEA. User: Marc Date: Jun 18, 2010 Time: 9:00:36 AM

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.compomics.util.experiment.massspectrometry.Spectrum
fileName, level, peakList, scanNumber, scanStartTime, SPECTRUM_KEY_SPLITTER, spectrumTitle
 
Constructor Summary
MSnSpectrum()
          Constructor for the spectrum
MSnSpectrum(int level, Precursor precursor, String spectrumTitle, HashSet<Peak> spectrum, String fileName)
          constructor for the spectrum
MSnSpectrum(int level, Precursor precursor, String spectrumTitle, HashSet<Peak> spectrum, String fileName, double scanStartTime)
          constructor for the spectrum
MSnSpectrum(int level, Precursor precursor, String spectrumTitle, String fileName)
          Minimal constructor for the spectrum.
 
Method Summary
 String asMgf()
          return the peak list as mgf bloc
 Precursor getPrecursor()
          returns the precursor
 
Methods inherited from class com.compomics.util.experiment.massspectrometry.Spectrum
addPeak, getFileName, getIntensityLimit, getIntensityValuesAsArray, getJFreePeakList, getLevel, getMaxIntensity, getMaxMz, getMinMz, getMzValuesAsArray, getPeakList, getPeakMap, getPeaksAboveIntensityThreshold, getScanNumber, getScanStartTime, getSpectrumFile, getSpectrumKey, getSpectrumKey, getSpectrumTitle, getSpectrumTitle, getTotalIntensity, removePeakList, setPeakList, setScanNumber, setScanStartTime
 
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, getParameterKey, getUrParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSnSpectrum

public MSnSpectrum()
Constructor for the spectrum


MSnSpectrum

public MSnSpectrum(int level,
                   Precursor precursor,
                   String spectrumTitle,
                   String fileName)
Minimal constructor for the spectrum. The peak list is not loaded in order to reduce memory consumption.

Parameters:
level - MS level
precursor - precursor
spectrumTitle - spectrum title
fileName - file name

MSnSpectrum

public MSnSpectrum(int level,
                   Precursor precursor,
                   String spectrumTitle,
                   HashSet<Peak> spectrum,
                   String fileName)
constructor for the spectrum

Parameters:
level - MS level
precursor - precursor
spectrumTitle - spectrum title
spectrum - set of peaks
fileName - file name

MSnSpectrum

public MSnSpectrum(int level,
                   Precursor precursor,
                   String spectrumTitle,
                   HashSet<Peak> spectrum,
                   String fileName,
                   double scanStartTime)
constructor for the spectrum

Parameters:
level - MS level
precursor - precursor
spectrumTitle - spectrum title
spectrum - set of peaks
fileName - file name
scanStartTime - The timepoint when the spectrum was recorded
Method Detail

getPrecursor

public Precursor getPrecursor()
returns the precursor

Returns:
precursor charge

asMgf

public String asMgf()
return the peak list as mgf bloc

Returns:
the peak list as mgf bloc


Copyright © 2011. All Rights Reserved.