public class Precursor extends ExperimentObject
Constructor and Description |
---|
Precursor(double rt,
double mz,
ArrayList<Integer> possibleCharges)
Constructor for the precursor.
|
Precursor(double mz,
double intensity,
ArrayList<Integer> possibleCharges,
double rtMin,
double rtMax)
Constructor with retention time window and no reference retention time.
|
Precursor(double rt,
double mz,
double intensity,
ArrayList<Integer> possibleCharges)
Constructor for the precursor.
|
Precursor(double rt,
double mz,
double intensity,
ArrayList<Integer> possibleCharges,
double rtMin,
double rtMax)
Constructor with retention time window.
|
Modifier and Type | Method and Description |
---|---|
double |
getIntensity()
Getter for the intensity.
|
double |
getMass(int chargeValue)
Returns the mass of the precursor with the given charge.
|
double |
getMassPlusProton(int chargeValue)
Returns the mass of the precursor with the given charge plus a single
proton.
|
double |
getMz()
Getter for the m/z.
|
ArrayList<Integer> |
getPossibleCharges()
Getter for the possible charges.
|
String |
getPossibleChargesAsString()
Returns the possible charges as a string.
|
Precursor |
getRecalibratedPrecursor(double mzCorrection,
double rtCorrection)
Returns a recalibrated precursor.
|
double |
getRt()
Getter for the retention time in seconds.
|
double |
getRtInMinutes()
Returns the retention time in minutes.
|
double[] |
getRtWindow()
Returns an array containing the min and max of the RT window.
|
boolean |
hasRTWindow()
Returns a boolean indicating whether the retention time window was
implemented.
|
addUrParam, asLong, clearParametersMap, getUrParam, getUrParams, removeUrParam, setUrParams
getFirstLevel, getId, setFirstLevel, setId
jdoZooEvict, jdoZooGetBackup, jdoZooGetClassDef, jdoZooGetContext, jdoZooGetNode, jdoZooGetOid, jdoZooGetTimestamp, jdoZooHasState, jdoZooInit, jdoZooIsDeleted, jdoZooIsDetached, jdoZooIsDirty, jdoZooIsNew, jdoZooIsPersistent, jdoZooIsStateHollow, jdoZooIsTransactional, jdoZooMarkClean, jdoZooMarkDeleted, jdoZooMarkDetached, jdoZooMarkDirty, jdoZooMarkHollow, jdoZooMarkTransient, jdoZooSetOid, jdoZooSetTimestamp, toString, zooActivateRead, zooActivateWrite, zooActivateWrite
public Precursor(double rt, double mz, ArrayList<Integer> possibleCharges)
rt
- the retention timemz
- the m/zpossibleCharges
- the possible chargespublic Precursor(double rt, double mz, double intensity, ArrayList<Integer> possibleCharges, double rtMin, double rtMax)
rt
- the retention timemz
- the m/zintensity
- the intensitypossibleCharges
- the possible chargesrtMin
- the minimum of the RT windowrtMax
- the maximum of the RT windowpublic Precursor(double mz, double intensity, ArrayList<Integer> possibleCharges, double rtMin, double rtMax)
mz
- the m/zintensity
- the intensitypossibleCharges
- the possible chargesrtMin
- the minimum of the RT window in secondsrtMax
- the maximum of the RT window in secondspublic double getRt()
public double getRtInMinutes()
public boolean hasRTWindow()
public double[] getRtWindow()
public double getMz()
public double getIntensity()
public ArrayList<Integer> getPossibleCharges()
public String getPossibleChargesAsString()
public Precursor getRecalibratedPrecursor(double mzCorrection, double rtCorrection)
mzCorrection
- the m/z correction to applyrtCorrection
- the retention time correction to applypublic double getMassPlusProton(int chargeValue)
chargeValue
- the value of the charge plus a single protonpublic double getMass(int chargeValue)
chargeValue
- the value of the chargeCopyright © 2018. All rights reserved.