From 4a27bcf5b16935af20107e47fff29f01602e6ef3 Mon Sep 17 00:00:00 2001 From: Venkat Malladi <venkat.malladi@utsouthwestern.edu> Date: Sat, 5 Jan 2019 21:34:33 -0600 Subject: [PATCH] Test for new unique experiment determination. --- workflow/main.nf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/workflow/main.nf b/workflow/main.nf index 4d32304..d3f09cb 100644 --- a/workflow/main.nf +++ b/workflow/main.nf @@ -429,7 +429,12 @@ process motifSearch { } // Define channel to find number of unique experiments -noUniqueExperiments = uniqueExperiments.splitCsv(sep: '\t', header: true).toList() +noUniqueExperiments = uniqueExperiments + .splitCsv(sep: '\t', header: true) + .toList() + .count() + +println noUniqueExperiments // Calculate Differential Binding Activity process diffPeaks { @@ -448,7 +453,7 @@ process diffPeaks { file 'normcount_peaksets.txt' into normCountPeaks when: - noUniqueExperiments.size() > 1 + noUniqueExperiments > 1 script: -- GitLab