-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_key_envs.sh
51 lines (39 loc) · 1.54 KB
/
install_key_envs.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
#!/bin/bash -l
#Usage: bash install_key_envs.sh CONDA_ENVS_PATH CPUS
#Make sure you have the latest conda version
eval "$(conda shell.bash hook)"
conda activate base
conda install conda=23.7.3 -y
#python version in base > 3
#avoid conflicts by setting this:
#R_env
eval "$(conda shell.bash hook)"
conda env create -f conda_env/R_env.yaml -y
conda activate R_env
numberofcpus=$2
Rscript --vanilla Install_Rpackages.R $numberofcpus
conda deactivate
#Install snakemake https://snakemake.readthedocs.io/en/stable/getting_started/installation.html
eval "$(conda shell.bash hook)"
conda create -n phylobotl_env -c conda-forge -c bioconda snakemake=7.25.0 Python=3.11.4 -y
conda activate phylobotl_env
conda config --set channel_priority strict
conda deactivate
#EggNOG environment
conda create -n eggnog_mapper_env -c bioconda -c conda-forge eggnog-mapper=2.0.1 -y
conda activate eggnog_mapper_env
CONDA_ENVS_PATH=$1
#export CONDA_ENVS_PATH=$1
#export PATH=$CONDA_ENVS_PATH/eggnog_mapper_env:$CONDA_ENVS_PATH/eggnog_mapper_env/bin:"$PATH"
mkdir -p $CONDA_ENVS_PATH/eggnog_mapper_env/data
#export EGGNOG_DATA_DIR=$CONDA_ENVS_PATH/eggnog_mapper_env/data
download_eggnog_data.py --data_dir $CONDA_ENVS_PATH/eggnog_mapper_env/data -y
conda deactivate
# Create a conda environment for geNomad
eval "$(conda shell.bash hook)"
conda create -n genomad_env -c conda-forge -c bioconda genomad=1.6.1 -y
# Activate the geNomad environment
conda activate genomad_env
mkdir -p $CONDA_ENVS_PATH/genomad_env/data
genomad download-database $CONDA_ENVS_PATH/genomad_env/data
conda deactivate