Skip to content
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 data into general stats table #2476

Open
4 tasks done
solcos opened this issue Apr 9, 2024 · 0 comments
Open
4 tasks done

Custom data into general stats table #2476

solcos opened this issue Apr 9, 2024 · 0 comments

Comments

@solcos
Copy link

solcos commented Apr 9, 2024

Description of bug

I am trying to add new variables to the general stats table of a report using the custom data configuration using an external files (tsv). The problem is that I am getting the variables in a new plot below the general stats table.

In the log it specifies that the plot_type is bargraph although I set it as 'generalstats'.

I've looked at the https://multiqc.info/docs/custom_content/ page and I cannot figure out what is the problem, since I am using the plot_type 'generalstats'.

The config file looks like:

custom_data:
  my_gen_stats:
    id: "stats"
    section_name: "Stats"
    plot_type: 'generalstats'
    pconfig:
      - N_SEQ_BASES_BEFORE:
      - N_SEQ_BASES_AFTER:
      - N_SEQ_BASES_Q30_BEFORE:
      - N_SEQ_BASES_Q30_AFTER:

sp:
  stats:
    fn: "*_stats_mqc.tsv"

Note: I also tried the conf file using the headers to specify the columns with the same result:

and the report looks like:

image

Do you know what I am doing wrong? Any help will be very useful!

Thank you very much in advance!!

File that triggers the error

multiqc_error.zip

MultiQC Error log

multiqc \
    --force \
     \
    --config multiqc_config.yml \
    --config my_multiqc_config.yml \
    .


/// MultiQC 🔍 | v1.21

|            config | Config 'custom_logo' path not found, skipping (nf-core-sarek_logo_light.png)
|            config | Config 'custom_logo' path not found, skipping (nf-core-sarek_logo_light.png)
|           multiqc | Module(s) in config.run_modules are unknown: custom_data
|           multiqc | Only using modules: custom_content, fastqc, fastp, picard, samtools, mosdepth, gatk, sexdeterrmine, somalier, fastq_screen, bcftools, vcftools, snpeff, vep
|           multiqc | Search path : /home/sarek/work/d0/45622a4318b748e2cdfc2c3cbc60e6
|         searching | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 77/77  
|    custom_content | nf-core-sarek-summary: Found 1 sample (html)
|    custom_content | nf-core-sarek-methods-description: Found 1 sample (html)
|    custom_content | TESTX-1: Found 1 samples (bargraph)
|    custom_content | TESTX.bcftools_stats: Found 1 samples (bargraph)
|    custom_content | software_versions: Found 1 sample (html)
|            fastqc | Found 2 reports
|             fastp | Found 1 reports
|          samtools | Found 2 stats reports
|          samtools | Found 1 flagstat reports
|          mosdepth | Found reports for 2 samples
|            violin | All values are NaN or Inf for metric: Genot depth std
|            violin | All values are NaN or Inf for metric: Allele balance std
|           multiqc | Report      : multiqc_report.html
|           multiqc | Data        : multiqc_data
|           multiqc | Plots       : multiqc_plots
|           multiqc | MultiQC complete

Before submitting

  • I have read the troubleshooting documentation.
  • I am using the latest release of MultiQC.
  • I have included a full MultiQC log, not truncated.
  • I have attached an input file (.zip if necessary) that triggers the error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant