public class SimpleChromatogram extends Object implements Chromatogram
Constructor and Description |
---|
SimpleChromatogram() |
Modifier and Type | Method and Description |
---|---|
void |
addDataPoint(Float rt,
Double mz,
Float intensity)
Adds a data point to the end of the chromatogram
|
Integer |
getChromatogramNumber()
Returns the number of this chromatogram, represented by an integer, typically positive.
|
ChromatogramType |
getChromatogramType()
Returns the type of the chromatogram.
|
float[] |
getIntensityValues()
getIntensityValues.
|
float[] |
getIntensityValues(float[] array)
getIntensityValues.
|
IonAnnotation |
getIonAnnotation()
Returns the ion annotation for this chromatogram.
|
List<IsolationInfo> |
getIsolations()
Returns a list of isolations performed for this chromatogram.
|
Double |
getMz()
Returns the m/z value of this chromatogram, or null if no m/z value is set for the
chromatogram.
|
double[] |
getMzValues()
getMzValues.
|
double[] |
getMzValues(double[] array) |
Integer |
getNumberOfDataPoints()
getNumberOfDataPoints.
|
RawDataFile |
getRawDataFile()
Returns the raw data file that contains this chromatogram.
|
float[] |
getRetentionTimes()
Returns the info of this chromatogram.
|
float[] |
getRetentionTimes(float[] array) |
com.google.common.collect.Range<Float> |
getRtRange()
Returns the range of retention times.
|
SeparationType |
getSeparationType()
Returns the separation type used for separation of molecules.
|
void |
setChromatogramNumber(Integer chromatogramNumber) |
void |
setChromatogramType(ChromatogramType newChromatogramType) |
void |
setDataPoints(float[] rtValues,
double[] mzValues,
float[] intensityValues,
Integer size) |
void |
setIonAnnotation(IonAnnotation ionAnnotation) |
void |
setMz(Double newMz) |
void |
setRawDataFile(RawDataFile newRawDataFile) |
void |
setSeparationType(SeparationType separationType) |
@Nullable public RawDataFile getRawDataFile()
getRawDataFile
in interface Chromatogram
public void setRawDataFile(@Nonnull RawDataFile newRawDataFile)
newRawDataFile
- a RawDataFile
object.@Nonnull public Integer getChromatogramNumber()
getChromatogramNumber
in interface Chromatogram
public void setChromatogramNumber(@Nonnull Integer chromatogramNumber)
chromatogramNumber
- a Integer
object.@Nonnull public ChromatogramType getChromatogramType()
getChromatogramType
in interface Chromatogram
public void setChromatogramType(@Nonnull ChromatogramType newChromatogramType)
newChromatogramType
- a ChromatogramType
object.@Nonnull public Integer getNumberOfDataPoints()
getNumberOfDataPoints.
getNumberOfDataPoints
in interface Chromatogram
Integer
object.@Nonnull public float[] getRetentionTimes()
getRetentionTimes
in interface Chromatogram
@Nonnull public float[] getRetentionTimes(@Nullable float[] array)
getRetentionTimes
in interface Chromatogram
array
- an array of float.@Nonnull public double[] getMzValues()
getMzValues.
getMzValues
in interface Chromatogram
@Nonnull public double[] getMzValues(@Nullable double[] array)
getMzValues
in interface Chromatogram
array
- an array of float.@Nonnull public float[] getIntensityValues()
getIntensityValues.
getIntensityValues
in interface Chromatogram
@Nonnull public float[] getIntensityValues(@Nullable float[] array)
getIntensityValues.
getIntensityValues
in interface Chromatogram
array
- an array of float.public void setDataPoints(@Nonnull float[] rtValues, @Nullable double[] mzValues, @Nonnull float[] intensityValues, @Nonnull Integer size)
rtValues
- an array of float.mzValues
- an array of double.intensityValues
- an array of float.size
- a Integer
object.@Nonnull public List<IsolationInfo> getIsolations()
getIsolations
in interface Chromatogram
@Nonnull public SeparationType getSeparationType()
getSeparationType
in interface Chromatogram
SeparationType.UNKNOWN
for unknown
separations.public void setSeparationType(@Nonnull SeparationType separationType)
separationType
- a SeparationType
object.@Nullable public Double getMz()
getMz
in interface Chromatogram
Double
object.public void setIonAnnotation(@Nonnull IonAnnotation ionAnnotation)
ionAnnotation
- a IonAnnotation
object.public IonAnnotation getIonAnnotation()
getIonAnnotation
in interface Chromatogram
@Nullable public com.google.common.collect.Range<Float> getRtRange()
getRtRange
in interface Chromatogram
Copyright © 2019. All rights reserved.