Trees | Indices | Help |
|
---|
|
object --+ | StructureReader
A class to 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 |
|
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 Mon May 19 23:05:25 2014 | http://epydoc.sourceforge.net |