From ed50e0a0027d303ba56fce8de157ed2d3bba4e6d Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Date: Wed, 3 Feb 2021 11:35:41 +0100
Subject: [PATCH] samtools: test for indexing

---
 src/nf_modules/samtools/main.nf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/nf_modules/samtools/main.nf b/src/nf_modules/samtools/main.nf
index 60ffb253..a0f44cf1 100644
--- a/src/nf_modules/samtools/main.nf
+++ b/src/nf_modules/samtools/main.nf
@@ -62,7 +62,8 @@ process index_bam {
     tuple val(file_id), path(bam)
 
   output:
-    tuple val(file_id), path("*.bam*"), emit: bam
+    tuple val(file_id), path(bam), emit: bam
+    tuple val(file_id), path("*.bam*"), emit: bam_idx
 
   script:
 """
-- 
GitLab