-
Notifications
You must be signed in to change notification settings - Fork 70
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
Convert xyz file with several structures in it (different molecules or same molecule, conformers) #36
Comments
No, that's not currently possible |
@stnrl It seems to depend on the input.
obabel -:"c1ccncc1.CCOCC" -h --gen3d -O py_Et2O.xyz yields a test data set similar to
The subsequent call $ python xyz2mol.py ./examples/py_et2o.xyz -o sdf > recovery.sdf yields
one may read again into obabel for a visualization, e.g. obabel recovery.sdf -O recovery.svg or Jmol
obabel -:"c1ccncc1.c1ccccc1" -h --gen3d -O py_benzene.xyz
python xyz2mol.py benz_py.xyz -o sdf > recovery2.sdf because the OpenBabel's intermediate .xyz file describes a geometry of the two molecules as if they there intercalated:
If you read the later .xyz file e.g., into Jmol (and use the optional Because the example of pyridine and diethyl ether worked reasonably well, perhaps there is a way to introduce some «pertubation» into OpenBabel's action to report benzene and pyridine as two molecules more remote of each other than here. However, I do not recall if OpenBabel's documentation describes how to leave this local energetic minimum when running the |
Is it possible to convert several molecules in xyz format that are in the same file to an sdf output?
For the moment, It works for me but only with single molecule per file.
The text was updated successfully, but these errors were encountered: