Package org.biojava.bio.structure
Class AminoAcidImpl
- java.lang.Object
-
- org.biojava.bio.structure.HetatomImpl
-
- org.biojava.bio.structure.AminoAcidImpl
-
public class AminoAcidImpl extends HetatomImpl implements AminoAcid
AminoAcid inherits most from Hetatom. Adds a few AminoAcid specific methods.- Since:
- 1.4
- Version:
- %I% %G%
- Author:
- Andreas Prlic, Jules Jacobsen
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Stringtypethis is an Amino acid.-
Fields inherited from interface org.biojava.bio.structure.AminoAcid
ATOMRECORD, SEQRESRECORD
-
-
Constructor Summary
Constructors Constructor Description AminoAcidImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()returns and identical copy of this Group object .java.lang.CharactergetAminoType()returns the name of the AA, in single letter code.AtomgetC()get C atom.AtomgetCA()get CA atom.AtomgetCB()get CB atom.AtomgetN()get N atom.AtomgetO()get O atom.java.lang.StringgetRecordType()Allows to distinguish between amino acids that are provided as ATOM records and a SEQRES records.java.util.Map<java.lang.String,java.lang.String>getSecStruc()get secondary structure data .java.lang.StringgetType()Returns the type value.voidsetAminoType(java.lang.Character aa)set the name of the AA, in single letter code .voidsetPDBName(java.lang.String s)set three character name of AminoAcid.voidsetRecordType(java.lang.String recordName)Allows to distinguish between amino acids that are provided as ATOM records and a SEQRES records.voidsetSecStruc(java.util.Map<java.lang.String,java.lang.String> secstr)set the secondary structure data for this amino acid.java.lang.StringtoString()string representation.-
Methods inherited from class org.biojava.bio.structure.HetatomImpl
addAtom, clearAtoms, getAtom, getAtom, getAtoms, getId, getParent, getPDBCode, getPDBName, getProperties, getProperty, has3D, hasAminoAtoms, hasAtom, iterator, setAtoms, setId, setParent, setPDBCode, setPDBFlag, setProperties, setProperty, size
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.biojava.bio.structure.Group
addAtom, clearAtoms, getAtom, getAtom, getAtoms, getParent, getPDBCode, getPDBName, getProperties, getProperty, has3D, hasAminoAtoms, hasAtom, iterator, setAtoms, setParent, setPDBCode, setPDBFlag, setProperties, setProperty, size
-
-
-
-
Field Detail
-
type
public static final java.lang.String type
this is an Amino acid. type is "amino".- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public java.lang.String getType()
Description copied from class:HetatomImplReturns the type value.- Specified by:
getTypein interfaceGroup- Overrides:
getTypein classHetatomImpl- Returns:
- a String representing the type value
-
setSecStruc
public void setSecStruc(java.util.Map<java.lang.String,java.lang.String> secstr)
set the secondary structure data for this amino acid. the data is a Map with the following indeces (@see Secstruc)- Specified by:
setSecStrucin interfaceAminoAcid- Parameters:
secstr- a Map object specifying the sec struc value- See Also:
getSecStruc()
-
getSecStruc
public java.util.Map<java.lang.String,java.lang.String> getSecStruc()
get secondary structure data .- Specified by:
getSecStrucin interfaceAminoAcid- Returns:
- a Map object representing the sec struc value
- See Also:
setSecStruc(java.util.Map<java.lang.String, java.lang.String>)
-
getN
public Atom getN() throws StructureException
get N atom.- Specified by:
getNin interfaceAminoAcid- Returns:
- an Atom object
- Throws:
StructureException- ...
-
getCA
public Atom getCA() throws StructureException
get CA atom.- Specified by:
getCAin interfaceAminoAcid- Returns:
- an Atom object
- Throws:
StructureException- ...
-
getC
public Atom getC() throws StructureException
get C atom.- Specified by:
getCin interfaceAminoAcid- Returns:
- an Atom object
- Throws:
StructureException- ...
-
getO
public Atom getO() throws StructureException
get O atom.- Specified by:
getOin interfaceAminoAcid- Returns:
- an Atom object
- Throws:
StructureException- ...
-
getCB
public Atom getCB() throws StructureException
get CB atom.- Specified by:
getCBin interfaceAminoAcid- Returns:
- an Atom object
- Throws:
StructureException- ...
-
getAminoType
public java.lang.Character getAminoType()
returns the name of the AA, in single letter code.- Specified by:
getAminoTypein interfaceAminoAcid- Returns:
- a Character object representing the amino type value
- See Also:
setAminoType(java.lang.Character)
-
setAminoType
public void setAminoType(java.lang.Character aa)
set the name of the AA, in single letter code .- Specified by:
setAminoTypein interfaceAminoAcid- Parameters:
aa- a Character object specifying the amino type value- See Also:
getAminoType()
-
setRecordType
public void setRecordType(java.lang.String recordName)
Description copied from interface:AminoAcidAllows to distinguish between amino acids that are provided as ATOM records and a SEQRES records.- Specified by:
setRecordTypein interfaceAminoAcid- Parameters:
recordName- either ATOMRECORD or SEQRESRECORD- See Also:
AminoAcid.getRecordType()
-
getRecordType
public java.lang.String getRecordType()
Description copied from interface:AminoAcidAllows to distinguish between amino acids that are provided as ATOM records and a SEQRES records.- Specified by:
getRecordTypein interfaceAminoAcid- Returns:
- the origin of this amino acid (ATOM or SEQRES records)
- See Also:
AminoAcid.setRecordType(String)
-
toString
public java.lang.String toString()
string representation.- Specified by:
toStringin interfaceAminoAcid- Overrides:
toStringin classHetatomImpl
-
setPDBName
public void setPDBName(java.lang.String s) throws PDBParseExceptionset three character name of AminoAcid.- Specified by:
setPDBNamein interfaceGroup- Overrides:
setPDBNamein classHetatomImpl- Parameters:
s- a String specifying the PDBName value- Throws:
PDBParseException- ...- See Also:
HetatomImpl.getPDBName()
-
clone
public java.lang.Object clone()
returns and identical copy of this Group object .- Specified by:
clonein interfaceGroup- Overrides:
clonein classHetatomImpl- Returns:
- and identical copy of this Group object
-
-