com.compomics.util.experiment.biology
Class Mutation

java.lang.Object
  extended by com.compomics.util.experiment.biology.Mutation

public class Mutation
extends Object

This class represents a mutation of one amino acid to another from the 20-letter amino acid alphabet.

Author:
Thilo Muth

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

Mutation

public Mutation(AminoAcid origin,
                AminoAcid target)
Constructs a mutation from one amino acid (origin) to another (target).

Parameters:
origin - the origin
target - the target
Method Detail

getMassShift

public double getMassShift()
Returns the mass shift.

Returns:
The mass shift.

getRoundedMassShift

public int getRoundedMassShift()
Get rounded mass shift.

Returns:
Rounded mass shift.

getOrigin

public AminoAcid getOrigin()
Returns the origin amino acid.

Returns:
The origin amino acid.

getTarget

public AminoAcid getTarget()
Returns the target amino acid.

Returns:
The target amino acid.

equals

public boolean equals(Mutation mutation)
Overwritten equals method.

Parameters:
mutation - The mutation to be compared.
Returns:
True if both mutations are the same.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.