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
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,16 @@ profiles {
process {
withName: index_fasta {
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 {
module = "BWA/0.7.17"
executor = "sge"
clusterOptions = "-m e -cwd -V"
cpus = 16
memory = "30GB"
time = "12h"
queue = 'monointeldeb128'
time = "24h"
queue = 'E5-2670deb128A,E5-2670deb128B,E5-2670deb128C,E5-2670deb128D,E5-2670deb128E,E5-2670deb128F'
penv = 'openmp16'
}
}
}
......
......@@ -10,7 +10,6 @@ Channel
process index_fasta {
tag "$fasta_id"
cpus 4
publishDir "results/mapping/index/", mode: 'copy'
input:
......
......@@ -5,6 +5,16 @@ profiles {
process {
withName: mapping_fastq {
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 {
module = "BWA/0.7.17"
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'
......
......@@ -17,7 +17,6 @@ Channel
process mapping_fastq {
tag "$reads"
cpus 4
publishDir "results/mapping/sam/", mode: 'copy'
input:
......
./nextflow src/nf_modules/BWA/indexing.nf \
-c src/nf_modules/BWA/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/BWA/mapping_single.nf \
# -c src/nf_modules/BWA/mapping_single.config \
......@@ -13,5 +14,29 @@
-c src/nf_modules/BWA/mapping_paired.config \
-profile docker \
--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.
Finish editing this message first!
Please register or to comment