java.io.Serializable, GroupAminoAcidImpl, NucleotideImplpublic class HetatomImpl extends java.lang.Object implements Group, java.io.Serializable
AminoAcidImpl,
NucleotideImpl,
Serialized Form| Modifier and Type | Class | Description |
|---|---|---|
static class |
HetatomImpl.PerformanceBehavior |
Behaviors for how to balance memory vs.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.List<Atom> |
atoms |
|
protected ChemComp |
chemComp |
|
protected boolean |
pdb_flag |
stores if 3d coordinates are available.
|
protected java.lang.String |
pdb_name |
3 letter name of amino acid in pdb file.
|
static HetatomImpl.PerformanceBehavior |
performanceBehavior |
|
protected ResidueNumber |
residueNumber |
|
static GroupType |
type |
The GroupType is HETATM
|
| Constructor | Description |
|---|---|
HetatomImpl() |
Construct a Hetatom instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addAltLoc(Group group) |
Add a group that is an alternate location for this group.
|
void |
addAtom(Atom atom) |
Add an atom to this group.
|
void |
clearAtoms() |
remove all atoms
|
java.lang.Object |
clone() |
returns and identical copy of this Group object .
|
Group |
getAltLocGroup(java.lang.Character altLoc) |
Gets the alternate location group to this group that has the alt-loc character code passed.
|
java.util.List<Group> |
getAltLocs() |
Get the list of alternate locations.
|
Atom |
getAtom(int position) |
Get at atom by position.
|
Atom |
getAtom(java.lang.String name) |
Get an atom given its PDB name.
|
java.util.List<Atom> |
getAtoms() |
Get list of atoms.
|
Chain |
getChain() |
Returns the parent Chain of the Group.
|
java.lang.String |
getChainId() |
Utility method for returning the chainId of the Group or null if no
Chain has been set.
|
ChemComp |
getChemComp() |
Get the chemical component that closer describes this group.
|
long |
getId() |
the Hibernate database ID
|
java.lang.String |
getPDBName() |
Returns the PDBName.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
return properties.
|
java.lang.Object |
getProperty(java.lang.String key) |
get a single property .
|
ResidueNumber |
getResidueNumber() |
returns a dynamically created ResidueNumber for the group - this
contains the chainId, resNum and insCode of the group.
|
GroupType |
getType() |
|
boolean |
has3D() |
returns true or false, depending if this group has 3D coordinates or not.
|
boolean |
hasAltLoc() |
Test if this group has alternate locations.
|
boolean |
hasAminoAtoms() |
Calculate if this group has all atoms required for an amino acid backbone.
|
boolean |
hasAtom(java.lang.String fullName) |
Tell whether a particular atom exists within this group.
|
boolean |
isWater() |
Determines if this group is water.
|
java.util.Iterator<Atom> |
iterator() |
return an AtomIterator.
|
void |
setAtoms(java.util.List<Atom> atoms) |
Set the atoms of this group.
|
void |
setChain(Chain chain) |
Sets the back-reference to its parent Chain.
|
void |
setChemComp(ChemComp cc) |
Set the Chemical Component that closer describes this group.
|
void |
setId(long id) |
the Hibernate database ID
|
void |
setPDBFlag(boolean flag) |
flag if group has 3D data.
|
void |
setPDBName(java.lang.String s) |
Set three character name of Group .
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
Properties of this amino acid.
|
void |
setProperty(java.lang.String key,
java.lang.Object value) |
set a single property .
|
void |
setResidueNumber(java.lang.String chainId,
java.lang.Integer resNum,
java.lang.Character iCode) |
Utility method to temporarily set a chainID for a group, if a parent chain object does not exist yet.
|
void |
setResidueNumber(ResidueNumber residueNumber) |
sets the ResidueNumber for this Group
|
int |
size() |
Get number of atoms.
|
java.lang.String |
toSDF() |
Function to get the Group as an MDL molblock
|
java.lang.String |
toString() |
|
void |
trimToSize() |
attempts to reduce the memory imprint of this group by trimming
all internal Collection objects to the required size.
|
public static final GroupType type
protected boolean pdb_flag
protected java.lang.String pdb_name
protected ResidueNumber residueNumber
protected java.util.List<Atom> atoms
public static HetatomImpl.PerformanceBehavior performanceBehavior
protected ChemComp chemComp
public boolean has3D()
public void setPDBFlag(boolean flag)
setPDBFlag in interface Groupflag - true to set flag that this Group has 3D coordinatespublic void setPDBName(java.lang.String s)
setPDBName in interface Groups - a String specifying the PDBName valuegetPDBName()public java.lang.String getPDBName()
getPDBName in interface GroupsetPDBName(java.lang.String)public void addAtom(Atom atom)
public void clearAtoms()
clearAtoms in interface Grouppublic int size()
public java.util.List<Atom> getAtoms()
getAtoms in interface GroupGroup.setAtoms(List)public void setAtoms(java.util.List<Atom> atoms)
public Atom getAtom(java.lang.String name)
Atom.getElement()public Atom getAtom(int position)
public boolean hasAtom(java.lang.String fullName)
public GroupType getType()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean hasAminoAtoms()
Group.getType()
amino atoms are : N, CA, C, O
Example: 1DW9 chain A first group is a Selenomethionine, provided as HETATM, but here returns true.HETATM 1 N MSE A 1 11.720 20.973 1.584 0.00 0.00 N HETATM 2 CA MSE A 1 10.381 20.548 1.139 0.00 0.00 C HETATM 3 C MSE A 1 9.637 20.037 2.398 0.00 0.00 C HETATM 4 O MSE A 1 10.198 19.156 2.985 0.00 0.00 O HETATM 5 CB MSE A 1 10.407 19.441 0.088 0.00 0.00 C
hasAminoAtoms in interface GroupGroup.getType()public void setProperties(java.util.Map<java.lang.String,java.lang.Object> props)
setProperties in interface Groupprops - a Map object specifying the properties valueGroup.getProperties()public java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in interface GroupsetProperties(java.util.Map<java.lang.String, java.lang.Object>)public void setProperty(java.lang.String key,
java.lang.Object value)
setProperty in interface Groupkey - a Stringvalue - an ObjectgetProperties(),
getProperty(java.lang.String)public java.lang.Object getProperty(java.lang.String key)
getProperty in interface Groupkey - a StringsetProperty(java.lang.String, java.lang.Object),
setProperties(java.util.Map<java.lang.String, java.lang.Object>)public java.util.Iterator<Atom> iterator()
public java.lang.Object clone()
public long getId()
public void setId(long id)
id - the hibernate idpublic ChemComp getChemComp()
GroupgetChemComp in interface Grouppublic void setChemComp(ChemComp cc)
GroupsetChemComp in interface Groupcc - the chemical componentpublic void setChain(Chain chain)
setChain in interface Groupchain - the parent ChainGroup.getChain()public Chain getChain()
getChain in interface GroupGroup.setChain(Chain)public java.lang.String getChainId()
getChainId in interface Grouppublic ResidueNumber getResidueNumber()
getResidueNumber in interface GroupResidueNumberpublic void setResidueNumber(ResidueNumber residueNumber)
GroupsetResidueNumber in interface GroupresidueNumber - the PDB residueNumberpublic void setResidueNumber(java.lang.String chainId,
java.lang.Integer resNum,
java.lang.Character iCode)
GroupsetResidueNumber in interface Grouppublic boolean hasAltLoc()
Grouppublic java.util.List<Group> getAltLocs()
GroupgetAltLocs in interface Grouppublic Group getAltLocGroup(java.lang.Character altLoc)
GroupgetAltLocGroup in interface GroupaltLoc - the alternate location code of the group desiredpublic void addAltLoc(Group group)
Grouppublic boolean isWater()
Grouppublic void trimToSize()
trimToSize in interface Group