snapaligner: improve index detection (#1836)

* improve index detection

* fix escaping
This commit is contained in:
Matthias De Smet 2022-06-30 12:19:46 +02:00 committed by GitHub
parent 253f8c1b0e
commit 44baf85bcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -25,11 +25,11 @@ process SNAPALIGNER_ALIGN {
def subcmd = meta.single_end ? "single" : "paired"
"""
mkdir -p index
mv $index index/
INDEX=`dirname \$(find -L ./ -name "OverflowTable*")`
[ -z "\$INDEX" ] && echo "Snap index files not found" 1>&2 && exit 1
snap-aligner ${subcmd} \\
index \\
\$INDEX \\
${reads.join(" ")} \\
-o ${prefix}.bam \\
-t ${task.cpus} \\

View file

@ -5,9 +5,9 @@
- snapaligner
files:
- path: output/snapaligner/test.bam
md5sum: 2dea536f28c041c1108add3523879243
md5sum: 9958e511fe759012cd11b7ef1f097639
- path: output/snapaligner/test.bam.bai
md5sum: 3f5cd1e8379b06554778a59b179ccc10
md5sum: f180c68a77445b317a22e3f1d6e6e114
- name: snapaligner align test_snapaligner_paired
command: nextflow run ./tests/modules/snapaligner/align -entry test_snapaligner_paired -c ./tests/config/nextflow.config -c ./tests/modules/snapaligner/align/nextflow.config
@ -16,6 +16,6 @@
- snapaligner
files:
- path: output/snapaligner/test.bam
md5sum: 941bf870355dd34ebe2ef43ea41abcc4
md5sum: cf656d5f18afa6a97825a685e1b2b141
- path: output/snapaligner/test.bam.bai
md5sum: ce7fd5bc6f0196e6ad70d3710e17e559
md5sum: fa2226d7f5b0b4b15d014332f94a8b84