Mercurial > repos > shellac > sam_consensus_v3
comparison env/lib/python3.9/site-packages/planemo/reports/macros.tmpl @ 0:4f3585e2f14b draft default tip
"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author | shellac |
---|---|
date | Mon, 22 Mar 2021 18:12:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4f3585e2f14b |
---|---|
1 {% macro render_steps(steps, display_job_attributes, summary_label="Steps") %} | |
2 * <details><summary>{{summary_label}}</summary> | |
3 {% for step_data in steps %} | |
4 | |
5 - **Step {{step_data.order_index + 1}}: {{step_data.workflow_step_label or (step_data.jobs[0].tool_id if step_data.jobs[0] else 'Unlabelled step')|replace("_", "\_")}}**: | |
6 | |
7 * step_state: {{step_data.state}} | |
8 | |
9 {% if step_data.jobs %} | |
10 * <details><summary>Jobs</summary> | |
11 | |
12 {{ render_step_jobs(step_data, display_job_attributes) }} | |
13 | |
14 </details> | |
15 {% elif step_data.subworkflow%} | |
16 | |
17 {{ render_steps(step_data.subworkflow.values(), display_job_attributes, "Subworkflow Steps")|indent(5, first=True) }} | |
18 | |
19 {% endif %} | |
20 {% endfor %} | |
21 {% endmacro %} | |
22 | |
23 | |
24 {% macro render_step_jobs(step_data, display_job_attributes) %} | |
25 {% for job in step_data.jobs %} | |
26 - **Job {{loop.index}}:** | |
27 | |
28 * Job state is {{ job.state }} | |
29 | |
30 {% for key, description in display_job_attributes.items() %} | |
31 {% if job[key] not in ("", None) %} | |
32 **{{ description }}:** | |
33 | |
34 * ```console | |
35 {{ job[key]|string|indent(width=15) }} | |
36 ``` | |
37 {% endif %} | |
38 {% endfor %} | |
39 {{render_job_parameters(job)|indent(10)}} | |
40 {% endfor %} | |
41 {% endmacro %} | |
42 | |
43 | |
44 {% macro render_job_parameters(job) %} | |
45 {% if job.params %} | |
46 **Job Parameters:** | |
47 | |
48 * | Job parameter | Parameter value | | |
49 | ------------- | --------------- | | |
50 {% for key, value in job.params.items() %} | |
51 | {{ key|replace('_', '\_') }} | ` {{ value }} ` | | |
52 {% endfor %} | |
53 {% endif %} | |
54 {% endmacro %} |