diff --git a/workflow/main.nf b/workflow/main.nf
index 67b4bd14e5e901a44694aa5641eacc124e404b6d..928ef5887b800a138cb8eef18b173c0bcbf51636 100644
--- a/workflow/main.nf
+++ b/workflow/main.nf
@@ -384,6 +384,11 @@ process consensusPeaks {
 
 }
 
+// Define channel to find number of unique experiments
+noUniqueExperiments = Channel
+                      .from(uniqueExperiments.readLines())
+                      .size()
+
 // Annotate Peaks
 process peakAnnotation {
 
@@ -405,9 +410,6 @@ process peakAnnotation {
 
 }
 
-// Define channel to find number of unique experiments
-noUniqueExperiments = uniqueExperiments
-                      .readLines().size()
 
 // Calculate Differential Binding Activity
 process diffPeaks {