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
endless while loop in estimateLibrarySize() in DuplicationMetrics.java #1146
Comments
yfarjoun
added a commit
that referenced
this issue
Mar 29, 2018
- added a failing test (with the example from github #1146)
yfarjoun
added a commit
that referenced
this issue
Mar 29, 2018
- added a failing test (with the example from github #1146)
Thanks for this interesting edge case. I took your example and made a test out of it, and also fixed it in line with your suggestion. |
Hello,
Here’s something else that I’m wondering if it’s normal or not.
I’ve been using picard for a couple of years with WES data, but never hit the bug until recently with WGS data. After I found out the specific input values to the f() function that never came back as negative, I tried to see what values of c and n the program produced with my WES data and found that the function estimateLibrarySize() was never called because the for loop in the function finalizeAndWriteMetrics() was never entered and the metrics file produced contained no histogram data. So my question is, is this normal? That is, is it expected that for some data the histogram will not be produced? In our analysis pipelines, the metrics files are not used at all (that’s why I never checked the metrics files before).
Thanks.
From: Yossi Farjoun <notifications@github.com<mailto:notifications@github.com>>
Reply-To: broadinstitute/picard <reply@reply.github.com<mailto:reply@reply.github.com>>
Date: Thursday, March 29, 2018 at 10:55 AM
To: broadinstitute/picard <picard@noreply.github.com<mailto:picard@noreply.github.com>>
Cc: Zhang Shiping <zhangs3@email.chop.edu<mailto:zhangs3@email.chop.edu>>, Author <author@noreply.github.com<mailto:author@noreply.github.com>>
Subject: Re: [broadinstitute/picard] endless while loop in estimateLibrarySize() in DuplicationMetrics.java (#1146)
Thanks for this interesting edge case.
I took your example and made a test out of it, and also fixed it in line with your suggestion.
(PR here #1147<#1147>)
Thanks again!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#1146 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AcsYWFXRLb_cb5Re5dNOusf-adPX0uIyks5tjQPzgaJpZM4S-vEV>.
|
sorry to be a stickler,,,but this seems to be a separate issue... |
yfarjoun
pushed a commit
that referenced
this issue
Apr 12, 2018
- white-space changes and comments - added a failing test (with the example from github #1146) - removed '=' sign from while loop. Once equality to zero is achieved, it's good enough for the bisection method. - responding to review comments
ghost
pushed a commit
to DanieleBarreca/picard
that referenced
this issue
Jun 8, 2018
- white-space changes and comments - added a failing test (with the example from github broadinstitute#1146) - removed '=' sign from while loop. Once equality to zero is achieved, it's good enough for the bisection method. - responding to review comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Affected tool(s)
picard MarkDuplicates
Affected version(s)
Latest public release version: 2.18.0
Description
The while loop in the following codes (in the function estimateLibrarySize() in DuplicationMetrics.java) never ends for some initial values of M, c and n with which the function f() will never return a negative value.
Steps to reproduce
Here is a short Java program to show the problem. The initial values of M, c and n are from real data.
Expected behavior
The while loop should exit for certain value of M.
Actual behavior
For certain values of M, c and n, such as, 100.0, 357087881 and 357087883 respectively, the function f() never returns a negative value.
Suggested correction
The text was updated successfully, but these errors were encountered: