From 73a4988167c17c1d564de491f450046501e83a18 Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Sun, 10 Mar 2019 15:50:26 -0500
Subject: [PATCH] Change params.genomeLocation to concatenate with
 params.genome

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

diff --git a/workflow/main.nf b/workflow/main.nf
index c9146f6..6a186ff 100755
--- a/workflow/main.nf
+++ b/workflow/main.nf
@@ -8,7 +8,7 @@ params.fastq = "$baseDir/../test_data/*.fastq.gz"
 params.designFile = "$baseDir/../test_data/design.csv"
 params.genome = 'GRCh38-3.0.0'
 params.genomes = []
-params.genomeLocation = params.genome ? params.genomes[ params.genome ].loc ?: false : false
+params.genomeLocation = params.genome ? params.genomes[ params.genome ].loc ?: false : false + params.genome
 params.expectCells = 10000
 params.forceCells = 0
 params.kitVersion = 'three'
@@ -27,7 +27,7 @@ fastqList = Channel
   .map { file -> [ file.getFileName().toString(), file.toString() ].join("\t") }
   .collectFile(name: 'fileList.tsv', newLine: true)
 refLocation = Channel
-  .fromPath(params.genomeLocation+params.genome)
+  .fromPath(params.genomeLocation)
   .ifEmpty { exit 1, "referene not found: ${params.genome}" }
 expectCells = params.expectCells
 forceCells = params.forceCells
-- 
GitLab