-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·63 lines (48 loc) · 1.54 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
63
#!/bin/sh
############################################################
# Help #
############################################################
Help()
{
echo "-------- Help --------"
echo "You can run this script with the following flags, if you need to install any of the needed languages/tools (Java, Python, Pipenv)"
echo
echo "Syntax: setup [-pipenv|-h]"
echo "options"
echo "h Print this Help."
echo "p Install Pipenv."
echo "----------------------"
}
Setup()
{
echo "-------- Setting env up --------"
echo "-------- Downloading and extracting FastQC --------"
wget https://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.9.zip && python -m zipfile -e fastqc_v0.11.9.zip ./
rm -rf fastqc_v0.11.9.zip
echo "-------- Downloading Nextflow --------"
if wget -qO- https://get.nextflow.io | bash ; then
chmod +x ./nextflow
fi
echo "-------- Creating output directory --------"
if ! [ -d ./FastQC_Output ]; then
mkdir ./FastQC_Output
fi
echo "-------- Setting up pipenv environment --------"
export PIPENV_VENV_IN_PROJECT="enabled" && pipenv install
echo "-------- Setup finished successfully! --------"
echo "----------------------"
}
while getopts "hp" option; do
case $option in
h) # display Help
Help
exit;;
p)
echo "-------- Installing pipenv --------"
pip3 install pipenv;;
\?) # Invalid option
echo "Error: Invalid option"
exit;;
esac
done
Setup