-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_dependencies.sh
83 lines (67 loc) · 2.09 KB
/
install_dependencies.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env bash
# Automatisch herkennen welke benodigde software-paketten van het systeem missen en indien nodig installeren.
# Pas op, het kan voorkomen dat je het wachtwoord van je gebruikersaccount dient op te geven!
if [ "$(dpkg -l | grep python-pip)" == "" ]; then
echo "Installing python-pip..."
sudo apt-get --assume-yes install python-pip
fi
if [ "$(dpkg -l | grep python-dev)" == "" ]; then
echo "Installing python-dev..."
sudo apt-get --assume-yes install python-dev
fi
if [ "$(dpkg -l | grep libfreetype6-dev)" == "" ]; then
echo "Installing build-essential..."
sudo apt-get --assume-yes install libfreetype6-dev
fi
if [ "$(dpkg -l | grep libxft-dev)" == "" ]; then
echo "Installing libxft-dev..."
sudo apt-get --assume-yes install libxft-dev
fi
if [ "$(dpkg -l | grep build-essential)" == "" ]; then
echo "Installing build-essential..."
sudo apt-get --assume-yes install build-essential
fi
if [ "$(dpkg -l | grep clustalw)" == "" ]; then
echo "Installing clustalw..."
sudo apt-get --assume-yes install clustalw
fi
#python -c 'import scipy'
#if [ "$(echo $?)" == 1 ]; then
# echo "Installing Python module scipy..."
# sudo pip install scipy -q
#fi
python -c 'import numpy'
if [ "$(echo $?)" == 1 ]; then
echo "Installing Python module numpy..."
sudo pip install numpy -q
fi
python -c 'import pandas'
if [ "$(echo $?)" == 1 ]; then
echo "Installing Python module pandas..."
sudo pip install pandas -q
fi
python -c 'import mygene'
if [ "$(echo $?)" == 1 ]; then
echo "Installing Python module mygene..."
sudo pip install mygene -q
fi
python -c 'import pylab'
if [ "$(echo $?)" == 1 ]; then
echo "Installing Python module pylab..."
sudo pip install pylab -q
fi
python -c 'import Bio'
if [ "$(echo $?)" == 1 ]; then
echo "Installing Python module biopython..."
sudo pip install biopython -q
fi
python -c 'import ete3'
if [ "$(echo $?)" == 1 ]; then
echo "Installing Python module ete3..."
sudo pip install --pre ete3 -q
fi
python -c 'import matplotlib'
if [ "$(echo $?)" == 1 ]; then
echo "Installing Python module matplotlib..."
sudo pip install matplotlib -q
fi