stko.MAEExtractor
- class stko.MAEExtractor(run_name, n=1)[source]
Bases:
objectExtracts the lowest energy conformer from a .maegz file.
Macromodel conformer searches produce -out.maegz files containing all of the conformers found during the search and their energies and other data.
Initializing this class with a
ConstructedMoleculefinds the-out.maegzfile of thatConstructedMoleculeand converts it to a.maefile. It then creates and additional.maefile holding only the lowest energy conformer found.Attributes
-out.maegzfile generated by the conformer search..maefile holding the conformers from the conformer search.The content of the
.maefile holding all the conformers.Energies of the lowest energy confromers and their id.
The minimum energy found in the
.maefile..maefile holding the extracted lowest energy conformer.Methods
Creates
.maefiles holding the lowest energy conformers.Extracts the energy value from a
.maeenergy data block.Returns the id and energy of the lowest energy conformers.
Converts the .maegz file to a .mae file.
- extract_conformers(n)[source]
Creates
.maefiles holding the lowest energy conformers.- Parameters:
n (int) – The number of conformers to extract.
- Return type:
None