Class Substitution
java.lang.Object
com.compomics.util.experiment.biology.variants.amino_acids.Substitution
- All Implemented Interfaces:
Variant
public class Substitution extends Object implements Variant
Class representing an amino acid substitution.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors Constructor Description Substitution()
Empty default constructorSubstitution(char originalAa, char substitutedAa)
Constructor. -
Method Summary
Modifier and Type Method Description String
getDescription()
Returns the description of the variant as string.char
getOriginalAminoAcid()
char
getSubstitutedAminoAcid()
-
Constructor Details
-
Substitution
public Substitution()Empty default constructor -
Substitution
public Substitution(char originalAa, char substitutedAa)Constructor.- Parameters:
originalAa
- the single character code of the original amino acidsubstitutedAa
- the single character code of the substituted amino acid
-
-
Method Details
-
getDescription
Description copied from interface:Variant
Returns the description of the variant as string.- Specified by:
getDescription
in interfaceVariant
- Returns:
- the description of the variant as string
-
getOriginalAminoAcid
public char getOriginalAminoAcid() -
getSubstitutedAminoAcid
public char getSubstitutedAminoAcid()
-