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
Soft bed regions v2 #121
Soft bed regions v2 #121
Conversation
…A base variant contained in the region counted as TP if matches a call variant just outside the region.
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.
Looks good. I'm going to change the version back to 3.3.0-dev because we haven't released 3.3, yet. I'll also be shortening the description of the new parameter. I'm probably going to pull most of lines 796:806 to somewhere outside of main as well as probably 814 (that's a long if, might give it a method).
FYI, I made some style changes in 9e4e8a8. Functests all pass. |
Thank you, this is all fine. |
You already handled that. Line 655 in 9e4e8a8
Edit: nevermind, I stopped reading that line halfway through. I'll think about either fixing there or adding an argparse type requirement of 'positive integer' Edit2: I'll have to do the argparse type requirement. I realized that |
Agree, argparse type requirement is probably the best. |
See 2f5b001 |
Just noticed: in bench.py line 647 |
It's been changed. I appreciate you double/triple/+ checking. I'm very happy to add your work to the tool. Thanks so much for your contribution!! |
The new
truvari bench
option--extend
extends the regions of interest (set in--includebed
argument) by the given number of bases on each side, allowing truth set variants to match call set variants that are just outside of the original region. If a call set variant is in the extended regions it can potentially match a truth set variant that is in the original regions turning it to TP, but call set variants in the extended regions that don't have a match are not counted as FP. This strategy is similar to the one implemented intruvari bench
for size matching - only the truth set variants longer thansizemin
(equal to 50 by default) are considered, but they are allowed to match shorter comparison set variants of sizesizefilt
(30 by default) or longer.The default is
--extend 0
- no extension, producing the same results as previous versions oftruvari bench
.See the following discussion for details.