public class Precursor extends ExperimentObject
Modifier and Type | Field and Description |
---|---|
double |
intensity
The measured intensity of the precursor.
|
double |
mz
The measured m/z of the precursor.
|
int[] |
possibleCharges
The charge of the precursor.
|
double |
rt
The retention time when the precursor was isolated.
|
NO_KEY
Constructor and Description |
---|
Precursor()
Empty default constructor
|
Precursor(double rt,
double mz,
double intensity,
int[] possibleCharges)
Constructor with retention time window.
|
Precursor(double rt,
double mz,
int[] possibleCharges)
Constructor for the precursor.
|
Precursor(double mz,
double intensity,
int[] possibleCharges,
double rtMin,
double rtMax)
Constructor with retention time window and no reference retention time.
|
Modifier and Type | Method and Description |
---|---|
double |
getMass(int chargeValue)
Returns the mass of the precursor with the given charge.
|
String |
getPossibleChargesAsString()
Returns the possible charges as a string.
|
double |
getRtInMinutes()
Returns the retention time in minutes.
|
boolean |
isSameAs(Precursor otherPrecursor)
Returns a boolean indicating whether the precursor is identical to the
other precursor.
|
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
public final double rt
public final double mz
public final double intensity
public final int[] possibleCharges
public Precursor()
public Precursor(double rt, double mz, int[] possibleCharges)
rt
- the retention timemz
- the m/zpossibleCharges
- the possible chargespublic Precursor(double rt, double mz, double intensity, int[] possibleCharges)
rt
- the retention timemz
- the m/zintensity
- the intensitypossibleCharges
- the possible chargespublic Precursor(double mz, double intensity, int[] 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 getRtInMinutes()
public String getPossibleChargesAsString()
public double getMass(int chargeValue)
chargeValue
- the value of the chargepublic boolean isSameAs(Precursor otherPrecursor)
otherPrecursor
- The other precursor.Copyright © 2021. All rights reserved.