Last active
December 30, 2015 04:18
-
-
Save josephwb/7774694 to your computer and use it in GitHub Desktop.
Get nexson(s) study files from Phylografter.
This file contains hidden or 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
#!/bin/bash | |
## script to grab individual nexson(s) from Phylografter | |
## Usage: | |
## ./getNexson.sh study1ID study2ID ... | |
## where study*ID is the Phylografter study identifier. For example, to get studies 420 and 1428, type: | |
## ./getNexson.sh 1428 420 | |
## It may be necessary to change access permission to make the script executable. Type: | |
## chmod 755 getNexson.sh | |
if [ "$1" == "" ] | |
then | |
printf "Usage: \n./getNexson.sh study1 study2 ...\n" | |
fi | |
while [ "$1" != "" ]; do | |
echo Getting study $1 | |
wget -O $1.gz -q http://www.reelab.net/phylografter/study/export_gzipNexSON.json/$1 | |
gunzip $1.gz | |
shift | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Get nexson(s) study files from Phylografter
Usage: