From 7205c1c3c858bc30de5163d5a6938d9e25405069 Mon Sep 17 00:00:00 2001 From: Rad Suchecki Date: Fri, 22 Nov 2019 16:50:31 +1030 Subject: [PATCH] Feature/task resources in meta (#55) * bug fix * params not captured in meta * timestamp in results release tag * date in release tag, release body update * removed beers remnants * release body update * iso date/time in release tag * release body formatting * tidy-up release * update * updated docu * added --subset option * cleanup * nf trace populated later #52 --- main.nf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.nf b/main.nf index ab4c10a..bf9c418 100644 --- a/main.nf +++ b/main.nf @@ -548,6 +548,7 @@ process mapSimulatedReads { script: def binding = [ref: ref, reads: reads, task: task.clone(), ALIGN_PARAMS: ALIGN_PARAMS] + meta.resources = task.subMap(['cpus','memory','time']) if(run.template) { //if template file specified / declared template run.template //either default or explicit template file name } else { //indexing script defined in config @@ -578,7 +579,7 @@ process evaluateAlignmentsRNF { script: // println prettyPrint(toJson(alignmeta)) // println alignmeta.inspect() - + // println groovy.json.JsonOutput.prettyPrint(jsonGenerator.toJson(meta)) """ set -eo pipefail samtools view ${samOrBam} \