From 01c21d3c07c1ec7c86d50d016f3e9163da7348ee Mon Sep 17 00:00:00 2001
From: Venkat Malladi <venkat.malladi@utsouthwestern.edu>
Date: Thu, 16 Nov 2017 15:30:57 -0600
Subject: [PATCH] Fix mapping of values.

---
 workflow/main.nf | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/workflow/main.nf b/workflow/main.nf
index dfdc7a5..c290055 100644
--- a/workflow/main.nf
+++ b/workflow/main.nf
@@ -316,8 +316,10 @@ process poolAndPsuedoReads {
 }
 
 // Collect list of experiment design files into a single channel
-experimentRows = experimentPoolObjs.collect()
-            .splitCsv(sep:'\t', header: true)
+experimentRows = experimentPoolObjs
+                .collect()
+                .splitCsv(sep:'\t', header: true)
+                .map { row -> [ row.sample_id, row.tag_align, row.xcor, row.experiment_id, row.biosample, row.factor, row.treatment, row.replicate, row.control_id, row.control_tag_align] }
 
 // Call Peaks using MACS
 process callPeaksMACS {
-- 
GitLab