Skip to content

Commit

Permalink
Feature/task resources in meta (#55)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
rsuchecki authored Nov 22, 2019
1 parent 712c622 commit 7205c1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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} \
Expand Down

0 comments on commit 7205c1c

Please sign in to comment.