chemaxon.io.importer
Molecule import
You can find more information about file formats and options on the following link: https://docs.chemaxon.com/display/docs/formats_index.md
Here you can find the supported formats: https://docs.chemaxon.com/display/docs/python-api_limitations.md
Parameters
mol : str
Input molecule string
options : str
This option is to specify the input format and options for the import
Raises
RuntimeError If the molecule contains more than 800 atoms / bonds
Returns
molecule : Molecule
The imported molecule
Factory function to create a _MolImporter for importing molecules from a file.
More info about file formats and options: https://docs.chemaxon.com/display/docs/formats_index.md
Here you can find the supported formats: https://docs.chemaxon.com/display/docs/python-api_limitations.md.
Parameters
- file_path: the path of the file to be imported.
- format: the format of the file to be imported, e.g. "sdf", "mol", "smiles". If empty string autodect is used. Default is auto-detect.
Returns
An instance of the
_MolImporter. Supported methods:read(),close()