-
Notifications
You must be signed in to change notification settings - Fork 1
/
cure_fail_host_analyses.yml
108 lines (88 loc) · 4.49 KB
/
cure_fail_host_analyses.yml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
Bootstrap: docker
From: debian:stable
## Order of sections:
## %labels: unknown, storing metadata
## %files: are before %post or installation procedures.
## %setup: in the host-system after base OS install.
## %post: in the container after base OS install.
## %test: run at end of build process.
## %environment: sourced at runtime, not build; if needed at build, do it in %post.
## %runscript: writes the container file /singularity and is run via 'singularity run'
%apphelp hpgltools_test
echo "Run the hpgltools test suite."
%apprun hpgltools_test
echo "Running the hpgltools test suite."
exec cd /data/hpgltools && make test
%environment
## If this works properly, I can delete the bashrc, apparently the contents of this stanza are
## written to /.singularity.d/env/90-environment.sh
## As of this writing, it appears VERSION is not propagated to the %post block, therefore
## the definition is repeated there.
. /usr/local/etc/bashrc
## Instead of copying files within the setup section, one should use the files block, I think because
## this is not run with elevated permissions.
%files
local/org.Lpanamensis.MHOMCOL81L13.v68.eg.db_2024.09.tar.gz /usr/local/org.Lpanamensis.MHOMCOL81L13.v68.eg.db_2024.09.tar.gz
local/etc/bashrc /usr/local/etc/bashrc
local/etc/deb_packages.txt /usr/local/etc/deb_packages.txt
local/etc/conda_packages.txt /usr/local/etc/conda_packages.txt
local/bin/bootstrap.R /usr/local/bin/bootstrap.R
local/bin/bootstrap.sh /usr/local/bin/bootstrap.sh
local/bin/runscript.sh /usr/local/bin/runscript.sh
data/ml_summary_tumaco_v1-v202408.xlsx /data/ml_summary_tumaco_v1-v202408.xlsx
data/Makefile /data/Makefile
data/renv.lock /data/renv.lock
data/renv/activate.R /data/renv/activate.R
data/renv/settings.json /data/renv/settings.json
data/renv/.gitignore /data/renv/.gitignore
local/etc/template /sw/modules/template
data/preprocessing/pruned_counts_host.tar /data/preprocessing/pruned_counts_host.tar
data/preprocessing/pruned_counts_parasite.tar /data/preprocessing/pruned_counts_parasite.tar
data/preprocessing/scott_counts.tar /data/preprocessing/scott_counts.tar
data/sample_sheets/scott_sra_samples.xlsx /data/sample_sheets/scott_sra_samples.xlsx
data/sample_sheets/scott_capsule_studydesign.tsv /data/sample_sheets/scott_capsule_studydesign.tsv
data/sample_sheets/tmrc3_demographics.xlsx /data/sample_sheets/tmrc3_demographics.xlsx
data/sample_sheets/tmrc3_demographicsv2.xlsx /data/sample_sheets/tmrc3_demographicsv2.xlsx
data/sample_sheets/tmrc3_samples_pruned.xlsx /data/sample_sheets/tmrc3_samples_pruned.xlsx
data/sample_sheets/identified_parasite_species.xlsx /data/sample_sheets/identified_parasite_species.xlsx
data/sample_sheets/tmrc3_samples.xlsx /data/sample_sheets/tmrc3_samples.xlsx
data/Makefile /data/Makefile
data/README.Rmd /data/README.Rmd
data/00preprocessing.Rmd /data/00preprocessing.Rmd
data/01datasets.Rmd /data/01datasets.Rmd
data/02visualization.Rmd /data/02visualization.Rmd
data/03differential_expression_both.Rmd /data/03differential_expression_both.Rmd
data/04differential_expression_tumaco.Rmd /data/04differential_expression_tumaco.Rmd
data/05enrichment.Rmd /data/05enrichment.Rmd
data/06lrt_gsva.Rmd /data/06lrt_gsva.Rmd
data/07wgcna.Rmd /data/07wgcna.Rmd
data/08classifier_highvar.Rmd /data/08classifier_highvar.Rmd
data/atb.bib /data/atb.bib
%help
String printed when "singularity help image.simg" is run.
%labels
Maintainer Ashton Trey Belew <[email protected]>
%post
echo "export CONTAINER_VERSION='202408'" > /versions.txt
echo "export BIOC_VERSION='3.19'" >> /versions.txt
echo "export R_VERSION='4.4.1'" >> /versions.txt
echo "export HPGLTOOLS_COMMIT='2ba131c696f93b44a2360e412fbba5b008699c83'" >> /versions.txt
/usr/local/bin/bootstrap.sh
%runscript
/usr/bin/time -f '\t%E real,\t%U user,\t%S sys,\t%K amem,\t%M mmem' /usr/local/bin/runscript.sh $*
## The setup block will be used to prepare material which I cannot acquire
## automatically. Ideally this should just create some directories for the container.
## ** NOTE ** This section is run as root! So be careful.
%setup
mkdir -p ${SINGULARITY_ROOTFS}/usr/local/bin
mkdir -p ${SINGULARITY_ROOTFS}/usr/local/etc
mkdir -p ${SINGULARITY_ROOTFS}/.emacs.d
mkdir -p ${SINGULARITY_ROOTFS}/data/preprocessing
mkdir -p ${SINGULARITY_ROOTFS}/data/sample_sheets
mkdir -p ${SINGULARITY_ROOTFS}/output
mkdir -p ${SINGULARITY_ROOTFS}/sw/local/conda
mkdir -p ${SINGULARITY_ROOTFS}/sw/local/R/renv_cache
mkdir -p ${SINGULARITY_ROOTFS}/sw/modules
%test
echo "Making sure hpgltools got installed."
test -d "/data/hpgltools" || true