-
Notifications
You must be signed in to change notification settings - Fork 603
Added in code to populate the name of VariantContext objects. #4571
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
base: master
Are you sure you want to change the base?
Conversation
Before proceeding with this PR, let's check what GATK3 puts into the |
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.
Back to @jonn-smith with comments.
src/main/java/org/broadinstitute/hellbender/engine/FeatureDataSource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/broadinstitute/hellbender/utils/test/VariantContextTestUtils.java
Outdated
Show resolved
Hide resolved
src/test/java/org/broadinstitute/hellbender/engine/FeatureDataSourceUnitTest.java
Show resolved
Hide resolved
b126583
to
4a3f9c9
Compare
import java.io.File; | ||
import java.io.PrintStream; | ||
import java.util.*; | ||
import java.util.stream.Collectors; | ||
import java.util.stream.Stream; | ||
import java.util.stream.StreamSupport; | ||
|
||
// This should be: | ||
//import org.apache.logging.log4j.LogManager; |
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.
What's the deal with this change? can we remove these comments?
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.
Because Intellij likes to auto resolve / update the import statements, I've found that the loggers occasionally get messed up and are switched to be the other includes which don't work.
I added this comment here so that I could preserve which loggers are correct. I'll reword the comment and make it clear. Initially this was above the logger lines, but since Intellij auto-organizes the imports they're no longer above the logging
imports.
@@ -2,15 +2,13 @@ | |||
|
|||
import com.google.common.annotations.VisibleForTesting; |
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.
Did you mean to include this file?
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.
I think that's where the @VisibleForTesting
attribute is defined, isn't it?
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.
@jonn-smith This looks good 👍
Codecov Report
@@ Coverage Diff @@
## master #4571 +/- ##
==========================================
Coverage ? 17.915%
Complexity ? 8536
==========================================
Files ? 1943
Lines ? 146209
Branches ? 16146
==========================================
Hits ? 26194
Misses ? 117360
Partials ? 2655
|
@jonn-smith What's the status of this one? |
@droazen I rebased it and have been updating the comparison methods for I haven't yet done that though. |
@jonn-smith Can you explain briefly why the tests are failing? It seems like this is the sort of change that our test code should just ignore. |
Yes. We have two methods to compare whether variant context objects are equal. I wanted to make it so that there was only 1 method that does this, so I tried to change the calls to only use one of them. However they do not actually check the same things. I am going to move the changes into another branch / PR, but I haven't yet. After doing so I'll revert so that both comparisons remain and make sure the tests pass again. |
be65da5
to
ad7bcbd
Compare
Reverted the variant context equality changes and put them in branch |
ca1a7c0
to
2b1429c
Compare
Hello - I'm writing to check on these PRs again. I appreciate these are not GATK's priority, but they're blocking #6973 and we've been stuck for a long time here. If there is additional work, testing or anything needed on this I am happy to offer my time if there's anything that would help get this done. |
@bbimber Thanks for your patience, and apologies for the very long wait on this PR! We'll do our very best to get through these reviews as soon as our other priorities allow. |
@cmnbroad @droazen Good morning - I'm writing to follow up again. I appreciate that this not GATK's main priority, but I'm at the point where I need to either unblock this or fork GATK and publish another artifact so we can move our projects forward. The crux of what I'm trying to achieve with these changes is for our VariantQC tool; however, I'm bumping into several situations where MultiVariantWalkers need to be able to determine the FeatureInput source of the variants. I recognize that this and my original PR #6973 has taken a non-trivial amount of @cmnbroad time, but we have basically been stalled with an otherwise approved PR since Feb 8. The PRs blocking that PR are this one and the related #7021. They both involve creating a way to connect VariantContext to FeatureInput - a capability that would benefit the GATK engine and I have been told by @cmnbroad you're interested in having. It seems like the primary problem associated with these changes is ensuring tests and VariantContext comparison code still works, since VariantContexts are going to tend to report a source. I dont know your internal conversations, so I'm guessing based on what's written in github. As I've said, I'd like to do whatever I can to get these changes into a form that takes as little of your effort as possible. While this particular PR seems close, there is clearly some cleanup needed from what's there now, including code review from @lbergelson that no one ever fixed. Would it help if I put together #4571 and #7021 into a new branch where I also work through associated test changes and try to get this into one concise piece of code to review? Basically try to put everything together to be the minimal amount of work needed on your side? I havent heard anything one way or the other from GATK staff as to whether this would actually be helpful or not. Are there higher order design decisions that need to be considered that I'm not seeing? I completely understand your time constraints - I'm just trying to figure out some solution that let's this go forward. Again, if we cant unblock this soon I'm going to probably fork GATK and need to start working off that project. Thanks. |
Fixes #4570