public class Specificity extends Object implements Comparable
Modifier and Type | Class and Description |
---|---|
static class |
Specificity.AminoAcid
To use the same notation of PSI-MOD we decide to include the X as aminoacid.
|
static class |
Specificity.Position |
Constructor and Description |
---|
Specificity(Specificity.AminoAcid aminoacid,
Specificity.Position position)
Constructor to init the Specificity with aminoacid and position
|
Specificity(String aminoacid,
String position)
Constructor to init the Specificity with aminoacid and position in String form
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
Specificity.AminoAcid |
getName()
Get Amino Acid Position
|
Specificity.Position |
getPosition()
Get Position
|
static Specificity.AminoAcid |
parseAminoAcid(String s)
Convert an Amino acids in the one chacter representation to the AminoAcid
representation.
|
static Specificity.Position |
parsePositon(String s)
Convert a String to a Position object.
|
void |
setName(Specificity.AminoAcid name)
Set Amino Acid Position
|
void |
setPosition(Specificity.Position position)
Set position
|
public Specificity(Specificity.AminoAcid aminoacid, Specificity.Position position)
aminoacid
- position
- public Specificity.Position getPosition()
public void setPosition(Specificity.Position position)
position
- public Specificity.AminoAcid getName()
public void setName(Specificity.AminoAcid name)
name
- public int compareTo(Object o)
compareTo
in interface Comparable
public static Specificity.AminoAcid parseAminoAcid(String s)
s
- public static Specificity.Position parsePositon(String s)
s
- Copyright © 2015. All Rights Reserved.