iodata.formats.mol2 module¶
MOL2 file format.
There are different formats of mol2 files. Here the compatibility with AMBER software was the main objective to write out files with atomic charges used by antechamber.
- load_many(lit)[source]¶
Load multiple frames from a MOL2 file.
- Parameters:
lit (
LineIterator
) – The line iterator to read the data from.- Yields:
result (dict) – A dictionary with IOData attributes. The following attribtues are guaranteed to be loaded:
atcoords
,atnums
,atcharges
,atffparams
. The following may be loaded if present in the file:title
.- Return type:
Notes
- load_one(lit)[source]¶
Load a single frame from a MOL2 file.
- Parameters:
lit (
LineIterator
) – The line iterator to read the data from.- Return type:
- Returns:
result (dict) – A dictionary with IOData attributes. The following attributes are guaranteed to be loaded:
atcoords
,atnums
,atcharges
,atffparams
. The following may be loaded if present in the file:title
.
Notes