-
Notifications
You must be signed in to change notification settings - Fork 588
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
Fix VCFFuncotation output order bug #6178
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d436878
Fix VCFFuncotation output order bug
lbergelson f62b704
Adding an integration test that specifically tests this condition
lbergelson 7440f09
fixup spacing
lbergelson 2c42cb2
remove wierd inclusion
lbergelson ddf3d81
fix index I broke
lbergelson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
...arge/funcotator/funcotator_dataSources/dbSnp/hg19/dbSnp.regressionTestSet.hg19.vcf.gz.tbi
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
src/test/resources/large/funcotator/vcfFuncotationOrderingBugRepro/dbSnp/hg19/dbSnp.config
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...test/resources/large/funcotator/vcfFuncotationOrderingBugRepro/dbSnp/hg19/dbSnp.repro.vcf
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
.../resources/large/funcotator/vcfFuncotationOrderingBugRepro/dbSnp/hg19/dbSnp.repro.vcf.idx
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...ources/large/funcotator/vcfFuncotationOrderingBugRepro/gencode_pik3ca/hg19/gencode.config
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...arge/funcotator/vcfFuncotationOrderingBugRepro/gencode_pik3ca/hg19/gencode.v19.PIK3CA.gtf
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
.../funcotator/vcfFuncotationOrderingBugRepro/gencode_pik3ca/hg19/gencode.v19.PIK3CA.gtf.idx
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...tor/vcfFuncotationOrderingBugRepro/gencode_pik3ca/hg19/gencode.v19.PIK3CA_transcript.dict
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...or/vcfFuncotationOrderingBugRepro/gencode_pik3ca/hg19/gencode.v19.PIK3CA_transcript.fasta
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
...cfFuncotationOrderingBugRepro/gencode_pik3ca/hg19/gencode.v19.PIK3CA_transcript.fasta.fai
Git LFS file not shown
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You could use the
Collectors.toMap()
overloaded method that takes aSupplier
and pass inLinkedHashMap::new
. The default usesHashMap::new
.In this case, using streaming doesn't add much, but for longer chains of stream operations this would be a good change. Might be worth having a utility function in GATK to make it easy.
See https://docs.oracle.com/javase/8/docs/api/java/util/stream/Collectors.html#toMap-java.util.function.Function-java.util.function.Function-java.util.function.BinaryOperator-java.util.function.Supplier-
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.
Yeah, you could do that. You end up with a funny unused merge function if you do because this is assuming that you've pre-uniqued the inputs so I figured I'd just switch it to a for loop.