From 2fc45b33d9e7ca7d32f2e52798e8cae13a63afae Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Tue, 23 Apr 2019 10:14:04 -0500
Subject: [PATCH] Get tagging of fastqc working

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

diff --git a/workflow/main.nf b/workflow/main.nf
index 958f582..1df1d57 100755
--- a/workflow/main.nf
+++ b/workflow/main.nf
@@ -100,11 +100,12 @@ process mkfastq {
 process fastqc {
   tag "$bclName"
   queue 'super'
-  publishDir "$outDir/misc/${task.process}", mode: 'copy', pattern: "{*fastqc.zip}"
+  publishDir "$outDir/misc/${task.process}/$name/$bclName", mode: 'copy', pattern: "{*fastqc.zip}"
   module 'fastqc/0.11.5:parallel'
 
   input:
   file fastqPaths
+  val bclName
 
   output:
 
@@ -147,9 +148,9 @@ process versions {
 
 
 process multiqc {
-  tag "$bclName}"
+  tag "$name"
   queue 'super'
-  publishDir "$outDir/${task.process}", mode: 'copy'
+  publishDir "$outDir/${task.process}/$name", mode: 'copy'
   module 'multiqc/1.7'
 
   input:
-- 
GitLab