Skip to content

Instantly share code, notes, and snippets.

@jhjensen2
Last active May 21, 2016 12:38
Show Gist options
  • Save jhjensen2/94a010c56ef7cbb15d92bfb01923060c to your computer and use it in GitHub Desktop.
Save jhjensen2/94a010c56ef7cbb15d92bfb01923060c to your computer and use it in GitHub Desktop.
import subprocess
file = open("names", "r+")
for line in file:
name = line.split()
subprocess.call(['./name2smiles', name[0]])
subprocess.call(['echo'])
#!/bin/bash
while IFS='' read -r line || [[ -n "$line" ]]; do
./name2smiles "$line"
echo " "
done < "$1"
import subprocess, sys
filename = sys.argv[1]
file = open(filename, "r+")
for line in file:
name = line.split()
subprocess.call(['./smiles2coord', name[0]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment