Multiqc not sorting descendingly with custom_plot_config

I am working on a custom module for my internship.
I am making a custom table that should look something like this:

But for some reason when I try to preload the sorting settings with the multiqc_config.yaml it only sorts in ascending order, like this and takes the first column with it.

I have a multiqc_config with the following settings:

I have also tried without adding direction like described in the documentation Plotting functions | Seqera Docs

I am new to this, so any help would be greatly appreciated.

Hi Thomas! I can’t seem to be able to reproduce the issue. I’m running on the samtools coverage test data (test-data/data/modules/samtools/coverage at main · MultiQC/test-data · GitHub):

multiqc -f test-data/data/modules/samtools/coverage -c ~/.multiqc_config.yaml

With the following config:

custom_plot_config:
  samtools-coverage-table_table:
    defaultsort:
      - column: "Mean depth"
        direction: desc

And it looks as expected:

Would you be able to share a reproducible example?

I have added a smaller edition of my project in the zip file together with some test data.
Normally after installing and using $ multiqc -m msh2 ./test_data/ -c multiqc_config_MSH2.yaml should do the trick for producing the report.

multiqc_help.zip (1.4 MB)

Could my problem be caused due to my column consisting out of strings instead of floats or integers? Sorry for bothering with this niche question.

Problem seems to be solved when updating to multiqc 1.29.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.