-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0_CreateCondaEnvironment.sh
41 lines (23 loc) · 1.07 KB
/
0_CreateCondaEnvironment.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
#! /usr/bin/env bash
# Create the Conda environment for this analysis; only has to be done at the beginning
# Environment name
conda_env=proj-fonio-diversity-2020
#################
# Original Environment creation commands - DO NOT USE
#################
# # Create environment (ORIGINAL COMMANDS - DO NOT USE)
# conda create -n $conda_env bcftools=1.9 vcftools=0.1.16 tassel=5.2.40 r-base=3.6.2 r-essentials=3.6 pandas=1.0.3 matplotlib=3.2.1 sourmash=3.5.0
# # Export environment for others to load (needs to be done with the conda environment active)
# conda list --explicit > conda_environment.txt
#################
# Create a new environment using these commands
#################
# # Create environment with explicit specification
# conda create --name $conda_env --file conda_environment.txt
#################
# Loading environment in scripts
#################
# To be able to load the conda environment within scripts, you need to include the following line of code:
. $(conda info --root)/etc/profile.d/conda.sh
# Activate said environment
conda activate $conda_env