-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
44 lines (35 loc) · 1.35 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cd /root
if [ \! -d /usr/local/blast-data ]; then
curl -O ftp://ftp.ncbi.nih.gov/blast/executables/release/2.2.24/blast-2.2.24-x64-linux.tar.gz
tar xzf blast-2.2.24-x64-linux.tar.gz
cp blast-2.2.24/bin/* /usr/local/bin
cp -r blast-2.2.24/data /usr/local/blast-data
fi
pip install screed
git clone https://github.com/ngs-docs/ngs-scripts /usr/local/share/ngs-scripts
apt-get -y install lighttpd
if [ \! -f /etc/lighttpd/conf-enabled/10-cgi.conf ]; then
cd /etc/lighttpd/conf-enabled
ln -fs ../conf-available/10-cgi.conf ./
echo 'cgi.assign = ( ".cgi" => "" )' >> 10-cgi.conf
echo 'index-file.names += ( "index.cgi" ) ' >> 10-cgi.conf
/etc/init.d/lighttpd restart
fi
pip install -U ipython
pip install -U ipython
pip install -U pyzmq
cd /usr/local/notebooks
rm *.ipynb
curl -O https://raw.github.com/ged-lab/2013-msu-zero-entry/master/graph-blast-bitscore.ipynb
curl -O https://raw.github.com/ged-lab/2013-msu-zero-entry/master/filter-blast-csv.ipynb
curl -O https://raw.github.com/ged-lab/2013-msu-zero-entry/master/monty-hall.ipynb
curl -O https://raw.github.com/ged-lab/2013-msu-zero-entry/master/coin-flips.ipynb
cd /usr/local/share
rm -fr khmer
git clone https://github.com/ged-lab/khmer.git
cd khmer
git checkout 2013-caltech-cemi
make all
echo 'export PYTHONPATH=/usr/local/share/khmer/python' >> ~/.bashrc
source ~/.bashrc
shutdown -r now