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

fastp after_filtering_q30_rate shows zero in the General Statistics table #936

Closed
pixuenan opened this issue Mar 28, 2019 · 4 comments
Closed
Labels
bug: core Bug in the main MultiQC code

Comments

@pixuenan
Copy link

pixuenan commented Mar 28, 2019

Description of bug:
When show fastp data in the General Statistics table, the column of fastp M Q30 reads (after_filtering_q30_rate) showed zero. Besides, if you open the Config Columns table, you willl find the column M Q30 reads with description Reads > Q30 after filtering (millions) has an ID after_filtering_q30_rate, which seems incorrect.

File that triggers the error:
fastp_failure.zip

MultiQC run details (please complete the following):

  • Command used to run MultiQC: multiqc . -c multiqc_config.yaml -o multiqc
  • MultiQC Version: v1.7dev0, v1.7
  • Operating System: CentOS 7, Ubuntu 16.04.5
  • Python Version: 3.6.7
  • Method of MultiQC installation: conda
@ewels
Copy link
Member

ewels commented Mar 30, 2019

Hi @pixuenan,

Thanks for reporting this. You're completely right - looks like a mistake when writing the module.

Header config:
https://github.com/ewels/MultiQC/blob/d4a622d837a76c8a17d7d0213f3f83dad5a61e0f/multiqc/modules/fastp/fastp.py#L288-L296

Example input data:

"after_filtering": {
    "total_reads":16034314,
    "total_bases":1722358455,
    "q20_bases":1659758686,
    "q30_bases":1622286535,
    "q20_rate":0.963655,
    "q30_rate":0.941898,
    "gc_content":0.467941
}

So yeah - the _rate field is incorrectly being labelled and treated as a read count. Should be an easy fix.

Phil

@ewels ewels closed this as completed in 968fb99 Mar 30, 2019
@ewels
Copy link
Member

ewels commented Mar 30, 2019

Hi @pixuenan,

I've updated the code, it should make more sense now. If you could give it a spin and let me know how you get on, that would be great.

Thanks!

Phil

@ewels ewels added the bug: core Bug in the main MultiQC code label Mar 30, 2019
@pixuenan
Copy link
Author

pixuenan commented Apr 4, 2019

Hi @ewels,

The statistics of fastp Q30 is correct now, thanks for the quick reply and fix.

Regards,

Xuenan

@ewels
Copy link
Member

ewels commented Apr 4, 2019

Great! Thanks for getting back to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: core Bug in the main MultiQC code
Projects
None yet
Development

No branches or pull requests

2 participants