Skip to content

Instantly share code, notes, and snippets.

@normcyr
Last active August 3, 2017 19:06
Show Gist options
  • Save normcyr/f92e175c39834a926480f24a7b20f224 to your computer and use it in GitHub Desktop.
Save normcyr/f92e175c39834a926480f24a7b20f224 to your computer and use it in GitHub Desktop.
autocoot - a script to launch coot and automatically open the latest PDB and MTZ files.
#!/bin/sh
# script to launch coot and automatically open the latest PDB and MTZ files
# modified slightly from jpxtal (https://github.com/jpxtal/easypx)
unset GTK_IM_MODULE
pdb=$(ls -t *.pdb | head -1)
mtz=$(ls -t *.mtz | head -1)
echo coot --pdb $pdb --auto $mtz
sleep 1
coot --pdb $pdb --auto $mtz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment