-
Notifications
You must be signed in to change notification settings - Fork 596
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
Conditional code paths for ReadLikelihoods method that always returns true #4865
Comments
@davidbenjamin I don't think it can be removed. That method ( @jamesemery Can you comment? |
@droazen That is correct. It was a necessary step to avoid having to make a class equality check on the likelihoods object itself. @davidbenjamin I am open to suggestions if you have an idea of how better to encapsulate the separation between these two likelihood objects. |
Thanks for indulging me on this. To me it seems like I haven't worked this out but I would hope that it's possible to construct a |
Another point is that the code is already implicitly assigning likelihoods to reads in order to determine which allele each read supports. A method to create a |
I have some code to do that in a test project - if you are interested on it, I can submit a PR with my proposal. It will be nice for an idea that I have in mind, and if it is used also in GATK it would have more support (as a single developer, my reviews are not as good as in a team). Just let me know if you wanna port the code to some utility class! |
@jamesemery Can you weigh in with your thoughts? I seem to recall that there were a lot of nuances surrounding this issue (for example, consistency issues between |
@davidbenjamin That would work and is already more or less what we are doing for VariantAnnotator. The reason we went through trouble of making two classes in the first place was because the pileup was not entirely adequate without actually doing the assembly and genotyping as indels and a number of other effects cause problems that become expensive unless we are in a tool like haplotype caller. |
Closed by #6172. |
ReadLikelihoods
has the following method:The annotations engine has several code paths that could only be taken if this were to
return false
. For example:DepthPerAlleleBySample
RankSumTest
StrandBiasTest
implementations.Can this method, and all the unused code paths, just be deleted? @droazen @ldgauthier
The text was updated successfully, but these errors were encountered: