Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dweemx committed Feb 26, 2020
1 parent b746f69 commit 07663ab
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions processes/reports.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ process SC__SCANPY__GENERATE_REPORT {
tuple val(sampleId), path("${sampleId}.${reportTitle}.ipynb")

script:
def paramsCopy = params.findAll({!["parseConfig", "parse-config"].contains(it.key)})
"""
papermill ${ipynb} \
--report-mode \
${sampleId}.${reportTitle}.ipynb \
-p FILE $adata \
-p WORKFLOW_MANIFEST '${toJson(workflow.manifest)}' \
-p WORKFLOW_PARAMETERS '${toJson(paramsCopy)}'
-p WORKFLOW_MANIFEST '${params.manifestAsJSON}' \
-p WORKFLOW_PARAMETERS '${params.paramsAsJSON}'
"""

}
Expand Down Expand Up @@ -70,7 +69,6 @@ process SC__SCANPY__PARAM_EXPLORE_CLUSTERING_GENERATE_REPORT {
val(resolution)

script:
def paramsCopy = params.findAll({!["parseConfig", "parse-config"].contains(it.key)})
// In parameter exploration mode, file output needs to be tagged with a unique identitifer because of:
// - https://github.com/nextflow-io/nextflow/issues/470
stashedParams = [method, resolution]
Expand All @@ -81,8 +79,8 @@ process SC__SCANPY__PARAM_EXPLORE_CLUSTERING_GENERATE_REPORT {
--report-mode \
${sampleId}.${reportTitle}.${uuid}.ipynb \
-p FILE $adata \
-p WORKFLOW_MANIFEST '${toJson(workflow.manifest)}' \
-p WORKFLOW_PARAMETERS '${toJson(paramsCopy)}'
-p WORKFLOW_MANIFEST '${params.manifestAsJSON}' \
-p WORKFLOW_PARAMETERS '${params.paramsAsJSON}'
"""

}
Expand Down Expand Up @@ -119,8 +117,8 @@ process SC__SCANPY__GENERATE_DUAL_INPUT_REPORT {
--report-mode \
${sampleId}.${reportTitle}.${isParameterExplorationModeOn ? uuid + "." : ''}ipynb \
-p FILE1 $data1 -p FILE2 $data2 \
-p WORKFLOW_MANIFEST '${toJson(workflow.manifest)}' \
-p WORKFLOW_PARAMETERS '${toJson(paramsCopy)}'
-p WORKFLOW_MANIFEST '${params.manifestAsJSON}' \
-p WORKFLOW_PARAMETERS '${params.paramsAsJSON}'
"""

}
Expand Down

0 comments on commit 07663ab

Please sign in to comment.