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

BWA: add singularity to nf files

parent edd04712
Branches
No related tags found
No related merge requests found
...@@ -5,6 +5,16 @@ profiles { ...@@ -5,6 +5,16 @@ profiles {
process { process {
withName: index_fasta { withName: index_fasta {
container = "bwa:0.7.17" container = "bwa:0.7.17"
cpus = 4
}
}
}
singularity {
singularity.enabled = true
process {
withName: index_fasta {
container = "file://bin/bwa:0.7.17.sif"
cpus = 4
} }
} }
} }
...@@ -15,9 +25,11 @@ profiles { ...@@ -15,9 +25,11 @@ profiles {
module = "BWA/0.7.17" module = "BWA/0.7.17"
executor = "sge" executor = "sge"
clusterOptions = "-m e -cwd -V" clusterOptions = "-m e -cwd -V"
cpus = 16
memory = "30GB" memory = "30GB"
time = "12h" time = "24h"
queue = 'monointeldeb128' queue = 'E5-2670deb128A,E5-2670deb128B,E5-2670deb128C,E5-2670deb128D,E5-2670deb128E,E5-2670deb128F'
penv = 'openmp16'
} }
} }
} }
......
...@@ -10,7 +10,6 @@ Channel ...@@ -10,7 +10,6 @@ Channel
process index_fasta { process index_fasta {
tag "$fasta_id" tag "$fasta_id"
cpus 4
publishDir "results/mapping/index/", mode: 'copy' publishDir "results/mapping/index/", mode: 'copy'
input: input:
......
...@@ -5,6 +5,16 @@ profiles { ...@@ -5,6 +5,16 @@ profiles {
process { process {
withName: mapping_fastq { withName: mapping_fastq {
container = "bwa:0.7.17" container = "bwa:0.7.17"
cpus = 4
}
}
}
singularity {
singularity.enabled = true
process {
withName: mapping_fastq {
container = "file://bin/bwa:0.7.17.sif"
cpus = 4
} }
} }
} }
...@@ -15,6 +25,7 @@ profiles { ...@@ -15,6 +25,7 @@ profiles {
module = "BWA/0.7.17" module = "BWA/0.7.17"
executor = "sge" executor = "sge"
clusterOptions = "-m e -cwd -V" clusterOptions = "-m e -cwd -V"
cpus = 16
memory = "30GB" memory = "30GB"
time = "24h" time = "24h"
queue = 'E5-2670deb128A,E5-2670deb128B,E5-2670deb128C,E5-2670deb128D,E5-2670deb128E,E5-2670deb128F' queue = 'E5-2670deb128A,E5-2670deb128B,E5-2670deb128C,E5-2670deb128D,E5-2670deb128E,E5-2670deb128F'
......
...@@ -17,7 +17,6 @@ Channel ...@@ -17,7 +17,6 @@ Channel
process mapping_fastq { process mapping_fastq {
tag "$reads" tag "$reads"
cpus 4
publishDir "results/mapping/sam/", mode: 'copy' publishDir "results/mapping/sam/", mode: 'copy'
input: input:
......
./nextflow src/nf_modules/BWA/indexing.nf \ ./nextflow src/nf_modules/BWA/indexing.nf \
-c src/nf_modules/BWA/indexing.config \ -c src/nf_modules/BWA/indexing.config \
-profile docker \ -profile docker \
--fasta "data/tiny_dataset/fasta/tiny_v2.fasta" --fasta "data/tiny_dataset/fasta/tiny_v2.fasta" \
-resume
# ./nextflow src/nf_modules/BWA/mapping_single.nf \ # ./nextflow src/nf_modules/BWA/mapping_single.nf \
# -c src/nf_modules/BWA/mapping_single.config \ # -c src/nf_modules/BWA/mapping_single.config \
...@@ -13,5 +14,29 @@ ...@@ -13,5 +14,29 @@
-c src/nf_modules/BWA/mapping_paired.config \ -c src/nf_modules/BWA/mapping_paired.config \
-profile docker \ -profile docker \
--index "results/mapping/index/tiny_v2*" \ --index "results/mapping/index/tiny_v2*" \
--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/BWA/indexing.nf \
-c src/nf_modules/BWA/indexing.config \
-profile singularity \
--fasta "data/tiny_dataset/fasta/tiny_v2.fasta" \
-resume
# ./nextflow src/nf_modules/BWA/mapping_single.nf \
# -c src/nf_modules/BWA/mapping_single.config \
# -profile singularity \
# --index "results/mapping/index/tiny_v2.index" \
# --fastq "data/tiny_dataset/fastq/tiny*_S.fastq"
./nextflow src/nf_modules/BWA/mapping_paired.nf \
-c src/nf_modules/BWA/mapping_paired.config \
-profile singularity \
--index "results/mapping/index/tiny_v2*" \
--fastq "data/tiny_dataset/fastq/tiny*_R{1,2}.fastq" \
-resume
fi
#/bin/sh
sudo singularity build --force bin/bwa:0.7.17.sif src/singularity_modules/BWA/0.7.17/BWA.def
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment