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 ,
copy ,
deleteAtoms ,
deleteBond ,
extend ,
extract ,
findResidue ,
find_rings ,
getBond ,
getChainAtoms ,
getMoleculeAtoms ,
getMovingAtoms ,
getResidueAtoms ,
getXYZ ,
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 ,
_setManageHandle ,
_setManualUpdate ,
_setStructureProperty ,
_setTitle
|