-
Notifications
You must be signed in to change notification settings - Fork 0
/
Singularity
53 lines (42 loc) · 2.31 KB
/
Singularity
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
Bootstrap: docker
From: buisciii/centos7_base_image:latest
%files
./scif_app_recipes/ /opt/
%post
echo "Install basic development tools"
yum -y groupinstall "Development Tools"
yum -y update && yum -y install wget curl openssl-devel geos-devel udunits2-devel libxml2-devel cairo-devel libgit2-devel
echo "Install python2.7 setuptools and pip"
yum -y install python-setuptools
easy_install pip
echo "Installing SCI-F"
pip install scif
echo "Installing FastQC app" && \
scif install /opt/scif_app_recipes/fastqc_v0.11.7_centos7.scif
echo "Installing trimmomatic app" && \
scif install /opt/scif_app_recipes/trimmomatic_v0.38_centos7.scif && \
echo "Installing samtools app" && \
scif install /opt/scif_app_recipes/samtools_v1.9_centos7.scif && \
echo "Installing htslib app" && \
scif install /opt/scif_app_recipes/htslib_v1.9_centos7.scif && \
echo "Installing picard app" && \
scif install /opt/scif_app_recipes/picard_v1.140_centos7.scif && \
echo "Installing prokka app" && \
scif install /opt/scif_app_recipes/prokka_v1.13_centos7.scif && \
echo "Installing quast app" && \
scif install /opt/scif_app_recipes/quast_v5.0.0_centos7.scif && \
echo "Installing multiqc app" && \
scif install /opt/scif_app_recipes/multiqc_v1.4_centos7.scif && \
echo "Installing Unicycler app" && \
scif install /opt/scif_app_recipes/unicycler_v0.4.7_centos7.scif
# Executables must be exported for nextflow, if you use their singularity native integration.
# It would be cool to use $SCIF_APPBIN_bwa variable, but it must be set after PATH variable, because I tried to use it here and in %environment without success.
find /scif/apps -maxdepth 2 -name "bin" | while read in; do echo "export PATH=\${PATH}:$in" >> $SINGULARITY_ENVIRONMENT;done
find /scif/apps -maxdepth 2 -name "lib" | while read in; do echo "export LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:$in" >> $SINGULARITY_ENVIRONMENT ;done
if [[ ":$PATH:" == *":/scif/apps/snppipeline:"* ]];then
export CLASSPATH=/scif/apps/varscan/varscan-2.3.9/varscan-2.3.9.jar:$CLASSPATH >> $SINGULARITY_ENVIRONMENT
export CLASSPATH=/scif/apps/picard/picard.jar:$CLASSPATH >> $SINGULARITY_ENVIRONMENT
export CLASSPATH=/scif/apps/gatk/gatk-3.8/GenomeAnalysisTK.jar:$CLASSPATH >> $SINGULARITY_ENVIRONMENT
fi
%runscript
exec scif "$@"