public class MutationMatrix extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
MutationMatrix[] |
defaultMutationMatrices
Returns the implemented default mutation matrices.
|
MutationMatrix |
singleBaseSubstitution
Mutation matrix allowing for a single base mutation.
|
MutationMatrix |
synonymousMutation
Mutation matrix grouping synonymous amino acids.
|
MutationMatrix |
transitionsSingleBaseSubstitution
Mutation matrix allowing for a single base transitions mutation.
|
MutationMatrix |
transversalSingleBaseSubstitution
Mutation matrix allowing for a single base transversion mutation.
|
Constructor and Description |
---|
MutationMatrix(String name,
String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(MutationMatrix otherMatrix)
Adds the content of a mutation matrix in this matrix.
|
void |
addMutation(Character originalAa,
Character mutatedAa)
Adds a possible mutation.
|
String |
getDescription()
Returns the description of this mutation matrix.
|
Set<Character> |
getMutatedAminoAcids()
Returns the possible mutated amino acids.
|
HashSet<Character> |
getMutatedAminoAcids(Character originalAminoAcid)
Returns the possible mutated amino acids for the given amino acid as a
list of their single letter code.
|
String |
getName()
Returns the name of this mutation matrix.
|
Set<Character> |
getOriginalAminoAcids()
Returns the amino acids where a mutation has been registered.
|
HashSet<Character> |
getOriginalAminoAcids(Character mutatedAminoAcid)
Returns the possible original amino acids for the given mutated amino
acid as a list of their single letter code.
|
boolean |
isSameAs(MutationMatrix mutationMatrix)
Indicates whether the two MutationMatrix are the same.
|
void |
setDescription(String description)
Sets the description of this mutation matrix.
|
void |
setName(String name)
Sets the name of this mutation matrix.
|
public final MutationMatrix singleBaseSubstitution
public final MutationMatrix transitionsSingleBaseSubstitution
public final MutationMatrix transversalSingleBaseSubstitution
public final MutationMatrix synonymousMutation
public final MutationMatrix[] defaultMutationMatrices
public void addMutation(Character originalAa, Character mutatedAa)
originalAa
- the original amino acid represented by its single
letter codemutatedAa
- the mutated amino acid represented by its single letter
codepublic HashSet<Character> getMutatedAminoAcids(Character originalAminoAcid)
originalAminoAcid
- the amino acid of interestpublic HashSet<Character> getOriginalAminoAcids(Character mutatedAminoAcid)
mutatedAminoAcid
- the mutated amino acid of interestpublic Set<Character> getOriginalAminoAcids()
public Set<Character> getMutatedAminoAcids()
public void add(MutationMatrix otherMatrix)
otherMatrix
- the other matrix to addpublic String getName()
public void setName(String name)
name
- the name of this mutation matrixpublic String getDescription()
public void setDescription(String description)
description
- the description of this mutation matrixpublic boolean isSameAs(MutationMatrix mutationMatrix)
mutationMatrix
- Copyright © 2014. All rights reserved.