-
Notifications
You must be signed in to change notification settings - Fork 594
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
CondenseDepthEvidence tool #7926
Conversation
Very small PR, as promised. |
Codecov Report
@@ Coverage Diff @@
## master #7926 +/- ##
===============================================
+ Coverage 87.072% 87.086% +0.015%
+ Complexity 37002 36990 -12
===============================================
Files 2221 2217 -4
Lines 173927 173821 -106
Branches 18793 18791 -2
===============================================
- Hits 151441 151374 -67
+ Misses 15850 15817 -33
+ Partials 6636 6630 -6
|
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.
Thank you @tedsharpe, the succinctness of this is nice to see and shows how much it pays off to have proper libraries for the sv evidence types. I compared output against the old CondenseReadCounts tool and results seem nearly identical. The only exception being that your tools includes partial bins.
This is generally better, but there may be some cases where this causes numerical issues with gCNV, such as having extremely small bins. To allow us to move in baby steps, can you also add a --min-interval-size
parameter, default to 0, and just drop bins below this value. Maybe validate that the given min <= max as well.
Can you also incorporate that into the testing? It appears the test file doesn't have any "partial" bins, but I think that's important behavior to check for.
final int[] accumCounts = accumulator.getCounts(); | ||
final int[] featureCounts = feature.getCounts(); | ||
for ( int idx = 0; idx != accumCounts.length; ++idx ) { | ||
accumCounts[idx] += featureCounts[idx]; | ||
} |
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.
final int[] accumCounts = accumulator.getCounts(); | |
final int[] featureCounts = feature.getCounts(); | |
for ( int idx = 0; idx != accumCounts.length; ++idx ) { | |
accumCounts[idx] += featureCounts[idx]; | |
} | |
MathUtils.addToArrayInPlace(accumulator.getCounts(), feature.getCounts()); |
Positive test demonstrates that the last row, which has nothing to be merged with, gets dropped when minimum interval length is 101 since its length is 100. (That's why the final row in merged.rd.txt is omitted in this commit.) |
Oh, wait. Missed the addToArrayInPlace suggestion. |
OK. Now. |
4f58dae
to
8c24baa
Compare
No description provided.