public class PointMutation extends Mutation
Constructor and Description |
---|
PointMutation(String position,
String wtResidue,
String mutResidue) |
Modifier and Type | Method and Description |
---|---|
static PointMutation |
createPointMutationFrom_wNm(String wNm)
Create PointMutation from wNm-format, single-letter abbreviated mention.
|
boolean |
equals(Object obj)
Two PointMutation objects are equal if their Position, WtResidue, and MutResidue values are all equal.
|
char |
getMutResidue()
Return the mutant residue for this point mutation.
|
char |
getWtResidue()
Return the wild-type residue for this point mutation.
|
int |
hashCode()
To be overridden by subclasses
|
boolean |
isMatchesLongForm()
Return if the originally matched wildtype or mutated allele matched a long form
(e.g., Lysine -> true, L -> false)
|
boolean |
isValid()
Only Nucleotide Sequence Mutations (NSM) are allowed to have a positional offset of < 0
This method checks if the position of a mutation is valid;
|
char |
normalizeResidueIdentity(String residue)
Normalize three-letter and full residue names to their one-letter abbreviations.
|
protected Map<String,String> |
populateAminoAcidOneToOneLookupMap() |
String |
toString()
Override toString(), returns mutation as a string in wNm format
|
error, getId, getPosition, setId, updateMapping, warn
public PointMutation(String position, String wtResidue, String mutResidue) throws MutationException
MutationException
public boolean isValid()
public char normalizeResidueIdentity(String residue) throws MutationException
residue
- MutationException
protected Map<String,String> populateAminoAcidOneToOneLookupMap()
public char getMutResidue()
public char getWtResidue()
public boolean isMatchesLongForm()
public boolean equals(Object obj)
public int hashCode()
Mutation
public String toString()
public static PointMutation createPointMutationFrom_wNm(String wNm) throws MutationException
wNm
- a 3-character String representing a mutation mention in the wNm formatMutationException
Copyright © 2016. All rights reserved.