Last active
February 13, 2017 23:26
-
-
Save dereneaton/b4ed0e37767a2c9cf67bc3e45b95c711 to your computer and use it in GitHub Desktop.
installs structure 2.3.4. into your conda dir
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
## 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