Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GeT-nextflow-NGL-Bi
template-nf
Commits
4974b176
Commit
4974b176
authored
Feb 12, 2021
by
Celine Noirot
Browse files
add soft version and summary in multiqc
parent
9dfddb08
Changes
4
Hide whitespace changes
Inline
Side-by-side
assets/multiqc_config.yaml
View file @
4974b176
...
...
@@ -3,7 +3,9 @@ report_comment: >
analysis pipeline. For information about how to interpret these results, please see the
<a href="https://forgemia.inra.fr/get-nextflow-ngl-bi/template-nf" target="_blank">documentation</a>.
report_section_order
:
nf-core/template-
software
-
versions
:
software
_
versions
:
order
:
-1000
summary
:
order
:
-1001
export_plots
:
true
bin/scrape_software_versions.py
View file @
4974b176
...
...
@@ -5,13 +5,13 @@ import re
# TODO nf-core: Add additional regexes for new tools in process get_software_versions
regexes
=
{
'
nf-core/templat
e'
:
[
'v_pipeline.txt'
,
r
"(\S+)"
],
'
Pipelin
e'
:
[
'v_pipeline.txt'
,
r
"(\S+)"
],
'Nextflow'
:
[
'v_nextflow.txt'
,
r
"(\S+)"
],
'FastQC'
:
[
'v_fastqc.txt'
,
r
"FastQC v(\S+)"
],
'MultiQC'
:
[
'v_multiqc.txt'
,
r
"multiqc, version (\S+)"
],
}
results
=
OrderedDict
()
results
[
'
nf-core/templat
e'
]
=
'<span style="color:#999999;
\"
>N/A</span>'
results
[
'
Pipelin
e'
]
=
'<span style="color:#999999;
\"
>N/A</span>'
results
[
'Nextflow'
]
=
'<span style="color:#999999;
\"
>N/A</span>'
results
[
'FastQC'
]
=
'<span style="color:#999999;
\"
>N/A</span>'
results
[
'MultiQC'
]
=
'<span style="color:#999999;
\"
>N/A</span>'
...
...
@@ -35,8 +35,7 @@ for k in results:
# Dump to YAML
print
(
'''
id: 'software_versions'
section_name: 'nf-core/template Software Versions'
section_href: 'https://github.com/nf-core/template'
section_name: 'Software Versions'
plot_type: 'html'
description: 'are collected at run time from the software output.'
data: |
...
...
main.nf
View file @
4974b176
...
...
@@ -228,6 +228,25 @@ process assembly {
"""
}
process workflow_summary {
output:
file 'workflow_summary_mqc.yaml' into ch_workflow_summary_yaml
exec:
def yaml_file = task.workDir.resolve('workflow_summary_mqc.yaml')
yaml_file.text = """
id: 'summary'
description: " - this information is collected when the pipeline is started."
section_name: 'Workflow Summary'
section_href: "${workflow.manifest.homePage}"
plot_type: 'html'
data: |
<dl class=\"dl-horizontal\">
${summary.collect { k,v -> " <dt>$k</dt><dd><samp>${v ?: '<span style=\"color:#999999;\">N/A</a>'}</samp></dd>" }.join("\n")}
</dl>
""".stripIndent()
}
/*
* STEP - MultiQC
...
...
@@ -243,8 +262,8 @@ process multiqc {
file (multiqc_config) from ch_multiqc_config
file ('fastqc/*') from ch_fastqc_results_for_multiqc.collect().ifEmpty([])
// TODO get-nf: Add in log files from your new processes for MultiQC to find!
//
file ('software
V
ersions/*') from software
V
ersions
Y
aml
Ch
.collect()
.ifEmpty([])
//
file ('workflowSummary/*') from workflow
S
ummary
Y
aml
Ch
.collect()
file ('software
_v
ersions/*') from software
_v
ersions
_y
aml.collect()
file ('workflowSummary/*') from
ch_
workflow
_s
ummary
_y
aml.collect()
output:
file "*report.html" into ch_multiqc_report
...
...
nextflow.config
View file @
4974b176
...
...
@@ -73,7 +73,7 @@ timeline {
trace
{
enabled
=
true
file
=
"${params.tracedir}/execution_trace.txt"
fields
=
'task_id,name,status,exit,realtime,%cpu,rss
,script
'
fields
=
'task_id,name,status,exit,realtime,%cpu,rss'
}
report
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment