From f4ec33ebc46bafcd60ca04ff6c962b523741c66b Mon Sep 17 00:00:00 2001 From: fbdtemme <69114541+fbdtemme@users.noreply.github.com> Date: Wed, 15 Sep 2021 18:56:12 +0200 Subject: [PATCH] Fix kallistobustools version extraction (#691) Co-authored-by: Harshil Patel --- modules/kallistobustools/count/main.nf | 2 +- modules/kallistobustools/ref/main.nf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/kallistobustools/count/main.nf b/modules/kallistobustools/count/main.nf index 86172fc3..cb561a9d 100644 --- a/modules/kallistobustools/count/main.nf +++ b/modules/kallistobustools/count/main.nf @@ -51,6 +51,6 @@ process KALLISTOBUSTOOLS_COUNT { ${reads[0]} \\ ${reads[1]} - echo \$(kb 2>&1) | sed 's/^kb_python //; s/Usage.*\$//' > ${software}.version.txt + echo \$(kb 2>&1) | sed 's/^.*kb_python //;s/positional arguments.*\$//' > ${software}.version.txt """ } diff --git a/modules/kallistobustools/ref/main.nf b/modules/kallistobustools/ref/main.nf index ffcd643e..93935696 100644 --- a/modules/kallistobustools/ref/main.nf +++ b/modules/kallistobustools/ref/main.nf @@ -45,7 +45,7 @@ process KALLISTOBUSTOOLS_REF { $fasta \\ $gtf - echo \$(kb 2>&1) | sed 's/^kb_python //; s/Usage.*\$//' > ${software}.version.txt + echo \$(kb 2>&1) | sed 's/^.*kb_python //;s/positional arguments.*\$//' > ${software}.version.txt """ } else { """ @@ -61,7 +61,7 @@ process KALLISTOBUSTOOLS_REF { $fasta \\ $gtf - echo \$(kb 2>&1) | sed 's/^kb_python //; s/Usage.*\$//' > ${software}.version.txt + echo \$(kb 2>&1) | sed 's/^.*kb_python //;s/positional arguments.*\$//' > ${software}.version.txt """ } }