-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.sh
55 lines (26 loc) · 1 KB
/
configuration.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
#!/bin/bash
# Check if the username argument is provided
if [ -z "$1" ]; then
echo "Error: Please provide your username as an argument."
echo "Usage: $0 <username>"
exit 1
fi
# Import Conda
module load system/Miniconda2/4.3.31
# Link definition of conda environment
cd
# Update the CONDA_ENV_URL with the file ID of the ZIP file
DSP_ENV_URL="https://drive.google.com/u/3/uc?id=1dSVYvjE1S2XlQb57NNMYFkio0TzanAgI&export=download&confirm=yes"
TOMBO_ENV_URL="https://drive.google.com/u/3/uc?id=173CkF9dXAIR7apPnIFCikFtyKFB2vlp0&export=download&confirm=yes"
# Definition of conda env path
CONDA_ENV_DEST="/home/$1/.conda/envs"
# Download DeepSignalPlant
wget -O dsp_env.zip "${DSP_ENV_URL}"
unzip -q dsp_env.zip -d "${CONDA_ENV_DEST}"
chmod +x /home/$1/.conda/envs/DeepSignalPlant/bin/deepsignal_plant
# Download Tombo
wget -O tombo_env.zip "${TOMBO_ENV_URL}"
unzip -q tombo_env.zip -d "${CONDA_ENV_DEST}"
chmod +x /home/$1/.conda/envs/tombo/bin/tombo
rm dsp_env.zip
rm tombo_env.zip