public class MsnSpectrum extends Spectrum<PeakAnnotation>
PeakList.Precision| Modifier | Constructor and Description |
|---|---|
|
MsnSpectrum()
Default constructor
|
|
MsnSpectrum(int initialCapacity,
double constantIntensity,
PeakList.Precision precision)
Construct a MsnSpectrum that has a constant intensity.
|
|
MsnSpectrum(int initialCapacity,
PeakList.Precision precision)
Construct a MsnSpectrum that stores the peak list at the given precision and
has an initial capacity equal to
initialCapacity |
protected |
MsnSpectrum(MsnSpectrum src,
PeakProcessor<PeakAnnotation,PeakAnnotation> peakProcessor)
Copy constructor
|
protected |
MsnSpectrum(MsnSpectrum src,
PeakProcessor<PeakAnnotation,PeakAnnotation> peakProcessor,
com.google.common.base.Function<Double,Double> rtCorrFct)
Copy constructor
|
protected |
MsnSpectrum(MsnSpectrum src,
PeakProcessorChain<PeakAnnotation> peakProcessorChain)
Copy constructor
|
protected |
MsnSpectrum(MsnSpectrum src,
PeakProcessorChain<PeakAnnotation> peakProcessorChain,
com.google.common.base.Function<Double,Double> rtCorrFct)
Copy constructor
|
|
MsnSpectrum(PeakList.Precision precision)
Construct a MsnSpectrum that stores the peak list at the given precision
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRetentionTime(RetentionTime retentionTime)
Add the
retentionTime to this MsnSpectrum's retention time list |
void |
addRetentionTimes(RetentionTimeList retentionTimes)
Add all retention times from the
retentionTimes to this
MsnSpectrum's retention times. |
void |
addScanNumber(int scanNumber)
Add
scanNumber to this MsnSpectrum |
void |
addScanNumber(ScanNumber scanNumber)
Add
scanNumber to this MsnSpectrum |
void |
addScanNumbers(Collection<? extends ScanNumber> scanNumbers)
Add a all scan numbers from
scanNumbers to this MsnSpectrum |
MsnSpectrum |
copy(com.google.common.base.Function<Double,Double> rtCorrFct) |
MsnSpectrum |
copy(PeakProcessor<PeakAnnotation,PeakAnnotation> peakProcessor)
Return PeakList copy processed with PeakProcessor
|
MsnSpectrum |
copy(PeakProcessor<PeakAnnotation,PeakAnnotation> peakProcessor,
com.google.common.base.Function<Double,Double> rtCorrFct) |
MsnSpectrum |
copy(PeakProcessorChain<PeakAnnotation> peakProcessorChain)
Return PeakList copy processed with PeakProcessorChain
|
MsnSpectrum |
copy(PeakProcessorChain<PeakAnnotation> peakProcessorChain,
com.google.common.base.Function<Double,Double> rtCorrFct) |
boolean |
equals(Object o) |
String |
getComment()
Return the comment associated with this MsnSpectrum.
|
String |
getFragMethod()
Return the fragmentation method
|
ScanNumber |
getParentScanNumber()
Returns the scan number of the parent scan.
|
RetentionTimeList |
getRetentionTimes()
Return this MsnSpectrum's retention time list.
|
ScanNumberList |
getScanNumbers()
Returns the scan number of this MsnSpectrum
|
int |
getSpectrumIndex()
Return the index of this MsnSpectrum.
|
URI |
getSpectrumSource()
Return the URI that describes the source of this MsnSpectrum.
|
int |
hashCode() |
void |
setComment(String comment)
Set the comment
|
void |
setFragMethod(String fragMethod)
Set the fragmentation method
|
void |
setParentScanNumber(ScanNumber parentScanNumber)
Set the parent scan number
|
void |
setSpectrumIndex(int spectrumIndex)
Set the spectrum index
|
void |
setSpectrumSource(URI spectrumSource)
Set the URI that describes the source of this MsnSpectrum
|
add, add, add, addAnnotation, addAnnotations, addPeaks, addPeaks, addPeaksNoAnnotations, addSorted, addSorted, apply, apply, calcVectorLength, clear, clearAnnotations, clearAnnotationsAt, cursor, ensureCapacity, getAnnotationIndexes, getAnnotations, getBasePeakIntensity, getBasePeakMz, getClosestIndex, getFirstAnnotation, getId, getIntensities, getIntensities, getIntensities, getIntensity, getMostIntenseIndex, getMostIntenseIndex, getMsLevel, getMz, getMzs, getMzs, getMzs, getPrecision, getPrecursor, getTotalIonCurrent, hasAnnotations, hasAnnotationsAt, indexOf, indexOf, isEmpty, removeAnnotation, setId, setIntensityAt, setMsLevel, setPrecursor, size, sortAnnotations, trimToSizepublic MsnSpectrum()
public MsnSpectrum(PeakList.Precision precision)
precision - the precision that the peak list is stored atpublic MsnSpectrum(int initialCapacity,
PeakList.Precision precision)
initialCapacityinitialCapacity - the initial capacity of the peak listprecision - the precision that the peak list is stored atpublic MsnSpectrum(int initialCapacity,
double constantIntensity,
PeakList.Precision precision)
initialCapacityinitialCapacity - the initial capacity of the peak listconstantIntensity - the constant intensity ifprecision - the precision that the peak list is stored atprotected MsnSpectrum(MsnSpectrum src, PeakProcessor<PeakAnnotation,PeakAnnotation> peakProcessor)
src - the MsnSpectrum to copyprotected MsnSpectrum(MsnSpectrum src, PeakProcessor<PeakAnnotation,PeakAnnotation> peakProcessor, com.google.common.base.Function<Double,Double> rtCorrFct)
src - the MsnSpectrum to copyprotected MsnSpectrum(MsnSpectrum src, PeakProcessorChain<PeakAnnotation> peakProcessorChain)
src - the MsnSpectrum to copyprotected MsnSpectrum(MsnSpectrum src, PeakProcessorChain<PeakAnnotation> peakProcessorChain, com.google.common.base.Function<Double,Double> rtCorrFct)
src - the MsnSpectrum to copypublic MsnSpectrum copy(PeakProcessor<PeakAnnotation,PeakAnnotation> peakProcessor)
PeakListpeakProcessor - the processor to process the peakspublic MsnSpectrum copy(PeakProcessorChain<PeakAnnotation> peakProcessorChain)
PeakListpeakProcessorChain - the processor chain to process the peakspublic MsnSpectrum copy(PeakProcessor<PeakAnnotation,PeakAnnotation> peakProcessor, com.google.common.base.Function<Double,Double> rtCorrFct)
public MsnSpectrum copy(PeakProcessorChain<PeakAnnotation> peakProcessorChain, com.google.common.base.Function<Double,Double> rtCorrFct)
public MsnSpectrum copy(com.google.common.base.Function<Double,Double> rtCorrFct)
public String getFragMethod()
public void setFragMethod(String fragMethod)
fragMethod - the fragmentation methodpublic ScanNumber getParentScanNumber()
public void setParentScanNumber(ScanNumber parentScanNumber)
parentScanNumber - the new value for the parent scan numberpublic ScanNumberList getScanNumbers()
public void addScanNumbers(Collection<? extends ScanNumber> scanNumbers)
scanNumbers to this MsnSpectrumscanNumbers - the scan numbers to addpublic void addScanNumber(ScanNumber scanNumber)
scanNumber to this MsnSpectrumscanNumber - the scan number to addpublic void addScanNumber(int scanNumber)
scanNumber to this MsnSpectrumscanNumber - the scan number to addpublic RetentionTimeList getRetentionTimes()
public void addRetentionTimes(RetentionTimeList retentionTimes)
retentionTimes to this
MsnSpectrum's retention times.retentionTimes - the retention times to addpublic void addRetentionTime(RetentionTime retentionTime)
retentionTime to this MsnSpectrum's retention time listretentionTime - the retention time to addpublic int getSpectrumIndex()
public void setSpectrumIndex(int spectrumIndex)
spectrumIndex - the new spectrum indexpublic String getComment()
public void setComment(String comment)
comment - the new value of the commentpublic URI getSpectrumSource()
public void setSpectrumSource(URI spectrumSource)
spectrumSource - the new spectrum source URIpublic boolean equals(Object o)
equals in class Spectrum<PeakAnnotation>public int hashCode()
hashCode in class Spectrum<PeakAnnotation>Copyright © 2016. All Rights Reserved.