-
Notifications
You must be signed in to change notification settings - Fork 606
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
ValueError with html as custom_content in config #1071
Comments
Good spot - this seems to be something specific to the parsing code for config files. I think if you put the HTML in a separate I'll look in to fixing this though, as it is a bug. Phil |
Thanks for the reply and solution. I'll leave the issue open for your administration. |
This is now fixed in v1.9dev - please do have a play and see if it works for you. The problem was due to the fact that Phil |
Also note that I just added new functionality to make it easier to insert HTML into reports. For example, you could now have:
<!--
id: 'ID section'
section_name: 'Section name'
-->
<p>html text here.</p> |
Ah interesting - I was playing with that and I thought that I'd set it to hide that second description line if it wasn't set in the header config (or if there is no header config). I tweaked core MultiQC a little to make this happen - if you set Note that you can override the description text for any module, this is usually how people add those kinds of descriptions. See the docs - you want Phil |
ps. If you can send me your test file with the double headings I can double check. |
You can reuse the files from the "original" issue. Maybe I misunderstood, but adding |
This works fine for me: custom_data:
my_data_type:
id: 'ID section'
section_name: 'Section name'
description: False
plot_type: 'html'
data: 'html text here'
This was only with |
* If href, description and extra not set for a section, the description line is no longer added * add_section argument 'extra' is now included in the documentation * Custom content section config now supports section_extra key See #1071 for some discussion
No problem! I've been iterating with it a bit. Just updated it one last (?) time - I also rediscovered the Thanks for testing! Phil |
Description of bug:
When I try to add a custom_content section with html to a config it seems like it tries to unpack the html into a sample and value kind-of-thing, while the html type does not actually contain this structure.
multiqc_config.yaml:
some_data.out:
Now run:
multiqc -c multiqc_config.yaml some_data.out
MultiQC Error log:
The text was updated successfully, but these errors were encountered: