Trees | Indices | Help |
|
---|
|
object --+ | _ReaderWriterContextManager --+ | StructureWriter
A class for efficient writing of multiple structures to a single structure file. If you are writing a single structure, you can more easily use the Structure.write method.
Options that are not supported for all formats can be set with the setOption method, for example:
writer = StructureWriter(filename) try: writer.setOption(stereo=STEREO_FROM_ANNOTATION) except OptionError: # take action based on unsupported option/value here
Currently, the following options are available:
stereo
SD
,
SMILES
, and SMILESCSV
, although not all
options are supported for SD
.
NO_STEREO
,
STEREO_FROM_ANNOTATION_AND_GEOM
,
STEREO_FROM_ANNOTATION
, and
STEREO_FROM_GEOMETRY
.
STEREO_FROM_ANNOTATION_AND_GEOM
.
STEREO_FROM_ANNOTATION_AND_GEOM
, current
annotation properties of the Structure are used when present.
Chiral atoms without annotation properties will have their
stereochemistry determined from geometry (if possible) and will
be written with definite stereochemical configuration.
NO_STEREO
, no stereochemical information will
be written.
STEREO_FROM_ANNOTATION
, stereochemical
information will be written based only on the current
annotations. Use this option to allow for specification of
stereochemistry on some centers while leaving others undefined.
This should be faster than identifying stereochemistry from the
3D geometry.
STEREO_FROM_GEOMETRY
, stereochemistry will be
written for all chiral atoms based on the 3D geometry. This
option is not supported for SD
format.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
Create a structure writer class based on the format.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 6 04:50:48 2015 | http://epydoc.sourceforge.net |