Hi, I have a custom table with MLST results. MLST results include sequence types which appear numerical but are actually strings. Can put in some custom yaml to make it not highlight the values in the report? Thank you for any insights!
Yes you can. You’ll need a table config for that header, then set the scale to False.
Assuming that you’re doing this with Custom content, you can see the docs for custom content config and table config. You can also find an example of a custom content table with an associated config file here.
Is it possible to format with s instead of f? I want to treat it like a string. I tried this and it worked but it is still introducing a separator at the thousands digit.
#headers:
# 7-gene_ST:
# scale: false
This reverts it back to default formatting with a decimal digit
To answer the original question. If I understand Phil’s answer correctly, simply adding scale: False won’t do anything, and adding format: "{:s}" would result in an error since MultiQC “guessed” the column to be numeric and casted it to float by the time the “format” was applied.
One way to work around this is to specify as format "{:.0f}", which would tell it to render it as a number with zero decimal numbers. Worked for me.
Make sure to unset only_defined_headers, otherwise it will print only the columns listed in headers: