diff --git a/workflow/main.nf b/workflow/main.nf index 4d32304900c0d5700f734068ac446261c19f764c..d3f09cb7fb72b145fb8ab7a5a4abb20a77374789 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: