__init__(self,
filename=None,
index=1,
error_handler=None,
format=None,
ignore_errors=False,
input_string=None)
(Constructor)
|
|
The format is determined from the file extension if no format is
specified.
- Parameters:
filename (str) - The filename to read.
index (int) - The index of the first structure to read.
error_handler (int) - The handle of the mmerr object to use for error logging. Defaults
to schrodinger.infra.mm.error_handler.
format (str) - The format of the file, either 'pdb', 'sd', 'mol2', 'maestro' or
'maestro_text' (determined from file extension by default).
ignore_errors (bool) - If True, bad structures will be skipped instead of raising an
exception. Currently only used by the SD reader.
input_string (str) - Use of this argument is pending deprecation. Please use
the StructureReader.fromString static method
instead. If this is specified then the structure will be read
from this string and the filename will be ignored. The format
must be specified. Currently this is only supported for Maestro
and SD format.
- Overrides:
object.__init__
|