Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Created February 17, 2015 06:58
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 icaoberg/a5dccae747780803a110 to your computer and use it in GitHub Desktop.
Save icaoberg/a5dccae747780803a110 to your computer and use it in GitHub Desktop.
Helper script that downloads the 3D UCE dataset from the Murphy Lab at Carnegie Mellon University
#!/bin/bash
echo "*********************"
echo "* LICENSE AGREEMENT *"
echo "*********************"
echo "All data downloaded from the Murphy Lab web site (http://murphylab.web.cmu.edu) remain the property of the
Murphy"
echo "Lab. You are granted a non-exclusive license to use these images for non-commercial, research purposes, with the"
echo "following conditions: (a) you agree to include a reference to"
echo ""
echo "P. Nair, B.E. Schaub, K. Huang, X. Chen, R.F. Murphy, J.M. Griffith, H.J. Geuze, and J. Rohrer (2005). Characterization of the TGN Exit Signal of the human Mannose 6-Phosphate Uncovering Enzyme. J. Cell Sci. 118:2949-2956."
echo ""
echo "when presenting or publishing your results, (b) you agree to send a copy of any paper or abstract (upon its"
echo "acceptance for publication or presentation) by FAX, email or regular mail to Dr. Murphy, and (c) you agree not to "
echo "distribute these images without inclusion of this notice."
echo "Dr. Robert F. Murphy"
echo "Professor of Biological Sciences, Biomedical Engineering and Machine Learning"
echo "Carnegie Mellon University"
echo "4400 Fifth Ave., Pittsburgh, PA 15213"
echo "FAX: 412-268-6571"
echo "email: murphy@cmu.edu"
WEBSITE='http://murphylab.web.cmu.edu/data/pslid'
URLS=('UCE_502stop_1.tgz'
'UCE_502stop_2.tgz'
'UCE_502stop_3.tgz'
'UCE_WT_1.tgz'
'UCE_WT_2.tgz'
'UCE_WT_3.tgz'
'UCE_Y488A_1.tgz'
'UCE_Y488A_2.tgz'
'UCE_Y488A_3.tgz'
'UCE_YEA.tgz'
'UCE_YGEA_1.tgz'
'UCE_YGEA_2.tgz'
'UCE_YMA.tgz'
'UCE_YMNA_1.tgz'
'UCE_YMNA_2.tgz'
'UCE_YNA.tgz'
'UCE_YPLA_1.tgz'
'UCE_YPLA_2.tgz'
'UCE_YQA.tgz'
'UCE_YQEA_1.tgz'
'UCE_YQEA_2.tgz'
'UCE_YQEMNA.tgz' )
for URL in "${URLS[@]}"
do
echo Downloading "$WEBSITE"/"$URL" to `pwd`
wget --quiet -nc "$WEBSITE"/"$URL"
done
echo ""
for FILE in *.tgz
do
if [ -f "$FILE" ]; then
echo "Decompressing" "$FILE"
tar -xf $FILE
echo "Removing file" "$FILE"
rm -fv $FILE
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment