forked from NCBI-Hackathons/phenotypeXpression
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·42 lines (32 loc) · 1.28 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
#!/usr/bin/env bash
CONDAENV=phenoX
if ! (which wget); then
echo "No `wget` installation found. Please install wget first."
exit 1
fi
if ! (which conda); then
echo "No `conda` installation found. Installing..."
if [[ $(uname) == "Darwin" ]]; then
wget --continue https://repo.continuum.io/archive/Anaconda3-4.3.1-MacOSX-x86_64.sh
bash Anaconda3-4.3.1-MacOSX-x86_64.sh -b
else
wget --continue https://repo.continuum.io/archive/Anaconda3-4.3.1-Linux-x86_64.sh
bash Anaconda3-4.3.1-Linux-x86_64.sh -b
fi
printf '\n# Anaconda path addition\n' >> $HOME/.bashrc
echo 'export PATH="$HOME/anaconda3/bin:$PATH"' >> $HOME/.bashrc
fi
CONDAPATH="$(which conda)" || CONDAPATH=$HOME/anaconda3/bin
echo "CONDAPATH => $CONDAPATH"
export PATH=$CONDAPATH:$PATH
conda create -n ${CONDAENV} -y python==3.6 pip pytest || true
echo "Activating Conda Environment ----->"
conda activate ${CONDAENV} || source $CONDAPATH/activate ${CONDAENV}
echo "Installing required Python libraries ----->"
pip install -r requirements.txt
echo "Installing required conda-forge libraries ----->"
conda install -y -c conda-forge matplotlib rpy2 r-ape r-pvclust r-circlize readline r-gplots
echo "Installing phenoX ----->"
python setup.py develop
echo "Installing SpaCy en ----->"
python -m spacy download en