A sub-class of Structure for use when reading from a Maestro format
file and only the structure-level properties are needed. The actual atom
and bond records are not parsed from the file and so can't actually be
accessed. The only things possible with this type of Strucure are to
access the structure level properties or to write it out unchanged to a
file. Attempts to access the atom or bond data, directly or indirectly,
will raise an exception.
The only useful way to create a TextualStructure object is via the
StructureReader with the 'maestro_text' format.
|
__init__(self,
ct,
txt)
Initialize the TextualStructure object. |
|
|
|
__str__(self)
Return the structure object as a text string |
|
|
|
_getStructureAtomContainer(self) |
|
|
|
_getStructureMoleculeIterator(self) |
|
|
|
_getStructureChainIterator(self) |
|
|
|
|
|
_getStructureRingIterator(self) |
|
|
|
|
|
write(self,
filename,
format=None)
Write the structure to a file, overwriting any previous content. |
|
|
|
append(self,
filename,
format=None)
Append the structure to the file. |
|
|
|
putToM2ioFile(self,
filehandle)
Used by the Maestro writer - put a single structure to the (already
open) filehandle |
|
|
|
closeBlockIfNecessary(self,
filehandle)
Used by the Maestro writer to leave the header block if necessary. |
|
|
Inherited from Structure :
__copy__ ,
__eq__ ,
__getstate__ ,
__int__ ,
__ne__ ,
__repr__ ,
__setstate__ ,
addAtom ,
addAtoms ,
addBond ,
addBonds ,
adjust ,
applyStyle ,
areBound ,
bond ,
copy ,
deleteAtoms ,
deleteBond ,
extend ,
extract ,
findResidue ,
find_rings ,
get3dStructure ,
getAtomIndices ,
getBond ,
getChainAtoms ,
getMoleculeAtoms ,
getMovingAtoms ,
getResidueAtoms ,
getXYZ ,
has3dCoords ,
inRing ,
isEquivalent ,
measure ,
merge ,
retype ,
setXYZ ,
update ,
writeToString
Inherited from Structure (private):
_createAtomContainer ,
_createBondContainer ,
_createProxy ,
_createStructureChainIterator ,
_createStructureMoleculeIterator ,
_createStructureRingIterator ,
_getAtomTotal ,
_getFormalCharge ,
_getManageHandle ,
_getManualUpdate ,
_getMolTotal ,
_getTitle ,
_getTotalWeight ,
_proxy ,
_setManageHandle ,
_setManualUpdate ,
_setStructureProperty ,
_setTitle
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
atom
An iterable of structure atoms, each of which is a _StructureAtom instance.
|
|
molecule
An iterable of molecules in the structure, each of which is a _Molecule instance.
|
|
chain
An iterable of chains in the structure, each of which is a _Chain instance.
|
|
residue
An iterable of residues in the structure, each of which is a _Residue instance.
|
|
ring
An iterable of rings in the structure, each of which is a _Ring instance.
|
|
property
Dictionary-like container of structure properties.
|
Inherited from Structure :
atom_total ,
formal_charge ,
manage_handle ,
manual_update ,
mol_total ,
title ,
total_weight
Inherited from object :
__class__
|