MethylDackel: fix version scraping (#401)

* methyldackel: fix version scraping

* fix output file path
This commit is contained in:
Patrick Hüther 2021-04-06 11:59:33 +02:00 committed by GitHub
parent 6c70d65ae6
commit 3b1dcc9cc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -35,6 +35,6 @@ process METHYLDACKEL_EXTRACT {
$fasta \\
$bam
echo \$(methyldackel --version 2>&1) | cut -f1 -d" " > ${software}.version.txt
echo \$(MethylDackel --version 2>&1) | cut -f1 -d" " > ${software}.version.txt
"""
}

View file

@ -24,8 +24,8 @@ process METHYLDACKEL_MBIAS {
path fai
output:
tuple val(meta), path("*.txt"), emit: txt
path "*.version.txt" , emit: version
tuple val(meta), path("*.mbias.txt"), emit: txt
path "*.version.txt" , emit: version
script:
def software = getSoftwareName(task.process)
@ -37,8 +37,8 @@ process METHYLDACKEL_MBIAS {
$bam \\
$prefix \\
--txt \\
> ${prefix}.txt
> ${prefix}.mbias.txt
echo \$(methyldackel --version 2>&1) | cut -f1 -d" " > ${software}.version.txt
echo \$(MethylDackel --version 2>&1) | cut -f1 -d" " > ${software}.version.txt
"""
}

View file

@ -4,5 +4,5 @@
- methyldackel
- methyldackel_mbias
files:
- path: output/methyldackel/test.txt
- path: output/methyldackel/test.mbias.txt
md5sum: 357bb944dc2cdffcc47fa0d34376e016