Skip to content

Instantly share code, notes, and snippets.

@dereneaton
Last active February 13, 2017 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dereneaton/b4ed0e37767a2c9cf67bc3e45b95c711 to your computer and use it in GitHub Desktop.
Save dereneaton/b4ed0e37767a2c9cf67bc3e45b95c711 to your computer and use it in GitHub Desktop.
installs structure 2.3.4. into your conda dir
## save our current directory so we can return to it
CURDIR=$(pwd)
## find the path to our conda bin dir (this _should_ be in our PATH)
CONDADIR=$(which conda)
CONDABIN=$(dirname $CONDADIR)
CONDAPKG=$(dirname $CONDABIN)/pkgs
## download linux no-console version into the conda pkgs dir
cd $CONDAPKG/
curl -LkO http://pritchardlab.stanford.edu/structure_software/release_versions/v2.3.4/release/structure_linux_console.tar.gz
tar -xzvf structure_linux_console.tar.gz
rm structure_linux_console.tar.gz
## rename dir b/c 'console' is a dumb name
mv console structure-2.3.4
## copy the binary to the CONDABIN
cp structure-2.3.4/structure $CONDABIN/
## cd back to start
cd $CURDIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment