#!/bin/bash

# Author: Ivan E. Cao-Berg (icaoberg@scs.cmu.edu)
# Created: June 27, 2012
#
# Copyright (C) 2012 Murphy Lab
# Lane Center for Computational Biology
# School of Computer Science
# Carnegie Mellon University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2 of the License,
# or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
#
# For additional information visit http://murphylab.web.cmu.edu or
# send email to murphy@cmu.edu

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 "Y. Hu, E. Garcia Osuna, J. Hua, J. Carmona, T. S. Nowicki, R. Stolz, C. McKayle and R. F. Murphy (2010)"
echo "Automated Analysis of Protein Subcellular Locations in Time Series Images. Bioinformatics 26:1630-1636." 

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) "
echo "you agree not to 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"

echo "Downloading data please wait..."
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.00
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.01
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.02
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.03
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.04
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.05
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.06
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.07
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.08
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.09
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.10
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.11
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.12
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.13
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.14
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.15
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.16
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.17
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.18
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.19
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.20
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.21
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.22
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.23
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.24
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.25
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.26
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.27
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.28
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.29
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.30
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.31
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.32
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.33
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.34
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.35
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.36
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.37
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.38
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.39
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.40
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.41
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.42
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.43
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.44
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.45
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.46
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.47
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.48
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.49
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.50
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.51
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.52
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.53
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.54
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.55
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.56
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.57
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.58
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.59
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.60
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.61
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.62
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.63
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.64
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.65
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.66
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.67
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.68
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.69
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.70
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.71
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.72
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.73
wget -nc http://murphylab.web.cmu.edu/data/3T3/3DT/data.tgz.74

echo "Concatening split files, please wait..."
cat data.tgz.* > data.tgz
rm -rf data.tgz.*

echo "Extracting files, please wait..."
tar -xvf data.tgz
