-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom content being rendered as barplot even though table specified in config #1205
Comments
Ok, after a bit of fiddling I got to the bottom of this. There was some functionality essentially missing from MultiQC to allow you to configure Here's my working version of your config file: report_comment: >
This report has been generated by the <a href="https://github.com/nf-core/viralrecon" target="_blank">nf-core/viralrecon</a>
analysis pipeline. For information about how to interpret these results, please see the
<a href="https://github.com/nf-core/viralrecon" target="_blank">documentation</a>.
data_format: 'yaml'
run_modules:
- custom_content
custom_data:
summary_variants_metrics:
section_name: 'Variant calling metrics'
description: 'generated by the nf-core/viralrecon pipeline'
plot_type: 'table'
pconfig:
id: 'summary_variants_metrics_plot'
table_title: 'Variant calling metrics'
namespace: 'Variant calling metrics'
summary_assembly_metrics:
section_name: 'De novo assembly metrics'
description: 'generated by the nf-core/viralrecon pipeline'
plot_type: 'table'
pconfig:
id: 'summary_assembly_metrics_plot'
table_title: 'De novo assembly metrics'
namespace: 'De novo assembly metrics' Changes:
I think that was it.. Good bug hunting though, thanks! Hopefully you'll have more luck with this now. Phil |
Love it and it works now and thank you! |
Ok, I just added a new table config option custom_data:
summary_variants_metrics:
section_name: 'Variant calling metrics'
description: 'generated by the nf-core/viralrecon pipeline'
plot_type: 'table'
pconfig:
id: 'summary_variants_metrics_plot'
table_title: 'Variant calling metrics'
namespace: 'Variant calling metrics'
format: '{:.0f}'
only_defined_headers: false
headers:
'% Mapped reads (viral)':
suffix: '%'
summary_assembly_metrics:
section_name: 'De novo assembly metrics'
description: 'generated by the nf-core/viralrecon pipeline'
plot_type: 'table'
pconfig:
id: 'summary_assembly_metrics_plot'
table_title: 'De novo assembly metrics'
namespace: 'De novo assembly metrics'
format: '{:.0f}' And your tables look like this: (NB: |
BOOOOOOMMMM!! |
Even though I am explicitly specifying
plot_type: 'table'
in my config file one of the tsv files is being added to the report as abargraph
. The rest of the config associated with that section seems to be rendered as defined except for theplot_type
. Something is being overriden somewhere it seems but I cant put my finger on it.I have attached a minimal test example to reproduce the error below:
test_multiqc.tar.gz
Tested on
v1.9.dev0
The text was updated successfully, but these errors were encountered: