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
Adding mode and 95th percentile to InsertSizeMetrics. #1001
Conversation
@yfarjoun or @lbergelson bump? |
@@ -168,6 +169,7 @@ public void addMetricsToFile(final MetricsFile<InsertSizeMetrics,Integer> file) | |||
if (percentCovered >= 0.7 && metrics.WIDTH_OF_70_PERCENT == 0) metrics.WIDTH_OF_70_PERCENT = distance; | |||
if (percentCovered >= 0.8 && metrics.WIDTH_OF_80_PERCENT == 0) metrics.WIDTH_OF_80_PERCENT = distance; | |||
if (percentCovered >= 0.9 && metrics.WIDTH_OF_90_PERCENT == 0) metrics.WIDTH_OF_90_PERCENT = distance; | |||
if (percentCovered >= 0.9 && metrics.WIDTH_OF_95_PERCENT == 0) metrics.WIDTH_OF_95_PERCENT = distance; |
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.
@nh13 shouldn't this be percentCovered >= 0.95 ?
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.
No description provided.
@ktibbett one more time, omg that mistake. |
I'm concerned that the tests passed with that error....could we have tests that would fail on that error? |
acf57a1
to
cf190f5
Compare
@yfarjoun of course, done. |
Assert.assertEquals(metric.WIDTH_OF_80_PERCENT, 1 + insertBy*14); | ||
Assert.assertEquals(metric.WIDTH_OF_90_PERCENT, 1 + insertBy*16); | ||
Assert.assertEquals(metric.WIDTH_OF_95_PERCENT, 1 + insertBy*18); | ||
Assert.assertEquals(metric.WIDTH_OF_99_PERCENT, 1 + insertBy*20); |
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.
Look Ma, different values for each!
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.
👍
Thanks @nh13 : 👍 |
I find that I parse the histogram often for these metrics, and so I figured I should just go ahead and add them officially.