Skip to content
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

from_smiles function stacks molecules on top of each other when using multi-molecule strings #40

Open
jandestrada opened this issue Jul 17, 2024 · 1 comment

Comments

@jandestrada
Copy link

jandestrada commented Jul 17, 2024

from qcio.models.structure import Structure 

structures = Structure.from_smiles("COCO.CC", force_field="MMFF94")

with open("/home/jdep/debug.xyz",'w+') as f:
    f.write(structures.to_xyz())
f.close()

If you open the file created you get something like this:
Screenshot 2024-07-17 at 12 02 33 PM

This might be an underlying issue in rdkit and probably not a qcio thing, but it would be detrimental to functionality here (since good luck getting that geometry to converge to something!)

pybel and openbabel for generating structures from smiles works well in this context, but switching dependencies could be annoying.

logging this here to bring attention to the problem

@coltonbh
Copy link
Owner

Solved with #50 .

Need to add charge information when generating smiles from structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants