-
Notifications
You must be signed in to change notification settings - Fork 5
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
fewer charges than atoms #8
Comments
Just upgrade the package to 0.0.8. Now a modified version of option 0 of the examples shown on the github page works. the other two options still don't option 0works for the given example, but for any molecules with hydrogens, instead of directly using a smiles string, python3
option 1python3
option 2seems to work at first, but if I use any molecule that contains hydrogens the corresponding charges prompt> espaloma_charge -i e.mol2 -o e.crg prompt> cat e.crg |
Hi @mbatgh , Many thanks for testing this! I do think there is a bug in the For Thanks! |
I'll fix the hydrogen-removing behavior shortly! |
I think this should fix the hydrogen-removing behavior: #14 |
yuanqing-wang wrote: here we go... if this turns out being a compatibility issues that can be solved with a different version of openff, please do let me know! thanks! |
just installed openff-toolkit version 0.12.0 ... now option 1 works! |
Hi,
Thanks for this very useful tool!
I installed with pip, and the option 0 example you include on the github webpiage seems to work.
however, when i try larger molecules I keep getting charge arrays that have fewer entries
than my molecules have atoms
e.g.:
the molecule has 58 atoms, while above only 32 numbers are provided.
Turns out, if I only count non-hydrogens i get 32 atoms, it looks as if the charge
command only tells me the charges of the nonH atoms, or fails to infer the implicit
hydrogens in the smiles string.
also, even if this worked, I'd struggle to assign the charges. Using the tool as seen above
it is not clear which charge belongs to which atom.
I also tried to directly read a local sdf/mol file incuding explicit hydrogens with some rdkit reader but the result is the
same (charge command only gives an array with 32 entries while the molecule in the mol file has 58 atoms.
As rdkit would not write mol2 files, I also see no way to directly write the result as a file to disk
for further use after this procedure.
Finally the command line tool you mention in Option 2 (espaloma_charge) is nowhere to
be found in the repository.
Any help very much appreciated!
cheers,
Michael
The text was updated successfully, but these errors were encountered: