|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.experiment.biology.Mutation
public class Mutation
This class represents a mutation of one amino acid to another from the 20-letter amino acid alphabet.
Constructor Summary | |
---|---|
Mutation(AminoAcid origin,
AminoAcid target)
Constructs a mutation from one amino acid (origin) to another (target). |
Method Summary | |
---|---|
boolean |
equals(Mutation mutation)
Overwritten equals method. |
double |
getMassShift()
Returns the mass shift. |
AminoAcid |
getOrigin()
Returns the origin amino acid. |
int |
getRoundedMassShift()
Get rounded mass shift. |
AminoAcid |
getTarget()
Returns the target amino acid. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Mutation(AminoAcid origin, AminoAcid target)
origin
- the origintarget
- the targetMethod Detail |
---|
public double getMassShift()
public int getRoundedMassShift()
public AminoAcid getOrigin()
public AminoAcid getTarget()
public boolean equals(Mutation mutation)
mutation
- The mutation to be compared.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |