Skip to content

Commit 3245626

Browse files
authored
Merge pull request #108 from LCR-BCCRC/houman_dev
WGCNA and DriveMuTR dockerfiles
2 parents d2cbb38 + 2c69db4 commit 3245626

6 files changed

Lines changed: 170 additions & 0 deletions

File tree

cnaqc/1.0/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ RUN mamba install --yes --name base \
4242
openssl \
4343
libxml2 \
4444
libgit2 \
45+
jq \
4546
&& rm -rf /opt/conda/pkgs/*
4647

4748
RUN R --vanilla -q -e 'remotes::install_github("caravagnalab/CNAqc", lib="/opt/conda/lib/R/library", dependencies = TRUE, upgrade = "never")'

drivemutr/1.0/Dockerfile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
FROM mambaorg/micromamba:2.8.1
2+
3+
LABEL org.opencontainers.image.source="https://github.com/LCR-BCCRC/lcr-scripts"
4+
5+
ENV LC_ALL=C.UTF-8
6+
ENV LANG=C.UTF-8
7+
8+
RUN micromamba install --yes --name base \
9+
--channel conda-forge \
10+
--channel bioconda \
11+
--strict-channel-priority \
12+
r-base=4.4 \
13+
r-tidyverse \
14+
r-broom \
15+
r-ggbeeswarm \
16+
r-iml \
17+
r-pre \
18+
r-remotes \
19+
r-rlang \
20+
r-biocmanager \
21+
r-devtools \
22+
r-dt \
23+
bioconductor-variantannotation \
24+
bioconductor-motifstack \
25+
bioconductor-gviz \
26+
bioconductor-biocparallel=1.40.0 \
27+
bioconductor-biostrings=2.74.0 \
28+
bioconductor-bsgenome.hsapiens.ucsc.hg19=1.4.3 \
29+
bioconductor-genomicranges \
30+
bioconductor-iranges \
31+
bioconductor-motifdb \
32+
bioconductor-rtracklayer \
33+
git \
34+
jq \
35+
make \
36+
c-compiler \
37+
cxx-compiler \
38+
fortran-compiler \
39+
pkg-config \
40+
&& micromamba clean --all --yes
41+
42+
RUN micromamba run --name base R --vanilla -q -e 'devtools::install_github( \
43+
"Simon-Coetzee/motifBreakR", \
44+
dependencies = NA, \
45+
upgrade = "never" \
46+
)'
47+
48+
RUN micromamba run --name base R --vanilla -q -e 'options(timeout = 3600); devtools::install_github( \
49+
"morinlab/GAMBLR.data", \
50+
dependencies = FALSE, \
51+
upgrade = "never" \
52+
)'
53+
54+
CMD ["/bin/bash"]

drivemutr/1.0/run_tests.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/usr/bin/env bash
2+
# Smoke tests for the DriveMuTR container.
3+
# Verifies that all required tools and R packages are present and loadable.
4+
# Usage: ./run_tests.sh
5+
6+
PASS=true
7+
8+
check() {
9+
local desc="$1"
10+
local cmd="$2"
11+
local output
12+
output=$(eval "$cmd" 2>&1)
13+
if [ $? -eq 0 ]; then
14+
echo "PASS: $desc"
15+
else
16+
echo "FAIL: $desc"
17+
echo "$output" | sed 's/^/ /'
18+
PASS=false
19+
fi
20+
}
21+
22+
check "Rscript is available" "command -v Rscript"
23+
check "R package dplyr loads" "Rscript --vanilla -e 'library(dplyr)'"
24+
check "R package tidyr loads" "Rscript --vanilla -e 'library(tidyr)'"
25+
check "R package tibble loads" "Rscript --vanilla -e 'library(tibble)'"
26+
check "R package purrr loads" "Rscript --vanilla -e 'library(purrr)'"
27+
check "R package readr loads" "Rscript --vanilla -e 'library(readr)'"
28+
check "R package stringr loads" "Rscript --vanilla -e 'library(stringr)'"
29+
check "R package ggplot2 loads" "Rscript --vanilla -e 'library(ggplot2)'"
30+
check "R package rlang loads" "Rscript --vanilla -e 'library(rlang)'"
31+
check "R package broom loads" "Rscript --vanilla -e 'library(broom)'"
32+
check "R package ggbeeswarm loads" "Rscript --vanilla -e 'library(ggbeeswarm)'"
33+
check "R package iml loads" "Rscript --vanilla -e 'library(iml)'"
34+
check "R package pre loads" "Rscript --vanilla -e 'library(pre)'"
35+
check "R package BiocParallel loads" "Rscript --vanilla -e 'library(BiocParallel)'"
36+
check "R package Biostrings loads" "Rscript --vanilla -e 'library(Biostrings)'"
37+
check "R package GenomicRanges loads" "Rscript --vanilla -e 'library(GenomicRanges)'"
38+
check "R package IRanges loads" "Rscript --vanilla -e 'library(IRanges)'"
39+
check "R package rtracklayer loads" "Rscript --vanilla -e 'library(rtracklayer)'"
40+
check "R package MotifDb loads" "Rscript --vanilla -e 'library(MotifDb)'"
41+
check "R package motifbreakR loads" "Rscript --vanilla -e 'library(motifbreakR)'"
42+
check "R package BSgenome.Hsapiens.UCSC.hg19 loads" "Rscript --vanilla -e 'library(BSgenome.Hsapiens.UCSC.hg19)'"
43+
check "R package GAMBLR.data loads" "Rscript --vanilla -e 'library(GAMBLR.data)'"
44+
45+
$PASS

igseqr/1.0.1/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN mamba create --yes --name env \
1010
"samtools=1.16.1" \
1111
"trinity=2.13.2" \
1212
"git" \
13+
"jq" \
1314
&& mamba clean --all --yes \
1415
&& /opt/conda/envs/env/bin/git clone --branch v1.0.1 --depth 1 \
1516
https://github.com/ForconiLab/IgSeqR.git /tmp/IgSeqR \

wgcna/1.73/Dockerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM mambaorg/micromamba:2.8.1
2+
3+
LABEL org.opencontainers.image.source="https://github.com/LCR-BCCRC/lcr-scripts"
4+
5+
ENV LC_ALL=C.UTF-8
6+
ENV LANG=C.UTF-8
7+
8+
RUN micromamba install --yes --name base \
9+
--channel conda-forge \
10+
--channel bioconda \
11+
--strict-channel-priority \
12+
r-base=4.4 \
13+
r-tidyverse \
14+
r-matrixstats \
15+
r-remotes \
16+
r-config \
17+
r-ggthemes \
18+
r-magrittr \
19+
r-stringr \
20+
bioconductor-deseq2=1.46.0 \
21+
bioconductor-limma \
22+
bioconductor-biocparallel=1.40.0 \
23+
r-wgcna=1.73 \
24+
git \
25+
jq \
26+
make \
27+
c-compiler \
28+
cxx-compiler \
29+
fortran-compiler \
30+
pkg-config \
31+
&& micromamba clean --all --yes
32+
33+
RUN micromamba run --name base R --vanilla -q -e 'remotes::install_github("morinlab/GAMBLR.helpers@fdde14c", lib="/opt/conda/lib/R/library", dependencies = TRUE, upgrade = "never")'
34+
CMD ["/bin/bash"]

wgcna/1.73/run_tests.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/env bash
2+
# Smoke tests for the WGCNA container.
3+
# Verifies that all required tools and R packages are present and loadable.
4+
# Usage: ./run_tests.sh
5+
6+
PASS=true
7+
8+
check() {
9+
local desc="$1"
10+
local cmd="$2"
11+
local output
12+
output=$(eval "$cmd" 2>&1)
13+
if [ $? -eq 0 ]; then
14+
echo "PASS: $desc"
15+
else
16+
echo "FAIL: $desc"
17+
echo "$output" | sed 's/^/ /'
18+
PASS=false
19+
fi
20+
}
21+
22+
check "Rscript is available" "command -v Rscript"
23+
check "R package dplyr loads" "Rscript --vanilla -e 'library(dplyr)'"
24+
check "R package tidyr loads" "Rscript --vanilla -e 'library(tidyr)'"
25+
check "R package tibble loads" "Rscript --vanilla -e 'library(tibble)'"
26+
check "R package readr loads" "Rscript --vanilla -e 'library(readr)'"
27+
check "R package ggplot2 loads" "Rscript --vanilla -e 'library(ggplot2)'"
28+
check "R package matrixStats loads" "Rscript --vanilla -e 'library(matrixStats)'"
29+
check "R package DESeq2 loads" "Rscript --vanilla -e 'library(DESeq2)'"
30+
check "R package limma loads" "Rscript --vanilla -e 'library(limma)'"
31+
check "R package BiocParallel loads" "Rscript --vanilla -e 'library(BiocParallel)'"
32+
check "R package WGCNA loads" "Rscript --vanilla -e 'library(WGCNA)'"
33+
check "R package GAMBLR.helpers loads" "Rscript --vanilla -e 'library(GAMBLR.helpers)'"
34+
35+
$PASS

0 commit comments

Comments
 (0)