diff --git a/workflow/main.nf b/workflow/main.nf
index e29b7efaf5460b1018b525a0aaa09fac5b019c43..23c4056a76df6e78a6bc09e5c0a50bb5a49efb28 100644
--- a/workflow/main.nf
+++ b/workflow/main.nf
@@ -406,7 +406,8 @@ process peakAnnotation {
 
 // Define channel to find number of unique experiments
 peaksDesign = Channel
-              .from(uniqueExperiments.readLines())
+              .fromPath(uniqueExperiments)
+              .readLines()
               .count()
 
 // Calculate Differential Binding Activity