Skip to content
Snippets Groups Projects
Verified Commit cbd23ab6 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

Bowtie2: add singularity to nf files

parent 11a52fbc
No related branches found
No related tags found
No related merge requests found
......@@ -3,21 +3,33 @@ profiles {
docker.temp = 'auto'
docker.enabled = true
process {
withName: mapping_fastq {
withName: index_fasta {
container = "bowtie2:2.3.4.1"
cpus = 4
}
}
}
singularity {
singularity.enabled = true
process {
withName: index_fasta {
container = "file://bin/bowtie2:2.3.4.1.sif"
cpus = 4
}
}
}
psmn {
process{
withName: mapping_fastq {
withName: index_fasta {
beforeScript = "source /usr/share/lmod/lmod/init/bash; module use ~/privatemodules"
module = "Bowtie2/2.3.4.1"
executor = "sge"
clusterOptions = "-m e -cwd -V"
cpus = 16
memory = "20GB"
time = "12h"
queue = 'monointeldeb128'
queue = 'E5-2670deb128A,E5-2670deb128B,E5-2670deb128C,E5-2670deb128D,E5-2670deb128E,E5-2670deb128F'
penv = 'openmp16'
}
}
}
......
......@@ -9,7 +9,6 @@ Channel
process index_fasta {
tag "$fasta.baseName"
cpus 4
publishDir "results/mapping/index/", mode: 'copy'
input:
......
......@@ -5,6 +5,16 @@ profiles {
process {
withName: mapping_fastq {
container = "bowtie2:2.3.4.1"
cpus = 4
}
}
}
singularity {
singularity.enabled = true
process {
withName: mapping_fastq {
container = "file://bin/bowtie2:2.3.4.1.sif"
cpus = 4
}
}
}
......@@ -15,6 +25,7 @@ profiles {
module = "Bowtie2/2.3.4.1:SAMtools/1.7"
executor = "sge"
clusterOptions = "-m e -cwd -V"
cpus = 16
memory = "30GB"
time = "24h"
queue = 'E5-2670deb128A,E5-2670deb128B,E5-2670deb128C,E5-2670deb128D,E5-2670deb128E,E5-2670deb128F'
......
......@@ -15,7 +15,6 @@ Channel
process mapping_fastq {
tag "$pair_id"
cpus 4
publishDir "results/mapping/bams/", mode: 'copy'
input:
......
......@@ -5,6 +5,16 @@ profiles {
process {
withName: mapping_fastq {
container = "bowtie2:2.3.4.1"
cpus = 4
}
}
}
singularity {
singularity.enabled = true
process {
withName: mapping_fastq {
container = "file://bin/bowtie2:2.3.4.1.sif"
cpus = 4
}
}
}
......@@ -15,6 +25,7 @@ profiles {
module = "Bowtie2/2.3.4.1:SAMtools/1.7"
executor = "sge"
clusterOptions = "-m e -cwd -V"
cpus = 16
memory = "30GB"
time = "24h"
queue = 'E5-2670deb128A,E5-2670deb128B,E5-2670deb128C,E5-2670deb128D,E5-2670deb128E,E5-2670deb128F'
......
......@@ -15,7 +15,6 @@ Channel
process mapping_fastq {
tag "$file_id"
cpus 4
publishDir "results/mapping/bams/", mode: 'copy'
input:
......
./nextflow src/nf_modules/Bowtie2/indexing.nf \
-c src/nf_modules/Bowtie2/indexing.config \
-profile docker \
--fasta "data/tiny_dataset/fasta/tiny_v2.fasta"
--fasta "data/tiny_dataset/fasta/tiny_v2.fasta" \
-resume
./nextflow src/nf_modules/Bowtie2/mapping_single.nf \
-c src/nf_modules/Bowtie2/mapping_single.config \
-profile docker \
--index "data/tiny_dataset/fasta/*.bt2" \
--fastq "data/tiny_dataset/fastq/tiny*_S.fastq"
--fastq "data/tiny_dataset/fastq/tiny*_S.fastq" \
-resume
./nextflow src/nf_modules/Bowtie2/mapping_paired.nf \
-c src/nf_modules/Bowtie2/mapping_paired.config \
-profile docker \
--index "data/tiny_dataset/fasta/*.bt2" \
--fastq "data/tiny_dataset/fastq/tiny*_R{1,2}.fastq"
--fastq "data/tiny_dataset/fastq/tiny*_R{1,2}.fastq" \
-resume
if [ -x "$(command -v singularity)" ]; then
./nextflow src/nf_modules/Bowtie2/indexing.nf \
-c src/nf_modules/Bowtie2/indexing.config \
-profile singularity \
--fasta "data/tiny_dataset/fasta/tiny_v2.fasta" \
-resume
./nextflow src/nf_modules/Bowtie2/mapping_single.nf \
-c src/nf_modules/Bowtie2/mapping_single.config \
-profile singularity \
--index "data/tiny_dataset/fasta/*.bt2" \
--fastq "data/tiny_dataset/fastq/tiny*_S.fastq" \
-resume
./nextflow src/nf_modules/Bowtie2/mapping_paired.nf \
-c src/nf_modules/Bowtie2/mapping_paired.config \
-profile singularity \
--index "data/tiny_dataset/fasta/*.bt2" \
--fastq "data/tiny_dataset/fastq/tiny*_R{1,2}.fastq" \
-resume
fi
Bootstrap: docker
From: ubuntu:18.04
%labels
MAINTAINER Laurent Modolo
%post
BOWTIE2_VERSION=2.3.4.1
SAMTOOLS_VERSION=1.7
PACKAGES="bowtie2=${BOWTIE2_VERSION}* \
samtools=${SAMTOOLS_VERSION}* \
perl=5.26.1*"
apt-get update && \
apt-get install -y --no-install-recommends ${PACKAGES} && \
apt-get clean
%environment
export BOWTIE2_VERSION=2.3.4.1
export SAMTOOLS_VERSION=1.7
%runscript
exec /bin/bash "$@"
#/bin/sh
sudo singularity build --force bin/bowtie2:2.3.4.1.sif src/singularity_modules/Bowtie2/2.3.4.1/Bowtie2.def
singularity sign bin/bowtie2:2.3.4.1.sif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment