-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
64 lines (45 loc) · 1.5 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
echo "Installation process started, checking if Anaconda/Miniconda and Mamba are installed..."
command -v conda >/dev/null 2>&1 || {
echo >&2 "The installation pipeline requires Anaconda/Miniconda but it is not installed. Please check here: https://anaconda.org/ for more details. Aborting."
exit 1
}
command -v mamba >/dev/null 2>&1 || {
echo >&2 "The installation pipeline requires Mamba but it is not installed. Please check here: https://github.com/conda-forge/miniforge#mambaforge for more details. Aborting."
exit 2
}
echo "Anaconda/Miniconda and Mamba are correctly installed, proceeding with the installation of necessary softwares: it may take a while..."
sleep 1
tmp=$(dirname $0)
basedir=$(realpath $tmp)
ConPath=$(which conda)
tmp=${ConPath#* }
Conda=${tmp%%/bin/co*}
## CREATE A NEW FOLDER WHERE TO STORE THE ENVIRONMENT
mkdir -p $basedir/environments
## CREATE A MAMBA/CONDA ENVIRONMENT
mamba create \
-p $basedir/environments/predgenesgetpepts \
-y \
-c conda-forge \
-c bioconda \
python=3.10
## ACTIVATE predgenesgetpepts ENVIRONMENT
source ${Conda}/etc/profile.d/conda.sh
conda activate \
${basedir}/environments/predgenesgetpepts
## INSTALL augustus
mamba install \
-c bioconda \
-y \
augustus
## INSTALL blast
mamba install \
-c bioconda \
-y \
blast
## DEACTIVATE
conda deactivate
## MAKE predgenesgetpepts.sh AN EXECUTABLE
echo "alias pregegepep='bash ${basedir}/predgenesgetpepts.sh'">>~/.bash_aliases
## MAKE THE CHANGES EFFECTIVE
source ~/.bash_aliases