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

RSeQC: check for division by zero #2040

Merged
merged 2 commits into from
Sep 14, 2023
Merged

RSeQC: check for division by zero #2040

merged 2 commits into from
Sep 14, 2023

Conversation

vladsavelyev
Copy link
Member

Fixes #2033

@vladsavelyev vladsavelyev enabled auto-merge (squash) September 14, 2023 09:40
Comment on lines +51 to +52
if total == 0:
continue
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should add a warning log message here

@@ -30,6 +30,7 @@
- Do not fail when all input samples have no coverage ([#2005](https://github.com/ewels/MultiQC/pull/2005)).
- **RSeQC**
- Fix "max() arg is an empty sequence" error ([#1985](https://github.com/ewels/MultiQC/issues/1985))
- Fix division by zero on all-zero input ([#2040](https://github.com/ewels/MultiQC/pull/2040))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Fix division by zero on all-zero input ([#2040](https://github.com/ewels/MultiQC/pull/2040))
- Fix division by zero on all-zero input to inner-distance ([#2040](https://github.com/ewels/MultiQC/pull/2040))

Copy link
Member

@ewels ewels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log message would be good, then LGTM to merge 👍🏻

@vladsavelyev vladsavelyev merged commit 9fa8917 into master Sep 14, 2023
10 checks passed
@ewels ewels deleted the rseqc-fix branch September 14, 2023 10:00
@ewels
Copy link
Member

ewels commented Sep 14, 2023

Auto merge
angry-comedy-bang-bang-gif

@vladsavelyev
Copy link
Member Author

Re log message - I don't think it's needed as the sample data will stay in the report. We just make it skip converting 0 "things" into 0 percents.

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

Successfully merging this pull request may close these issues.

RSeQC: division by zero on all-zeroes output (via nfcore rna-seq)
2 participants