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

Bowtie: update Bowtie.nf to match test

parent e98e98b6
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ process mapping_fastq {
script:
index_id = index[0]
for (index_file in index) {
if (index_file =~ /.*\.1\.ebwt/) {
if (index_file =~ /.*\.1\.ebwt/ && !(index_file =~ /.*\.rev\.1\.ebwt/)) {
index_id = ( index_file =~ /(.*)\.1\.ebwt/)[0][1]
}
}
......@@ -126,13 +126,13 @@ process mapping_fastq {
script:
index_id = index[0]
for (index_file in index) {
if (index_file =~ /.*\.1\.ebwt/) {
if (index_file =~ /.*\.1\.ebwt/ && !(index_file =~ /.*\.rev\.1\.ebwt/)) {
index_id = ( index_file =~ /(.*)\.1\.ebwt/)[0][1]
}
}
"""
bowtie --best -v 3 -k 1 --sam -p ${task.cpus} ${index_id} \
-U ${reads} 2> \
-q ${reads} 2> \
${reads.baseName}_bowtie_report.txt | \
samtools view -Sb - > ${reads.baseName}.bam
......
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