org.biojava3.aaproperties.xml
Class AminoAcidCompositionTable
java.lang.Object
org.biojava3.aaproperties.xml.AminoAcidCompositionTable
public class AminoAcidCompositionTable
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AminoAcidCompositionTable
public AminoAcidCompositionTable()
AminoAcidCompositionTable
public AminoAcidCompositionTable(java.util.List<AminoAcidComposition> aaList)
getAminoAcidCompoundSet
public ModifiedAminoAcidCompoundSet getAminoAcidCompoundSet()
getAminoacid
public java.util.List<AminoAcidComposition> getAminoacid()
setAminoacid
public void setAminoacid(java.util.List<AminoAcidComposition> aminoacid)
getSymbolSet
public java.util.Set<java.lang.Character> getSymbolSet()
computeMolecularWeight
public void computeMolecularWeight(ElementTable eTable)
- Computes and store the molecular weight of each amino acid by its symbol in aaSymbol2MolecularWeight.
- Parameters:
eTable - Stores the mass of elements and isotopes
getMolecularWeight
public double getMolecularWeight(java.lang.Character aaSymbol)
throws java.lang.NullPointerException
- Parameters:
aaSymbol - Standard symbol of Amino Acid
- Returns:
- the molecular weight given its symbol
- Throws:
java.lang.NullPointerException - thrown if AminoAcidCompositionTable.computeMolecularWeight(ElementTable) is not called before this method