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

RSEM module failed #1040

Closed
owenwilkins opened this issue Oct 25, 2019 · 13 comments · Fixed by #1474
Closed

RSEM module failed #1040

owenwilkins opened this issue Oct 25, 2019 · 13 comments · Fixed by #1474
Assignees
Labels
bug: module Bug in a MultiQC module waiting: example data Needs example data before we can proceed

Comments

@owenwilkins
Copy link

owenwilkins commented Oct 25, 2019

Description of bug:
The 'rsem' MultiQC module broke...

MultiQC Error log:

Module rsem raised an exception: Traceback (most recent call last):
  File "/dartfs-hpc/rc/home/d/d41294d/.conda/envs/seqqc/bin/multiqc", line 440, in multiqc
    output = mod()
  File "/dartfs-hpc/rc/home/d/d41294d/.conda/envs/seqqc/lib/python3.7/site-packages/multiqc/modules/rsem/rsem.py", line 34, in __init__
    self.parse_rsem_report(f)
  File "/dartfs-hpc/rc/home/d/d41294d/.conda/envs/seqqc/lib/python3.7/site-packages/multiqc/modules/rsem/rsem.py", line 76, in parse_rsem_report
    data['alignable_percent'] = (float(s[1]) / float(s[3])) * 100.0
ZeroDivisionError: float division by zero

MultiQC run details (please complete the following):

  • Command used to: multiqc .
  • MultiQC Version: MultiQC v1.7
  • Method of MultiQC installation: conda
@ewels
Copy link
Member

ewels commented Oct 25, 2019

Thanks @owenwilkins - could you please upload a log file that triggers this error? Although I think I can guess what's going on here (you have zero reads in your dataset), it's good to have an example file to work with to be sure that the bug is fixed.

If GitHub doesn't allow the file type, just zip it or rename it to .txt

Phil

@ewels ewels added bug: core Bug in the main MultiQC code waiting: example data Needs example data before we can proceed labels Oct 25, 2019
@owenwilkins
Copy link
Author

owenwilkins commented Oct 25, 2019 via email

@ewels
Copy link
Member

ewels commented Oct 25, 2019

I mean the rsem log files that you're supplying to MultiQC.. Just above where you pasted the MultiQC log it should tell you what the last file was that MultiQC was attempting to parse.

@owenwilkins
Copy link
Author

owenwilkins commented Oct 25, 2019 via email

@ewels
Copy link
Member

ewels commented Oct 25, 2019

Great! Would still be nice to catch the error and still display the results in the report. After all, 0 is technically a valid number of reads..! If you could send the file that would be great. I've fixed things like this before without a test file only to find that once bug 1 is fixed, others turn up later in the code.

Phil

@owenwilkins
Copy link
Author

owenwilkins commented Oct 28, 2019 via email

@ewels
Copy link
Member

ewels commented Oct 29, 2019

Uploading to this issue is easiest if possible - just drag and drop the file onto the GitHub issue comment interface. You may need to zip or rename the file extension. Alternatively, you can make a pull-request with the file to https://github.com/ewels/MultiQC_TestData/tree/master/data/modules/rsem (this is where I want it to end up, for automated CI tests).

Phil

@ewels
Copy link
Member

ewels commented Nov 6, 2019

Ping 😉

@owenwilkins
Copy link
Author

owenwilkins commented Nov 11, 2019 via email

@ewels
Copy link
Member

ewels commented Mar 29, 2020

Hi @owenwilkins,

Any joy with finding these example files?

Phil

@owenwilkins
Copy link
Author

Hi Phil, Apologies, I think I sent a separate email, but I left these files in a directory on our HPC that got purged before I pulled the files down, so apologies for that

@ewels
Copy link
Member

ewels commented Apr 8, 2020

No worries - I'll try to guess at what it looked like based on the example RSEM data we already have, and see if I can replicate the error traceback above.

@ewels ewels added bug: module Bug in a MultiQC module and removed bug: core Bug in the main MultiQC code labels Dec 28, 2020
ErikDanielsson added a commit to ErikDanielsson/MultiQC_TestData that referenced this issue Jun 30, 2021
ewels added a commit to MultiQC/test-data that referenced this issue Jun 30, 2021
@ewels
Copy link
Member

ewels commented Jun 30, 2021

Fixed by @ErikDanielsson in #1474 (complete with synthesised example data) - this will be included in the upcoming v1.11 release.

Thanks for reporting @owenwilkins and please let us know if you run into any problems with the fix. Especially as we simply guessed what the RSEM output file looks like: https://github.com/ewels/MultiQC_TestData/pull/203/files (but that file seemed to generate the same traceback that you reported above).

Phil

@ewels ewels closed this as completed Jun 30, 2021
vladsavelyev pushed a commit to vladsavelyev/MultiQC_TestData that referenced this issue Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: module Bug in a MultiQC module waiting: example data Needs example data before we can proceed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants