-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathINSTALL.sh
44 lines (42 loc) · 1.48 KB
/
INSTALL.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
#!/usr/bin/env sh
# Check pipeline dependency
bionext_ver="0.7.3"
tool_desc_ver="1.4"
# Check Nextflow
if (command -v nextflow > /dev/null 2>&1); then {
echo "Nextflow installed"
} else {
echo "Please install Nextflow by using:
curl -s https://get.nextflow.io | bash
"
}
fi
# Check BioNextflow
if [ -d "lib" ]; then {
echo "BioNextflow installed"
} else {
echo "BioNextflow not installed. Installing it..."
curl -k -L https://github.com/biocorecrg/BioNextflow/archive/${bionext_ver}.tar.gz > ${bionext_ver}.tar.gz
tar -zvxf ${bionext_ver}.tar.gz
mv "BioNextflow-${bionext_ver}/lib" .
ln -s $PWD/lib annotation
ln -s $PWD/lib RABT_assembly
ln -s $PWD/lib denovo_assembly
ln -s $PWD/lib quantify
rm ${bionext_ver}.tar.gz
rm -fr BioNextflow-${bionext_ver}
}
fi
#Check Tool description for multiQC
if [ -e "conf_tools.txt" ]; then {
echo "make_tool_desc_for_multiqc installed"
} else {
echo "make_tool_desc_for_multiqc not installed. Installing it..."
curl -k -L https://github.com/CRG-CNAG/make_tool_desc_for_multiqc/archive/${tool_desc_ver}.tar.gz > ${tool_desc_ver}.tar.gz
tar -zvxf ${tool_desc_ver}.tar.gz
cp make_tool_desc_for_multiqc-${tool_desc_ver}/conf_tools.txt assembly
mv make_tool_desc_for_multiqc-${tool_desc_ver}/conf_tools.txt annotation
rm -fr make_tool_desc_for_multiqc-${tool_desc_ver}
rm -f ${tool_desc_ver}.tar.gz
}
fi