-
Notifications
You must be signed in to change notification settings - Fork 603
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
Conversation
if total == 0: | ||
continue |
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 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)) |
There was a problem hiding this 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 👍🏻
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. |
Fixes #2033