Trees | Indices | Help |
|
---|
|
A module containing the central interface for reading and editing chemical structures.
Structure is a pythonic, object oriented wrapper for the
mmct library that provides access to atoms, bonds, and their properties.
It provides common methods for inspecting and editing coordinates, e.g.
Structure.measure, Structure.adjust, and Structure.merge. The schrodinger.structureutil
module and
schrodinger.structutils package provide additional functions and classes
that operate on Structure
objects.
The default error handler for the structure module is set to mm.error_handler. If no error handler is specified for error_handler arguments, its value is what will be used.
StructureReader provides a convenient iterator to read structures from files, and StructureWriter provides an efficient means of writing many files.
PropertyName provides translation between m2io datanames and user friendly names.
MultiFileStructureReader iterates through all the structure in multiple files using StructureReader.
Copyright Schrodinger, LLC. All rights reserved.
|
|||
BondType These represent varying bond types, which are independent from bond orders. |
|||
UndefinedStereochemistry Raised by SmilesStructure.getStructure() when atoms with undefined chirality are present. |
|||
_AtomIterator Iterates over each _StructureAtom in a _Molecule, _Chain, _Residue or _Ring. |
|||
_RingEdgeIterator Iterates over edges(bonds) of a _Ring. |
|||
_AtomCollection A set of atoms, usually comprising a subset of the total atoms in a Structure. |
|||
_Ring Class representing a ring. |
|||
_Molecule A class used to return molecule information when iterating over molecules in a Structure object. |
|||
_Residue A class which is returned by the ResidueIterator and contains information about the residue including the atoms which make it up. |
|||
_Chain A class used to return chain information when iterating over chains in a Structure object. |
|||
_StructureMoleculeIterator Iterates over _Molecule in a Structure. |
|||
_ResidueIterator Residue iterator. |
|||
_StructureChainIterator Class for iterating over chains in a Structure. |
|||
_StructureRingIterator Container for all rings in the Structure. |
|||
_StructureAtomProperty Dictionary-like container of atom based properties. |
|||
_StructureAtom Access of mmct atoms properties pythonically. |
|||
_StructureBondProperty Dictionary-like container of bond based properties. |
|||
_StructureBond A class for pythonic access to bond properties. |
|||
_StructureAtomContainer The class to provide access to _StructureAtom instances. |
|||
_StructureBondContainer The class to provide access to _StructureBond instances for each bond in the structure. |
|||
_AtomBondContainer The class to provide access to _StructureBond instances for each bond of an atom. |
|||
_StructureProperty Dictionary-like container of Structure based properties, with all dict methods. |
|||
_StructureDeleter A resource cleanup class for a single Structure. |
|||
_StructureManager Handle Structure life-cycle events: initialization, termination, and deletion. |
|||
Structure A general chemical structure object, which may contain multiple molecules. |
|||
_ReaderWriterContextManager A mixin to enable context manager usage in reader and writer classes. |
|||
MaestroTextReader A class for reading structures from a Maestro format file. |
|||
FormatReader This is a base class for all file format readers. |
|||
MaestroReader A class for reading structures from a Maestro (M2io) format file. |
|||
MaestroReaderWithPositions A class for rapid random access to the structures in a Maestro file. |
|||
OptionError A parent exception class to indicate an error in setting an option. |
|||
UnsupportedOption An exception class to indicate an attempt to set an option that is not supported. |
|||
UnsupportedOptionValue An exception class to indicate an attempt to set an option to a value that is supported. |
|||
_BaseWriter This class provides a common implementation for structure writers. |
|||
MaestroWriter A class for more efficient appending of a large number of structures to a single maestro structure file. |
|||
SDWriter A class for more efficient appending of a large number of structures to a single SD structure file. |
|||
Mol2Writer Mol2 support for the StructureWriter class. |
|||
PDBWriter A class for writing PDB-formatted files. |
|||
StructureWriter A class for efficient writing of multiple structures to a single structure file. |
|||
PDBReader A class for reading structures from a PDB format file. |
|||
SDReader A class for reading structures from a SD format file. |
|||
Mol2Reader A class for reading structures from a mol2 format file. |
|||
StructureReader Read structures from files of various types. |
|||
PropertyName The PropertyName class can be used to display the "user-readable" version of an entry or atom property to the user. |
|||
TextualStructure A sub-class of Structure for use when reading from a Maestro format file and only the structure-level properties are needed. |
|||
SmilesStructure SMILES representation of a Structure that is returned by SmilesReader and SmilesCsvReader. |
|||
SmilesReader A class for reading structures from a SMILES formatted file. |
|||
SmilesCsvReader A class for reading structures from a SMILES CSV formatted file. |
|||
SmilesWriter More efficient writing of a large number of structures to a single SMILES file. |
|||
SmilesCsvWriter More efficient writing of a large number of structures to a single SMILES CSV file. |
|||
MultiFileStructureReader Provides a single iterator that reads structure from multiple files. |
|||
MultiFileStructureWriter Similar to StructureWriter, except that it writes to multiple files, while keeping the number of structures per file under sts_per_file. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Structure._ResidueIterator |
|
||
Structure._ResidueIterator |
|
||
Structure._ResidueIterator |
|
|
|||
__doc__ =
|
|||
smiles = None hash(x) |
|||
canvas = None hash(x) |
|||
canvas2d = None hash(x) |
|||
canvasutils = None hash(x) |
|||
analyze = None hash(x) |
|||
NO_STEREO =
|
|||
STEREO_FROM_GEOMETRY =
|
|||
STEREO_FROM_ANNOTATION =
|
|||
STEREO_FROM_ANNOTATION_AND_GEOM =
|
|||
STEREO_FROM_3D =
|
|||
stereo_options =
|
|||
SS_NONE = -1
|
|||
SS_LOOP = 0 hash(x) |
|||
SS_HELIX = 1
|
|||
SS_STRAND = 2
|
|||
SS_TURN = 3 hash(x) |
|||
BOND_NOSTYLE = 0 hash(x) |
|||
BOND_WIRE = 1
|
|||
BOND_TUBE = 2
|
|||
BOND_BALLNSTICK = 3 hash(x) |
|||
ATOM_NOSTYLE = 0 hash(x) |
|||
ATOM_CIRCLE = 1
|
|||
ATOM_CPK = 2
|
|||
ATOM_BALLNSTICK = 3 hash(x) |
|||
NO_SPECIFIC_ISOTOPE = 0 hash(x) |
|||
_pdb_lookup =
|
|||
atom_prop_link =
|
|||
_res_sizes =
|
|||
_structure_manager = _StructureManager()
|
|||
PROP_LONG_NAME =
|
|||
PROP_SHORT_NAME =
|
|||
PROP_STRING =
|
|||
PROP_FLOAT =
|
|||
PROP_REAL =
|
|||
PROP_INTEGER =
|
|||
PROP_BOOLEAN =
|
|||
__package__ =
|
|||
prop =
|
|
Add a bond of the specified order between the two atoms atom1 and atom2. The atoms can be atom objects or integer index from 1 to the number of atoms in the structure. If the two atoms are already bonded then just the bond order is changed. @param bond_type the preferred type is a schrodinger.Structure.BondType value. A legacy option of passing an integer for bond order is supported. @type bond_type schrodinger.Structure.BondType or int (0-3) |
Read a Structure from file 'filename', defaulting to the first one found. Use the StructureReader or MaestroReader to access multiple structures from a single file. Deprecated: Use the static Structure.read method instead, as it handles multiple formats and avoids the deprecated 'ct' name. |
Get the format implied by the filename. If format isn't None, simply return the format provided. Otherwise, check the filename suffix and return one of "maestro", "pdb", "sd", "mol2", "smiles," or "smilescsv". raise ValueError: If the suffix is unrecognized. |
Return a string representation of the provided Structure, formatted as a Maestro file.
|
Return a string representation of the provided Structure, formatted as an SD file.
|
Write multiple structures to a file
|
Write a Structure object to a SMILES format file. Assumes that the input is a 3D file. If input is 2D (from SD file), then stereochemistry will be lost |
Returns the number of structures in the specified file. For PDB files, returns the number of MODELs. Optionally an error_handler may be specified (default of mm.error_handler). |
Returns a new Structure object. If the Structure is created without atoms, they can be added with the Structure.addAtom or Structure.addAtoms methods. Otherwise, the following atom attributes must be set for each atom afterwards:
|
Access residues in N->C connectivity order
|
Access residues in the unsorted input order
|
Access residues in the specified order. All keyword arguments are passed to _ResidueIterator.__init__.
|
|
__doc__
|
stereo_options
|
_pdb_lookup
|
atom_prop_link
|
_res_sizes
|
PROP_LONG_NAME
|
PROP_SHORT_NAME
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Apr 26 05:41:39 2016 | http://epydoc.sourceforge.net |