Skip to content

Commit 5ec64e3

Browse files
committed
Merge branch 'rc5.0.0' of github.com:Clinical-Genomics/microSALT into rc5.0.0
2 parents 4ddf050 + 7f0bbb0 commit 5ec64e3

35 files changed

+1467
-585
lines changed

.python_version

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ export MICROSALT_CONFIG=/MY/FAV/FOLDER/config.json
4949

5050
## Usage
5151

52-
- `microSALT analyse` contains functions to start sbatch job(s) & produce
52+
- `microsalt analyse` contains functions to start sbatch job(s) & produce
5353
output to `folders['results']`. Afterwards the parsed results are uploaded
5454
to the SQL back-end and produce reports (HTML), which are then automatically
5555
e-mailed to the user.
56-
- `microSALT utils` contains various functionality, including generating the
56+
- `microsalt utils` contains various functionality, including generating the
5757
sample description json, manually adding new reference organisms and
5858
re-generating reports.
5959

configExample.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
"_comment": "Download path for NCBI genomes, for alignment usage",
3535
"genomes": "/tmp/MLST/references/genomes",
3636
"_comment": "Credentials",
37-
"credentials": "/tmp/MLST/credentials"
37+
"credentials": "/tmp/MLST/credentials",
38+
"_comment": "Trimmomatic adapter FASTA files directory",
39+
"adapters": "/path/to/trimmomatic/adapters/"
3840
},
3941
"_comment": "Database/Flask configuration",
4042
"database": {
@@ -77,5 +79,23 @@
7779
"pasteur": {
7880
"client_id": "",
7981
"client_secret": ""
82+
},
83+
"_comment": "Singularity runtime configuration",
84+
"singularity": {
85+
"binary": "/usr/bin/singularity",
86+
"_comment": "Paths that must be visible inside every container (passed as --bind)",
87+
"bind_paths": ["/data"],
88+
"_comment": "Adapter path inside the trimmomatic container (bioconda default)",
89+
"trimmomatic_adapters": "/opt/conda/share/trimmomatic/adapters/"
90+
},
91+
"_comment": "Absolute paths to pre-built Singularity SIF images on the cluster",
92+
"containers": {
93+
"skesa": "/fs1/resources/containers/skesa_2.5.1.sif",
94+
"blast": "/fs1/resources/containers/blast_2.12.0.sif",
95+
"bwa": "/fs1/resources/containers/bwa_0.7.17.sif",
96+
"samtools": "/fs1/resources/containers/samtools_1.13.sif",
97+
"picard": "/fs1/resources/containers/picard_2.20.3.sif",
98+
"trimmomatic": "/fs1/resources/containers/trimmomatic_0.39.sif",
99+
"quast": "/fs1/resources/containers/quast_5.3.0.sif"
80100
}
81101
}

containers/Dockerfile.blast

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# NCBI BLAST 2.12.0 — nucleotide BLAST search and database indexing
2+
# Build: docker build -f Dockerfile.blast -t blast:2.12.0 .
3+
# Convert: singularity pull --name blast_2.12.0.sif docker://your-repo/blast:2.12.0
4+
FROM mambaorg/micromamba:1-bookworm-slim
5+
6+
ARG MAMBA_DOCKERFILE_ACTIVATE=1
7+
8+
USER root
9+
RUN apt-get update \
10+
&& apt-get upgrade -y \
11+
&& apt-get clean \
12+
&& rm -rf /var/lib/apt/lists/*
13+
USER $MAMBA_USER
14+
15+
RUN micromamba install -y -n base -c conda-forge -c bioconda \
16+
blast=2.12.0 \
17+
&& micromamba clean -afy

containers/Dockerfile.bwa

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# BWA 0.7.17 — short read aligner (mem mode) and reference indexing
2+
# Build: docker build -f Dockerfile.bwa -t bwa:0.7.17 .
3+
# Convert: singularity pull --name bwa_0.7.17.sif docker://your-repo/bwa:0.7.17
4+
FROM mambaorg/micromamba:1-bookworm-slim
5+
6+
ARG MAMBA_DOCKERFILE_ACTIVATE=1
7+
8+
USER root
9+
RUN apt-get update \
10+
&& apt-get upgrade -y \
11+
&& apt-get clean \
12+
&& rm -rf /var/lib/apt/lists/*
13+
USER $MAMBA_USER
14+
15+
RUN micromamba install -y -n base -c conda-forge -c bioconda \
16+
bwa=0.7.17 \
17+
&& micromamba clean -afy

containers/Dockerfile.picard

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Picard 2.20.3 — duplicate marking and insert size metrics
2+
# Build: docker build -f Dockerfile.picard -t picard:2.20.3 .
3+
# Convert: singularity pull --name picard_2.20.3.sif docker://your-repo/picard:2.20.3
4+
#
5+
# The bioconda picard package installs a wrapper script that calls the JAR via
6+
# the bundled Java runtime; no separate openjdk install is needed.
7+
FROM mambaorg/micromamba:1-bookworm-slim
8+
9+
ARG MAMBA_DOCKERFILE_ACTIVATE=1
10+
11+
USER root
12+
RUN apt-get update \
13+
&& apt-get upgrade -y \
14+
&& apt-get clean \
15+
&& rm -rf /var/lib/apt/lists/*
16+
USER $MAMBA_USER
17+
18+
RUN micromamba install -y -n base -c conda-forge -c bioconda \
19+
picard=2.20.3 \
20+
r-base=4.1.1 \
21+
&& micromamba clean -afy

containers/Dockerfile.quast

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# QUAST 5.3.0 — assembly quality assessment
2+
# Build: docker build -f Dockerfile.quast -t quast:5.3.0 .
3+
# Convert: singularity pull --name quast_5.3.0.sif docker://your-repo/quast:5.3.0
4+
#
5+
# The entry point is quast.py (as installed by bioconda).
6+
FROM mambaorg/micromamba:1-bookworm-slim
7+
8+
ARG MAMBA_DOCKERFILE_ACTIVATE=1
9+
10+
USER root
11+
RUN apt-get update \
12+
&& apt-get upgrade -y \
13+
&& apt-get clean \
14+
&& rm -rf /var/lib/apt/lists/*
15+
USER $MAMBA_USER
16+
17+
RUN micromamba install -y -n base -c conda-forge -c bioconda \
18+
quast=5.3.0 \
19+
&& micromamba clean -afy

containers/Dockerfile.samtools

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SAMtools 1.13 — SAM/BAM processing, indexing, and statistics
2+
# Build: docker build -f Dockerfile.samtools -t samtools:1.13 .
3+
# Convert: singularity pull --name samtools_1.13.sif docker://your-repo/samtools:1.13
4+
FROM mambaorg/micromamba:1-bookworm-slim
5+
6+
ARG MAMBA_DOCKERFILE_ACTIVATE=1
7+
8+
USER root
9+
RUN apt-get update \
10+
&& apt-get upgrade -y \
11+
&& apt-get clean \
12+
&& rm -rf /var/lib/apt/lists/*
13+
USER $MAMBA_USER
14+
15+
RUN micromamba install -y -n base -c conda-forge -c bioconda \
16+
samtools=1.13 \
17+
&& micromamba clean -afy

containers/Dockerfile.skesa

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SKESA 2.5.1 — de novo assembler
2+
# Build: docker build -f Dockerfile.skesa -t skesa:2.5.1 .
3+
# Convert: singularity pull --name skesa_2.5.1.sif docker://your-repo/skesa:2.5.1
4+
FROM mambaorg/micromamba:1-bookworm-slim
5+
6+
ARG MAMBA_DOCKERFILE_ACTIVATE=1
7+
8+
USER root
9+
RUN apt-get update \
10+
&& apt-get upgrade -y \
11+
&& apt-get clean \
12+
&& rm -rf /var/lib/apt/lists/*
13+
USER $MAMBA_USER
14+
15+
RUN micromamba install -y -n base -c conda-forge -c bioconda \
16+
skesa=2.5.1 \
17+
&& micromamba clean -afy

containers/Dockerfile.trimmomatic

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Trimmomatic 0.39 — quality trimming for paired-end Illumina reads
2+
# Build: docker build -f Dockerfile.trimmomatic -t trimmomatic:0.39 .
3+
# Convert: singularity pull --name trimmomatic_0.39.sif docker://your-repo/trimmomatic:0.39
4+
#
5+
# Adapter files are located inside the container at:
6+
# /opt/conda/share/trimmomatic/adapters/
7+
# Set singularity.trimmomatic_adapters in your config to this path.
8+
FROM mambaorg/micromamba:1-bookworm-slim
9+
10+
ARG MAMBA_DOCKERFILE_ACTIVATE=1
11+
12+
USER root
13+
RUN apt-get update \
14+
&& apt-get upgrade -y \
15+
&& apt-get clean \
16+
&& rm -rf /var/lib/apt/lists/*
17+
USER $MAMBA_USER
18+
19+
RUN micromamba install -y -n base -c conda-forge -c bioconda \
20+
trimmomatic=0.39 \
21+
&& micromamba clean -afy

0 commit comments

Comments
 (0)