public class PepFragAnnotation extends Object implements PeakAnnotation
| Modifier and Type | Class and Description |
|---|---|
static class |
PepFragAnnotation.Builder
PepFragAnnotation Builder
|
| Modifier and Type | Field and Description |
|---|---|
static Composition |
EMPTY_COMPOSITION |
| Constructor and Description |
|---|
PepFragAnnotation(IonType ionType,
int charge,
AminoAcidSequence sequence)
Construct a PepFragAnnotation
|
PepFragAnnotation(PepFragAnnotation src)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
PepFragAnnotation |
copy()
Creates and returns a copy of this object.
|
boolean |
equals(Object o) |
int |
getCharge()
Return this peaks charge
|
PeptideFragment |
getFragment()
Return the peptide fragment associated with this annotation
|
IonType |
getIonType()
Return the peaks ion type
|
Composition |
getIsotopeComposition()
Return the Composition that contains the isotopes.
|
int |
getIsotopeCount()
Return the number of isotopes
|
Mass |
getNeutralLoss()
Return the mass shift that is associated with this annotation
|
double |
getTheoreticalMz()
Returns the theoretical m/z for this annotation.
|
int |
hashCode() |
boolean |
hasNeutralLoss()
Returns true if this annotation annotates a peak with a neutral loss, false otherwise
|
String |
toSptxtString()
Convert this annotation to a SptxtString
|
String |
toString() |
public static final Composition EMPTY_COMPOSITION
public PepFragAnnotation(PepFragAnnotation src)
src - the PepFragAnnotation to copypublic PepFragAnnotation(IonType ionType, int charge, AminoAcidSequence sequence)
ionType - the ion typecharge - the chargesequence - the sequence of thepublic IonType getIonType()
public boolean hasNeutralLoss()
public Mass getNeutralLoss()
public PeptideFragment getFragment()
public int getIsotopeCount()
public Composition getIsotopeComposition()
public int getCharge()
PeakAnnotationgetCharge in interface PeakAnnotationpublic PepFragAnnotation copy()
Copyablex, the expression:
will be true, and that the expression:x.copy() != x
will bex.copy().getClass() == x.getClass()
true, but these are not absolute requirements.
While it is typically the case that:
will bex.copy().equals(x)
true, this is not an absolute requirement.
copy in interface Copyable<PeakAnnotation>public double getTheoreticalMz()
public String toSptxtString()
Copyright © 2016. All Rights Reserved.