forked from emrobe/SfB-course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeployment_wrapper.sh
executable file
·68 lines (53 loc) · 2.2 KB
/
Deployment_wrapper.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
echo "Deploying SfB-course..."
# Setup and configure anaconda2 for SfB-course
python Setup-anaconda2.py --install
# Setup jupyter notebook (launcher, icon, install-desktop, update-desktop-databases...etc)
echo "Icon=$HOME/SfB-course/mmp_logo.png" >> sfb.desktop
echo "Exec=$HOME/SfB-course/scripts/start_sfb_jupyter.sh" >> sfb.desktop
cp sfb.desktop $HOME/.local/share/applications
mkdir $HOME/Practicals
# Write to anaconda path .bashrc (Changes default python distribution to anaconda python)
echo "" >> $HOME/.bashrc
echo 'export PATH=$HOME/anaconda2/bin:$PATH' >> $HOME/.bashrc
# Source .bashrc to set anaconda-specific python bins
source $HOME/.bashrc
# Setup conda envs, channels and install packages needed in default env (needed by SfB-course-install.py)
conda config --add channels r
conda config --add channels defaults
conda config --add channels conda-forge
conda config --add channels bioconda
# Install Conda packages and bundles
### Packages (installs to default env (base))
conda install -y cython matplotlib htseq biopython
### Bundles (installs to their own environment, with specific options such as python versions)
conda create -y -n Busco python=3
conda install -y --name Busco busco
conda create -y -n Shovill
conda install -y --name Shovill shovill
conda create -y -n Abricate
conda install -y --name Abricate abricate
conda create -y -n Unicycler python=3
conda install -y --name Unicycler unicycler
conda create -y -n Multiqc
conda install -y --name Multiqc multiqc
conda create -y -n Snippy
conda install -y --name Snippy snippy
conda create -y -n Roary
conda install -y --name Roary roary
conda create -y -n Isescan python=3
conda install -y --name Isescan numpy scipy fastcluster fraggenescan hmmer blast biopython
conda create -y -n Scoary
source activate Scoary
pip install scoary
source deactivate
# Run course install script, needs sudo and libapt-pkg installed
sudo apt-get install python-apt
sudo /usr/bin/python SfB-course-install.py --install
# Write to .bashrc (SfB_path_additions.txt)
DIR=`pwd`
echo "source $DIR/SfB_path_additions.txt" >> $HOME/.bashrc
# Source .bashrc to include
source $HOME/.bashrc
# Update desktop database to view application in launcher
sudo update-desktop-database