public interface Modification extends Comparable
Modifier and Type | Field and Description |
---|---|
static int |
AVERAGE
Constant to indicate the position of the average mass in the mass array.
|
static String |
CTERMINUS
The residue code for the C-terminus.
|
static int |
MONOISOTOPIC
Constant to indicate the position of the monoisotopic mass in the mass array.
|
static String |
NTERMINUS
The residue code for the N-terminus.
|
Modifier and Type | Method and Description |
---|---|
double |
getAverageMassDelta(String aResidue)
This method returns a double with the average mass difference
conferred on the sequence by this modification for the specified residue.
|
String |
getCode()
This method returns the short code for the modification, eg.
|
int |
getLocation()
This method returns the location of the modification in the sequence.
|
double |
getMonoisotopicMassDelta(String aResidue)
This method returns a double with the monoisotopic mass difference
conferred on the sequence by this modification for the specified residue.
|
Collection |
getResidues()
This method reports on all the residues that can be modified by this Modification.
|
String |
getTitle()
This method returns the title of the modification,
eg.
|
boolean |
isArtifact()
This method indicates whether this modification is considered an artifact.
|
void |
setLocation(int aLocation)
This method allows the setting of the location for this modification.
|
String |
toString()
This method returns a String representation of the Modification.
|
compareTo
static final int MONOISOTOPIC
static final int AVERAGE
static final String NTERMINUS
static final String CTERMINUS
int getLocation()
boolean isArtifact()
String getCode()
String getTitle()
double getMonoisotopicMassDelta(String aResidue)
aResidue
- String with the residue for which the mass delta needs to be calculated.double getAverageMassDelta(String aResidue)
aResidue
- String with the residue for which the mass delta needs to be calculated.void setLocation(int aLocation)
aLocation
- int with the location for this modification within the parent sequence.Collection getResidues()
Copyright © 2016. All rights reserved.