From 2ba5cf71399e718d5860f7519c3576f2e9d8f678 Mon Sep 17 00:00:00 2001
From: Nicolas Descostes <nicolas.descostes@embl.it>
Date: Wed, 4 Oct 2023 15:40:33 +0200
Subject: [PATCH] spikchipcustom-v101-builddeploy

---
 .../Singularity.spikchipcustom-v101           | 48 +++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 recipes/chipseq/spikchipcustom/Singularity.spikchipcustom-v101

diff --git a/recipes/chipseq/spikchipcustom/Singularity.spikchipcustom-v101 b/recipes/chipseq/spikchipcustom/Singularity.spikchipcustom-v101
new file mode 100644
index 0000000..22f0b20
--- /dev/null
+++ b/recipes/chipseq/spikchipcustom/Singularity.spikchipcustom-v101
@@ -0,0 +1,48 @@
+BootStrap: docker
+From: ubuntu
+
+
+%help
+
+    This singularity installs spikchip. See repository https://github.com/eblancoga/spikChIP
+
+%post
+    # ~~~~~~ General setup and folder creation ~~~~~~ #
+    
+    apt update && DEBIAN_FRONTEND=noninteractive apt install -y gcc git libz-dev make r-base curl samtools software-properties-common gawk bash
+    
+    export LC_ALL=C
+    export LC_CTYPE=C 
+    export LC_COLLATE=C 
+    export LC_TIME=C
+    export LC_MESSAGES=C
+    export LC_MONETARY=C
+    export LC_PAPER=C 
+    export LC_MEASUREMENT=C
+    
+    # ~~~~~ seqcode ~~~~~ #
+    curl -L https://github.com/eblancoga/seqcode/archive/master.tar.gz -o seqcode.tar.gz && tar -xvzf seqcode.tar.gz && rm seqcode.tar.gz && cd seqcode-main/ && make all && cd ..
+    
+    # ~~~~~ samtools ~~~~~ #
+    add-apt-repository universe && apt update && apt install -y samtools
+    
+    # ~~~~~ affy and MASS ~~~~~ #
+    R --slave -e 'install.packages(c("BiocManager", "MASS"), repos="https://cloud.r-project.org/")' && R --slave -e 'BiocManager::install(c("affy"))'
+    
+    # ~~~~~ spikchip ~~~~~ #
+    curl -L https://github.com/descostesn/spikChIP/archive/refs/tags/1.0.1.tar.gz -o spikchip.tar.gz && tar -xvzf spikchip.tar.gz && rm spikchip.tar.gz && cd spikChIP-1.0.1/ && rm -r examples && cd ..
+    
+%environment
+    export PATH="${PATH}:/spikChIP-1.0.1:/seqcode-main/bin"
+    export LC_ALL=C
+    export LC_CTYPE=C 
+    export LC_COLLATE=C 
+    export LC_TIME=C
+    export LC_MESSAGES=C
+    export LC_MONETARY=C
+    export LC_PAPER=C 
+    export LC_MEASUREMENT=C
+
+%labels
+    Author Nicolas Descostes
+    Version v0.0.1
-- 
GitLab