Class pmr.molecule.AminoAcid
All Packages Class Hierarchy This Package Previous Next Index
Class pmr.molecule.AminoAcid
java.lang.Object
|
+----pmr.molecule.AminoAcid
- public class AminoAcid
- extends Object
Provides the properties for a given aminoacid type;
can retrieve these by 1- or 3(+)-letter codes;
the latter has the capability of expanding to (say) HPRO, ORN, etc, whilst
1-letters are limited to one character.
The term '3-letter' will refer to longer strings where necessary
Note that this class has (say) 20 instances and is effectively a provider
of reference data and resettable properties such as colours.
- Author:
- (C) P. Murray-Rust, 1996
-
AminoAcid(String, String, String, String, String[])
- create from 1-letter, 3-letter, name, smiles, pdb atom names.
-
debug()
-
-
get1Letter(String)
- return 1-letter code if valid 3-letter arg, else "?"
-
get1LetterSequence(String[])
- get a gapless string of 1-letter codes from an array of 3-letter Strings
-
get3Letter(String)
- if the arg is 1-letter, return the 3-letter, else return unchanged;
unknown 1-letter returns "UNK"
-
get3LetterSequence(String)
- get an array of 3-letter Strings from a string of 1-letters; gaps are skipped
-
getAminoAcid(String)
- get AminoAcid, hashed by one-letter or three-letter codes
-
getColor()
- get the color of this AminoAcid
-
getFullName(String)
- get fullname from code; returns null if not found
-
getHydrophobicity()
- get hydrophobicity (Eisenberg, e.g.
-
getMonomerMolWt(String)
- get molecular weight of 'monomer': -N-CH(R)-C(=O)- (i.e.
-
getPAM250(AminoAcid, AminoAcid)
- returns score for a1 replacing a2 (from W.A.Pearson, Methods in
Enzymology, (e.d R.Doolittle) ISBN 0-12-182084-X, Academic Press,
San Diego, 183, (1990) 63-98
Not yet written
-
getRealProperty(String)
- get a real value already set with setRealProperty(); if name
is not found, returns Double.NaN;
-
getSMILES(String)
- get SMILES from code; returns null if not found
-
main(String[])
- a test program on a nonsense sequence
-
setColor(Color)
- set the color of this AminoAcid
-
setColor(String, Color)
- sets the colour of an amino acid by its code
-
setRealProperty(String, double)
- set a real value (double) for a given property, indexed by
case-insensitive string.
AminoAcid
public AminoAcid(String a1,
String a3,
String nam,
String sm,
String pdb[])
- create from 1-letter, 3-letter, name, smiles, pdb atom names. This is not
normally called except at static initialisation or if you discover a new AA.
setColor
public static void setColor(String code,
Color color)
- sets the colour of an amino acid by its code
setColor
public void setColor(Color color)
- set the color of this AminoAcid
getColor
public Color getColor()
- get the color of this AminoAcid
getHydrophobicity
public double getHydrophobicity()
- get hydrophobicity (Eisenberg, e.g. Fasman p 637)
setRealProperty
public void setRealProperty(String name,
double value)
- set a real value (double) for a given property, indexed by
case-insensitive string. Example:
aa.setRealProperty("MYHYDROPHOB", 3.2);
getRealProperty
public double getRealProperty(String name)
- get a real value already set with setRealProperty(); if name
is not found, returns Double.NaN;
getAminoAcid
public static AminoAcid getAminoAcid(String code)
- get AminoAcid, hashed by one-letter or three-letter codes
getFullName
public static String getFullName(String code)
- get fullname from code; returns null if not found
getSMILES
public static String getSMILES(String code)
- get SMILES from code; returns null if not found
getMonomerMolWt
public static double getMonomerMolWt(String code)
- get molecular weight of 'monomer': -N-CH(R)-C(=O)- (i.e. missing
OH2. These monomers can be combined to give the molecular weight of a
peptide. Neutral monomers are used. unknown code returns 0.0;
get3Letter
public static String get3Letter(String code)
- if the arg is 1-letter, return the 3-letter, else return unchanged;
unknown 1-letter returns "UNK"
get1Letter
public static String get1Letter(String code)
- return 1-letter code if valid 3-letter arg, else "?"
get3LetterSequence
public static String[] get3LetterSequence(String s1)
- get an array of 3-letter Strings from a string of 1-letters; gaps are skipped
get1LetterSequence
public static String get1LetterSequence(String s3[])
- get a gapless string of 1-letter codes from an array of 3-letter Strings
getPAM250
public int getPAM250(AminoAcid a1,
AminoAcid a2)
- returns score for a1 replacing a2 (from W.A.Pearson, Methods in
Enzymology, (e.d R.Doolittle) ISBN 0-12-182084-X, Academic Press,
San Diego, 183, (1990) 63-98
Not yet written
debug
public void debug()
main
public static void main(String args[])
- a test program on a nonsense sequence
All Packages Class Hierarchy This Package Previous Next Index