Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Last active August 29, 2015 14:17
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/efccdc1a16acd3eeb05d to your computer and use it in GitHub Desktop.
Save icaoberg/efccdc1a16acd3eeb05d to your computer and use it in GitHub Desktop.
Helper script that downloads the source and intermediate results for murphylab185
#!/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 "J. Li, L. Xiong, J. Schneider and R. F. Murphy (2012) Protein Subcellular Location Pattern Classification in Cellular Images Using Latent
Discriminative Models. Proceedings of ISMB 2012."
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 ""
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"
echo ""
echo "***********"
echo "SOURCE CODE"
echo "***********"
echo "Downloading source code"
wget http://murphylab.web.cmu.edu/software/2012_Bioinformatics_LatentComponent/ISMB2012_codeonly.tgz
echo "Decrompressing source code"
tar -xvf ISMB2012_codeonly.tgz
echo "********************"
echo "INTERMEDIATE RESULTS"
echo "********************"
URL=http://murphylab.web.cmu.edu/software/2012_Bioinformatics_LatentComponent/
FILES=('ISMB2012_intermediate.tgzaa'
'ISMB2012_intermediate.tgzab'
'ISMB2012_intermediate.tgzac'
'ISMB2012_intermediate.tgzad'
'ISMB2012_intermediate.tgzae'
'ISMB2012_intermediate.tgzaf'
'ISMB2012_intermediate.tgzag'
'ISMB2012_intermediate.tgzah')
echo "Downloading files"
for FILE in ${FILES[@]}
do
wget -nc $URL$FILE
done
echo "Concatenating tarballs"
cat ISMB2012_intermediate.tgza* > ISMB2012_intermediate.tgz
echo "Decrompressing intermediate results"
tar -xvf ISMB2012_intermediate.tgz
echo "Removing temporary files"
rm -fv ISMB2012_intermediate.tgza*
echo "Enjoy!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment