public class NetCDFMsScan extends SimpleMsScan
NetCDFMsScan class.
| Constructor and Description |
|---|
NetCDFMsScan(Integer scanNumber,
int[] scanStartPositions,
float[] scanRetentionTimes,
ucar.nc2.Variable massValueVariable,
ucar.nc2.Variable intensityValueVariable,
double massValueScaleFactor,
double intensityValueScaleFactor)
Constructor for
NetCDFMsScan |
| Modifier and Type | Method and Description |
|---|---|
float[] |
getIntensityValues(float[] intensityValues)
Returns the intensity values of this spectrum.
|
double[] |
getMzValues(double[] mzValues)
Returns the m/z values of this spectrum.
|
Integer |
getNumberOfDataPoints()
getNumberOfDataPoints.
|
Float |
getRetentionTime()
Returns the retention time in seconds
|
Integer |
getScanIndex()
The Scan Index is the inde of the scan in the array
|
MsSpectrumType |
getSpectrumType()
Returns the type of this mass spectrum.
|
void |
parseScan()
The mass and intensity arrays are loaded once this method is called
|
getIsolations, getMsFunction, getMsLevel, getMsScanType, getMzTolerance, getPolarity, getRawDataFile, getScanDefinition, getScanningRange, getScanNumber, getSourceInducedFragmentation, setMsFunction, setMsLevel, setMsScanType, setMzTolerance, setPolarity, setRawDataFile, setRetentionTime, setScanDefinition, setScanningRange, setScanNumber, setSourceInducedFragmentationgetMzRange, getTIC, setDataPoints, setSpectrumTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIntensityValues, getMzRange, getMzValues, getTICpublic NetCDFMsScan(Integer scanNumber, int[] scanStartPositions, float[] scanRetentionTimes, ucar.nc2.Variable massValueVariable, ucar.nc2.Variable intensityValueVariable, double massValueScaleFactor, double intensityValueScaleFactor)
Constructor for NetCDFMsScan
scanNumber - the Scan Numberid - the Scan IDscanStartPositions - an int[] containing start positions of all scans, and an extra
element containing the stop position of the last scanscanRetentionTimes - a float[] containing retention times of all scansmassValueVariable - Variable containing the m/z data of the
scansintensityValueVariable - Variable containing the intensity data
of the scansmassValueScaleFactor - double value by which the mass values have been scaled by tointensityValueScaleFactor - double value by which the intensity values have been scaled by
topublic float[] getIntensityValues(float[] intensityValues)
Returns the intensity values of this spectrum. Note: this method may need to read data from disk, therefore it may be quite slow.
getIntensityValues in interface MsSpectrumgetIntensityValues in class AbstractMsSpectrumpublic double[] getMzValues(double[] mzValues)
Returns the m/z values of this spectrum. Note: this method may need to read data from disk, therefore it may be quite slow.
getMzValues in interface MsSpectrumgetMzValues in class AbstractMsSpectrumpublic Integer getNumberOfDataPoints()
getNumberOfDataPoints.
getNumberOfDataPoints in interface MsSpectrumgetNumberOfDataPoints in class AbstractMsSpectrumInteger object.public Float getRetentionTime()
getRetentionTime in interface MsScangetRetentionTime in class SimpleMsScanpublic MsSpectrumType getSpectrumType()
getSpectrumType in interface MsSpectrumgetSpectrumType in class AbstractMsSpectrumpublic Integer getScanIndex()
public void parseScan()
throws IOException,
ucar.ma2.InvalidRangeException
IOExceptionucar.ma2.InvalidRangeExceptionCopyright © 2019. All rights reserved.