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

Bowtie: add singularity to nf files

parent 3075c9c2
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,20 @@ profiles {
docker.enabled = true
process {
withName: index_fasta {
cpus = 4
container = "bowtie:1.2.2"
}
}
}
singularity {
singularity.enabled = true
process {
withName: index_fasta {
cpus = 4
container = "file://bin/bowtie:1.2.2.sif"
}
}
}
psmn {
process{
withName: index_fasta {
......@@ -16,8 +26,10 @@ profiles {
executor = "sge"
clusterOptions = "-m e -cwd -V"
memory = "20GB"
cpus = 16
time = "12h"
queue = 'monointeldeb128'
queue = 'E5-2670deb128A,E5-2670deb128B,E5-2670deb128C,E5-2670deb128D,E5-2670deb128E,E5-2670deb128F'
penv = 'openmp16'
}
}
}
......
......@@ -11,7 +11,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 = "bowtie:1.2.2"
cpus = 4
}
}
}
singularity {
singularity.enabled = true
process {
withName: mapping_fastq {
cpus = 4
container = "file://bin/bowtie:1.2.2.sif"
}
}
}
......@@ -15,6 +25,7 @@ profiles {
module = "Bowtie/1.2.2: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'
......
......@@ -19,7 +19,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 = "bowtie:1.2.2"
cpus = 4
}
}
}
singularity {
singularity.enabled = true
process {
withName: mapping_fastq {
cpus = 4
container = "file://bin/bowtie:1.2.2.sif"
}
}
}
......@@ -15,6 +25,7 @@ profiles {
module = "Bowtie/1.2.2: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'
......
......@@ -19,7 +19,6 @@ Channel
process mapping_fastq {
tag "$file_id"
cpus 4
publishDir "results/mapping/bams/", mode: 'copy'
input:
......
......@@ -15,3 +15,21 @@
--index "results/mapping/index/*.ebwt" \
--fastq "data/tiny_dataset/fastq/tiny*_R{1,2}.fastq"
if [ -x "$(command -v singularity)" ]; then
./nextflow src/nf_modules/Bowtie/indexing.nf \
-c src/nf_modules/Bowtie/indexing.config \
-profile singularity \
--fasta "data/tiny_dataset/fasta/tiny_v2.fasta"
./nextflow src/nf_modules/Bowtie/mapping_single.nf \
-c src/nf_modules/Bowtie/mapping_single.config \
-profile singularity \
--index "results/mapping/index/*.ebwt" \
--fastq "data/tiny_dataset/fastq/tiny*_S.fastq"
./nextflow src/nf_modules/Bowtie/mapping_paired.nf \
-c src/nf_modules/Bowtie/mapping_paired.config \
-profile singularity \
--index "results/mapping/index/*.ebwt" \
--fastq "data/tiny_dataset/fastq/tiny*_R{1,2}.fastq"
fi
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