diff --git a/workflow/main.nf b/workflow/main.nf
index 928ef5887b800a138cb8eef18b173c0bcbf51636..904518789ead6cdd9d90d3d17d82cbe4a57ab7f7 100644
--- a/workflow/main.nf
+++ b/workflow/main.nf
@@ -386,8 +386,7 @@ process consensusPeaks {
 
 // Define channel to find number of unique experiments
 noUniqueExperiments = Channel
-                      .from(uniqueExperiments.readLines())
-                      .size()
+                      .from(uniqueExperiments.size())
 
 // Annotate Peaks
 process peakAnnotation {