Atom Pointer

This module defines atom pointer base class.

class AtomPointer(ag, acsi)[source]

A base for classes pointing to atoms in AtomGroup instances. Derived classes are:

copy()

Returns a copy of atoms (and atomic data) in an AtomGroup instance.

getACSIndex()[source]

Returns index of the coordinate set.

getACSLabel()[source]

Returns active coordinate set label.

getAnisous()[source]

Returns a copy of anisotropic temperature factors from the active coordinate set.

getAtomGroup()[source]

Returns associated atom group.

getBonds()[source]

Returns bonds. Use setBonds() or inferBonds() from parent AtomGroup for setting bonds.

getCSLabels()[source]

Returns coordinate set labels.

getDataLabels(which=None)[source]

Returns data labels. For which='user', return only labels of user provided data.

getDataType(label)[source]

Returns type of the data (i.e. data.dtype) associated with label, or None label is not used.

getFlagLabels(which=None)[source]

Returns flag labels. For which='user', return labels of user or parser (e.g. hetatm) provided flags, for which='all' return all possible Atom Flags labels in addition to those present in the instance.

getSequence(**kwargs)

Returns one-letter sequence string for amino acids. When allres keyword argument is True, sequence will include all residues (e.g. water molecules) in the chain and X will be used for non-standard residue names.

getTitle()

Returns title of the instance.

isDataLabel(label)[source]

Returns True if data associated with label is present.

isFlagLabel(label)[source]

Returns True if flags associated with label are present.

iterAcceptors()[source]

Yield acceptors formed by the atom. Use setAcceptors() for setting acceptors.

iterAngles()[source]

Yield angles formed by the atom. Use setAngles() for setting angles.

iterBonds()[source]

Yield bonds formed by the atom. Use setBonds() or inferBonds() for setting bonds.

iterCrossterms()[source]

Yield crossterms formed by the atom. Use setCrossterms() for setting crossterms.

iterDihedrals()[source]

Yield dihedrals formed by the atom. Use setDihedrals() for setting dihedrals.

iterDonors()[source]

Yield donors formed by the atom. Use setDonors() for setting donors.

iterImpropers()[source]

Yield impropers formed by the atom. Use setImpropers() for setting impropers.

iterNBExclusions()[source]

Yield nbexclusions formed by the atom. Use setNBExclusions() for setting nbexclusions.

numBonds()[source]

Returns number of bonds. Use setBonds() or inferBonds() from parent AtomGroup for setting bonds.

numCoordsets()[source]

Returns number of coordinate sets.

numResidues()

Returns number of residues.

select(selstr, **kwargs)

Returns atoms matching selstr criteria. See select module documentation for details and usage examples.

setACSIndex(index)[source]

Set coordinates at index active.

toAtomGroup()

Returns a copy of atoms (and atomic data) in an AtomGroup instance.

toBioPythonStructure(header=None, **kwargs)

Returns a Bio.PDB.Structure object

Parameters:
  • atoms (Atomic) – an object with atom and coordinate data
  • csets – coordinate set indices, default is all coordinate sets
toTEMPyAtoms()

Returns a TEMPy.protein.prot_rep_biopy.Atom or list of them as appropriate

toTEMPyStructure()

Returns a protein.prot_rep_biopy.Structure object