public class TagFragmentIon extends Ion
Ion.IonType
Modifier and Type | Field and Description |
---|---|
static int |
A_ION
Identifier for an a ion.
|
static int |
B_ION
Identifier for a b ion.
|
static int |
C_ION
Identifier for a c ion.
|
static int |
X_ION
Identifier for an x ion.
|
static int |
Y_ION
Identifier for a y ion.
|
static int |
Z_ION
Identifier for a z ion.
|
atomChain, theoreticMass, theoreticMass1, type
NO_KEY
Constructor and Description |
---|
TagFragmentIon()
Empty default constructor
|
TagFragmentIon(int fragmentType)
Constructor for a generic ion without neutral losses.
|
TagFragmentIon(int fragmentType,
int number,
int subNumber,
double mass,
NeutralLoss[] neutralLosses,
double massGap)
Constructor.
|
TagFragmentIon(int fragmentType,
NeutralLoss[] neutralLosses)
Constructor for a generic ion.
|
Modifier and Type | Method and Description |
---|---|
double |
getMassGap()
Returns the mass gap comprised in this ion.
|
String |
getName()
Returns the name of the ion.
|
String |
getNameWithGapAndNumber()
Returns the name with number and mass gap.
|
String |
getNameWithNumber()
Returns the name with number.
|
NeutralLoss[] |
getNeutralLosses()
Returns the possible neutral losses of this ion type.
|
int |
getNumber()
Returns the number of the fragment in the tag.
|
static int[] |
getPossibleSubtypes()
Returns the possible subtypes.
|
CvTerm |
getPrideCvTerm()
Returns the CV term adapted to the fragment ion.
|
CvTerm |
getPsiMsCvTerm()
Returns the CV term adapted to the fragment ion.
|
int |
getSubNumber()
Returns the number of the fragment in the current amino acid sequence.
|
int |
getSubType()
Returns the ion subtype.
|
String |
getSubTypeAsString()
Returns the subtype as string.
|
static String |
getSubTypeAsString(int subType)
Returns the type of fragment ion as a letter.
|
boolean |
isSameAs(Ion anotherIon)
Returns a boolean indicating whether the ion is the same as another ion.
|
getAtomicComposition, getGenericIon, getGenericIon, getImplementedIonTypes, getNeutralLossesAsString, getNeutralLossesAsString, getPossibleSubtypes, getPossibleSubtypesAsSet, getTheoreticMass, getTheoreticMz, getType, getTypeAsString, getTypeAsString, hasNeutralLosses, setAtomicComposition, setTheoreticMass
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
public static final int A_ION
public static final int B_ION
public static final int C_ION
public static final int X_ION
public static final int Y_ION
public static final int Z_ION
public TagFragmentIon()
public TagFragmentIon(int fragmentType, int number, int subNumber, double mass, NeutralLoss[] neutralLosses, double massGap)
fragmentType
- the type of peptide fragment ion as indexed by the
static fieldsnumber
- the number of the fragment ionsubNumber
- the number of the fragment ion in the current amino acid
sequencemass
- the mass of the fragment ionneutralLosses
- the neutral losses of the ionmassGap
- the mass gap before this tag fragment ionspublic TagFragmentIon(int fragmentType, NeutralLoss[] neutralLosses)
fragmentType
- the type of peptide fragment ion as indexed by the
static fieldsneutralLosses
- the neutral losses of the ionpublic TagFragmentIon(int fragmentType)
fragmentType
- the type of peptide fragment ion as indexed by the
static fieldspublic int getNumber()
public int getSubNumber()
public NeutralLoss[] getNeutralLosses()
Ion
getNeutralLosses
in class Ion
public String getName()
Ion
public String getNameWithNumber()
public String getNameWithGapAndNumber()
public CvTerm getPrideCvTerm()
Ion
getPrideCvTerm
in class Ion
public CvTerm getPsiMsCvTerm()
Ion
getPsiMsCvTerm
in class Ion
public int getSubType()
Ion
getSubType
in class Ion
public String getSubTypeAsString()
Ion
getSubTypeAsString
in class Ion
public static String getSubTypeAsString(int subType)
subType
- the subtypepublic static int[] getPossibleSubtypes()
public boolean isSameAs(Ion anotherIon)
Ion
public double getMassGap()
Copyright © 2021. All rights reserved.