![]() |
![]() |
OpenFECalculatePartialCharges.py - Generate ligand network
OpenFECalculatePartialCharges.py [--charge <text>] [--chargeParams <Name,Value,..>] [--infileParams <Name,Value,...>] [--loggingLevel <Info or Warning>] [--outfileParams <Name,Value,...>] [--overwrite] [-w <dir>] -i <infile> -o <outfile>
OpenFECalculatePartialCharges.py -h | --help | -e | --examples
Calculate partial atomic charges for molecules in an input file and write them out to a SD file.
The partial charges are written to SD file as values of the data field label 'atom.dprop.PartialCharge'. These values are automatically processed by RDKit during the loading of a SD file and assigned to atoms. You may retrieve these value using RDKit method Atom.GetDoubleProp('PartialCharge')
You must specify a valid input file containing 3D coordinates for all molecules. In addition, the hydrogens must be present for all molecules in the input file.
The supported input file formats are: Mol (.mol), SD (.sdf, .sd)
The supported output file formats is: SD (.sdf, .sd)
Print examples.
Print this help message.
Input file name.
Type of partial atomic charges to calculate. Possible values: AM1BCC, AM1-Mulliken, Espaloma, Gasteiger, MMFF94, or NAGL.
A comma delimited list of parameter name and value pairs for calculating partial aromic charges.
The supported parameter names along with their default values are
A brief description of parameters is provided below:
A comma delimited list of parameter name and value pairs for reading molecules from files. The supported parameter names for different file formats, along with their default values, are shown below:
Logging level to configure the 'root logger' via logging.basicConfig() function. The default logging level is changed from 'logging.INFO' to 'logging.WARNING'. Otherwise, OpenFE and its associated modules may generate a lot of informational messages.
Output file name.
A comma delimited list of parameter name and value pairs for writing molecules to files. The supported parameter names for different file formats, along with their default values, are shown below:
Overwrite existing files.
Location of working directory which defaults to the current directory.
To calculate AM1BCC partial atomic charges for molecules in a SD file and file and write them out to a file, type:
To run the first example for calculating AM1-Mulliken charges using AmberTools, type:
To run the first example for calculating Gasteiger charges using RDKit, type:
To run the first example for calculating Gasteiger charges using AmberTools, type:
To run the first example for calculating NAGL charges using the default production AM1BCC model, type:
To run the first example for calculating NAGL charges using a specific model, type:
To run the first example by specifying explicit values for various parameters, type:
OpenFECalculateAbsoluteHydrationFreeEnergy.py, OpenFEGenerateLigandNetwork.py, OpenFECalculateRelativeBindingFreeEnergy.py, OpenFECalculateRelativeHydrationFreeEnergy.py
Copyright (C) 2025 Manish Sud. All rights reserved.
The functionality available in this script is implemented using OpenMM, an open source molecuar for alchemical free energy calculations.
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.