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, type
Constructor and Description |
---|
TagFragmentIon(int fragmentType)
Constructor for a generic ion without neutral losses.
|
TagFragmentIon(int fragmentType,
ArrayList<NeutralLoss> neutralLosses)
Constructor for a generic ion.
|
TagFragmentIon(int fragmentType,
int number,
int subNumber,
double mass,
ArrayList<NeutralLoss> neutralLosses,
double massGap)
Constructor.
|
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.
|
ArrayList<NeutralLoss> |
getNeutralLosses()
Returns the possible neutral losses of this ion type.
|
int |
getNumber()
Returns the number of the fragment in the tag.
|
static ArrayList<Integer> |
getPossibleSubtypes()
Returns an arraylist of possible subtypes.
|
CvTerm |
getPrideCvTerm()
Returns the pride 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, getTheoreticMass, getTheoreticMz, getType, getTypeAsString, getTypeAsString, hasNeutralLosses, setAtomicComposition, setTheoreticMass
addUrParam, getParameterKey, getUrParam
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(int fragmentType, int number, int subNumber, double mass, ArrayList<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, ArrayList<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 ArrayList<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 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 ArrayList<Integer> getPossibleSubtypes()
public boolean isSameAs(Ion anotherIon)
Ion
public double getMassGap()
Copyright © 2016. All rights reserved.