Skip to content

Instantly share code, notes, and snippets.

@jhjensen2
Created April 16, 2016 07:18
Show Gist options
  • Save jhjensen2/38e77fb201165779f486c45c4fbfccc1 to your computer and use it in GitHub Desktop.
Save jhjensen2/38e77fb201165779f486c45c4fbfccc1 to your computer and use it in GitHub Desktop.
#!/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
@jhjensen2
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment