This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/csh | |
# Molget: cshell script to get coordinates from chemical name using Babel and Cactus | |
# usage: ./molget methane | |
# (remember to "chmod 755 molget) | |
# | |
set molecule = $argv[1] | |
curl https://cactus.nci.nih.gov/chemical/structure/$molecule/smiles -o $molecule.smi | |
babel -ismi $molecule.smi -oxyz $molecule.xyz --gen3D |
Here is a simple cshell script to get coordinates from a chemical name using Open Babel.
Acknowledgements (Jimmy's "friends" please read carefully): I learned about curl from Jimmy who didn't contribute to the code in any way (and hates cshell anyway).

This work is licensed under a Creative Commons Attribution 4.0