Biobambam/bamsormadup: Fix name collision (#1900)

* Fix name collision

Add stageAs to avoid name collisions

* fix version check

* fix test
This commit is contained in:
Matthias De Smet 2022-07-18 15:43:02 +02:00 committed by GitHub
parent 720027275c
commit 035e418369
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View file

@ -6,7 +6,7 @@ process BIOBAMBAM_BAMSORMADUP {
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? 'https://depot.galaxyproject.org/singularity/biobambam:2.0.183--h9f5acd7_1' : 'quay.io/biocontainers/biobambam:2.0.183--h9f5acd7_1'}"
input:
tuple val(meta), path(bams)
tuple val(meta), path(bams, stageAs: "?/*")
path(fasta)
output:
@ -39,7 +39,7 @@ process BIOBAMBAM_BAMSORMADUP {
cat <<-END_VERSIONS > versions.yml
"${task.process}":
bamcat: \$(echo \$(bamsormadup --version 2>&1) | sed 's/^This is biobambam2 version //; s/..biobambam2 is .*\$//' )
bamcat: \$(echo \$(bamcat --version 2>&1) | sed 's/^This is biobambam2 version //; s/..biobambam2 is .*\$//' )
bamsormadup: \$(echo \$(bamsormadup --version 2>&1) | sed 's/^This is biobambam2 version //; s/..biobambam2 is .*\$//' )
END_VERSIONS
"""

View file

@ -1,11 +1,10 @@
- name: biobambam bamsormadup test_biobambam_bamsormadup
command: nextflow run tests/modules/biobambam/bamsormadup -entry test_biobambam_bamsormadup -c tests/config/nextflow.config
command: nextflow run ./tests/modules/biobambam/bamsormadup -entry test_biobambam_bamsormadup -c ./tests/config/nextflow.config -c ./tests/modules/biobambam/bamsormadup/nextflow.config
tags:
- biobambam/bamsormadup
- biobambam
- biobambam/bamsormadup
files:
- path: output/biobambam/test.bam
md5sum: 243a77fb0642fd46bb16a4d3432d19dc
md5sum: 1d549a00b065584c298594180ca9f3bc
- path: output/biobambam/test.metrics.txt
md5sum: 1721879bea1f3888ecd33b35e6ee0e72
- path: output/biobambam/versions.yml