diff --git a/src/nf_modules/Bowtie/indexing.config b/src/nf_modules/Bowtie/indexing.config index 954b245efedf9c30a32748e21c4368b3ac7cd733..5e9d8233d5a3ecca55917ed267906b6e89c941c7 100644 --- a/src/nf_modules/Bowtie/indexing.config +++ b/src/nf_modules/Bowtie/indexing.config @@ -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' } } } diff --git a/src/nf_modules/Bowtie/indexing.nf b/src/nf_modules/Bowtie/indexing.nf index 537d684b4bb39412eccfe31aec7c07d9312981d9..cf6bfaee07c7f81abb3b5b8a56fa526c24c67215 100644 --- a/src/nf_modules/Bowtie/indexing.nf +++ b/src/nf_modules/Bowtie/indexing.nf @@ -11,7 +11,6 @@ Channel process index_fasta { tag "$fasta.baseName" - cpus 4 publishDir "results/mapping/index/", mode: 'copy' input: diff --git a/src/nf_modules/Bowtie/mapping_paired.config b/src/nf_modules/Bowtie/mapping_paired.config index 5b3b9f95a39eaf871ed6d2dbd274a94cbfeb41f0..b27917e1733811b53cc69a2e8553dbfb58e4abad 100644 --- a/src/nf_modules/Bowtie/mapping_paired.config +++ b/src/nf_modules/Bowtie/mapping_paired.config @@ -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' diff --git a/src/nf_modules/Bowtie/mapping_paired.nf b/src/nf_modules/Bowtie/mapping_paired.nf index cc9f40b265c61cf0609970fe7501d7267318cf9f..e92cb3d13bf7f05608a6e128201ddc056da3de8c 100644 --- a/src/nf_modules/Bowtie/mapping_paired.nf +++ b/src/nf_modules/Bowtie/mapping_paired.nf @@ -19,7 +19,6 @@ Channel process mapping_fastq { tag "$pair_id" - cpus 4 publishDir "results/mapping/bams/", mode: 'copy' input: diff --git a/src/nf_modules/Bowtie/mapping_single.config b/src/nf_modules/Bowtie/mapping_single.config index 5b3b9f95a39eaf871ed6d2dbd274a94cbfeb41f0..b27917e1733811b53cc69a2e8553dbfb58e4abad 100644 --- a/src/nf_modules/Bowtie/mapping_single.config +++ b/src/nf_modules/Bowtie/mapping_single.config @@ -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' diff --git a/src/nf_modules/Bowtie/mapping_single.nf b/src/nf_modules/Bowtie/mapping_single.nf index ad9754d1545e1154e2fa9bf18bcfde065738723a..490cb1d06bf829e024f4e9d5b7186d071c44e617 100644 --- a/src/nf_modules/Bowtie/mapping_single.nf +++ b/src/nf_modules/Bowtie/mapping_single.nf @@ -19,7 +19,6 @@ Channel process mapping_fastq { tag "$file_id" - cpus 4 publishDir "results/mapping/bams/", mode: 'copy' input: diff --git a/src/nf_modules/Bowtie/tests.sh b/src/nf_modules/Bowtie/tests.sh index 803f62814bc7d12e6b595b6a17ae9e96f684b6e2..3df87dfeb5230a2114ad1a9b7709433f20966ed2 100755 --- a/src/nf_modules/Bowtie/tests.sh +++ b/src/nf_modules/Bowtie/tests.sh @@ -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