From ffbb85b030aec04cf5944b8315e8570be37155c5 Mon Sep 17 00:00:00 2001
From: Venkat Malladi <venkat.malladi@utsouthwestern.edu>
Date: Mon, 13 Aug 2018 16:03:29 -0500
Subject: [PATCH] Fix diffBind output.

---
 workflow/main.nf | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/workflow/main.nf b/workflow/main.nf
index 666f8d5..67b4bd1 100644
--- a/workflow/main.nf
+++ b/workflow/main.nf
@@ -406,7 +406,8 @@ process peakAnnotation {
 }
 
 // Define channel to find number of unique experiments
-noUniqueExperiments = 2
+noUniqueExperiments = uniqueExperiments
+                      .readLines().size()
 
 // Calculate Differential Binding Activity
 process diffPeaks {
@@ -431,6 +432,7 @@ process diffPeaks {
     """
     touch design_diffpeak_annotatePeaks.tsv
     touch no_diffbind.bed
+    touch no_diffbind.csv
     touch heatmap.pdf
     touch pca.pdf
     touch normcount_peaksets.txt
-- 
GitLab