public class IonMatch extends ExperimentObject
Modifier and Type | Class and Description |
---|---|
static class |
IonMatch.MzErrorType
Enum of the supported error types.
|
Modifier and Type | Field and Description |
---|---|
Charge |
charge
The supposed charge of the ion.
|
Ion |
ion
The matching ion.
|
Peak |
peak
The matched peak.
|
Constructor and Description |
---|
IonMatch(Peak aPeak,
Ion anIon,
Charge aCharge)
Constructor for an ion peak.
|
Modifier and Type | Method and Description |
---|---|
double |
getAbsoluteError()
Get the absolute matching error in Da without isotope removal.
|
double |
getAbsoluteError(boolean subtractIsotope)
Get the absolute matching error in Da.
|
CvTerm |
getChargePrideCvTerm()
Returns the pride CV term for the ion match charge.
|
double |
getError(boolean isPpm,
boolean subtractIsotope)
Returns the error.
|
CvTerm |
getIntensityPrideCvTerm()
Returns the pride CV term for the ion match intensity.
|
CvTerm |
getIonMassErrorPrideCvTerm()
Returns the pride CV term for the ion match error.
|
int |
getIsotopeNumber()
Returns the distance in number of neutrons between the experimental mass
and theoretic mass, image of the isotope number: 1 typically indicates
C13 isotope.
|
static String |
getMatchKey(Ion ion,
int charge)
Returns a key for the ion match uniquely representing a peak annotation.
|
CvTerm |
getMZPrideCvTerm()
Returns the pride CV term for the ion match m/z.
|
String |
getPeakAnnotation()
Returns the annotation to use for the ion match as a String.
|
String |
getPeakAnnotation(boolean html)
Returns the annotation to use for the given ion match as a String.
|
static String |
getPeakAnnotation(boolean html,
Ion ion,
Charge charge)
Returns the annotation to use for a given ion and charge as a String.
|
static String |
getPeakAnnotation(Ion ion,
Charge charge)
Returns the annotation to use for a given ion and charge as a String.
|
double |
getRelativeError()
Get the relative m/z matching error in ppm without isotope removal.
|
double |
getRelativeError(boolean subtractIsotope)
Get the relative m/z matching error in ppm.
|
addUrParam, getParameterKey, getUrParam
public Peak peak
public Ion ion
public Charge charge
public double getAbsoluteError(boolean subtractIsotope)
subtractIsotope
- indicates whether the isotope number shall be
subtractedpublic double getAbsoluteError()
public double getRelativeError(boolean subtractIsotope)
subtractIsotope
- indicates whether the isotope number shall be
subtractedpublic double getRelativeError()
public int getIsotopeNumber()
public double getError(boolean isPpm, boolean subtractIsotope)
isPpm
- a boolean indicating whether the error should be retrieved
in ppm (true) or in Dalton (false)subtractIsotope
- indicates whether the isotope number shall be
subtractedpublic String getPeakAnnotation()
public static String getPeakAnnotation(Ion ion, Charge charge)
ion
- the given ioncharge
- the given chargepublic static String getMatchKey(Ion ion, int charge)
ion
- the ion matchedcharge
- the chargepublic static String getPeakAnnotation(boolean html, Ion ion, Charge charge)
html
- if true, returns the annotation as HTML with subscripts tagsion
- the given ioncharge
- the given chargepublic String getPeakAnnotation(boolean html)
html
- if true, returns the annotation as HTML with subscripts tagspublic CvTerm getMZPrideCvTerm()
public CvTerm getIntensityPrideCvTerm()
public CvTerm getIonMassErrorPrideCvTerm()
public CvTerm getChargePrideCvTerm()
Copyright © 2015. All rights reserved.