use MoleculeFileIO qw(:all);
MoleculeFileIO class provides the following methods:
new, Close, IsSupportedMoleculeFileFormat, Open, ReadMolecule, ReadMoleculeString, WriteMolecule
The following methods can also be used as functions:
Using specified MoleculeFileIO property names and values hash, new method creates a new object and returns a reference to newly created MoleculeFileIO object. By default, following properties are initialized:
Based on extension of specified file Name, an input class is automatically associated to provide molecule read and write methods.
Closes an open file
Returns 1 or 0 based on whether input file Name format is supported. In list context, value of supported format type and name of associated IO class is also returned.
File extension is used to determine file format. Currently, following file extensions are supported:
Opens a file in a specified Mode. Default mode value: Read. Supported mode values:
Reads molecule data from the file and returns a Molecule object.
Reads molecule data from a file and returns a Molecule string.
Write molecule data to a file for a Molecule.
FileIO.pm, MDLMolFileIO.pm, SDFileIO.pm
Copyright (C) 2019 Manish Sud. All rights reserved.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.