Trees | Indices | Help |
|
---|
|
object --+ | _ReaderWriterContextManager --+ | StructureReader
Read structures from files of various types.
The format is automatically determined from the extension of the
specified file, or can be specified via the format
option.
Example usage:
# Read the first structure in a file: st = structure.StructureReader('myfile.pdb').next() # Read all structures from a file: for st in structure.StructureReader('myfile.sdf'): <do something with st> # Start reading at the second structure entry in the file for st in structure.StructureReader('myfile.sdf', index=2): <do something with st> # Assign iterator to a variable and read first 2 structures: st_reader = structure.StructureReader('myfile.mae') st1 = st_reader.next() st2 = st_reader.next()
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
|
|||
Inherited from |
|
The format is determined from the file extension if no format is specified.
|
Create a StructureReader from an input string. Currently this is only supported for Maestro and SD format.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 6 04:50:48 2015 | http://epydoc.sourceforge.net |