-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep partial charges from mol2 ligand file #224
Comments
Hello, |
Hi @tcaceresm Sample input file: Example usage 1 (with command-line script)
Example usage 2 (In Python) from meeko import MoleculePreparation
from meeko import PDBQTWriterLegacy
from rdkit import Chem
input_filename = "212163792.mol2"
output_filename = "212163792.pdbqt"
mol = Chem.MolFromMol2File(input_filename, removeHs=False)
mk_prep = MoleculePreparation(charge_model="read", charge_atom_prop="_TriposPartialCharge")
molsetup_list = mk_prep(mol)
molsetup = molsetup_list[0]
pdbqt_string = PDBQTWriterLegacy.write_string(molsetup)
with open(output_filename, "w") as f:
f.write(pdbqt_string[0]) Please give it a try and let us know what you think ^^ feel free to comment or re-open this issue if we can be of further assistance |
@rwxayheee hi! |
Hi!
I converted a mol2 file (with partial charges) to pdbqt file using meeko. It works, but partial charges are different than mol2 file. When I use openbabel to perform the file convertion, the partial charges of pdbqt are exactly the same than mol2 (with exception of C-H bonds, as expected).
Am I missing some option to keep partial charges from initial file in meeko?
Thanks!
The text was updated successfully, but these errors were encountered: