-
Notifications
You must be signed in to change notification settings - Fork 444
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
update to work with vcf 4.4 prefixed phasing info #1861
Open
vasudeva8
wants to merge
2
commits into
samtools:develop
Choose a base branch
from
vasudeva8:vcf44GT
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+226
−4
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
##fileformat=VCFv4.4 | ||
##FILTER=<ID=PASS,Description="All filters passed"> | ||
##contig=<ID=1,length=1000> | ||
##reference=file://test | ||
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype"> | ||
##failue="test file on explicit and implicit phasing markers in 4.4" | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT HG00096 HG00097 | ||
1 61462 rs56992750 T A 100 PASS . GT 0|0|1 0/1 | ||
1 61480 rs56992751 T A 100 PASS . GT 0 /0|1 | ||
1 61481 rs56992752 T A 100 PASS . GT /0 |0/1 | ||
1 61482 rs56992752 T A 100 PASS . GT /0 /1 | ||
1 61483 rs56992752 T A 100 PASS . GT 0 1 | ||
1 61484 rs56992752 T A 100 PASS . GT 0 /1 | ||
1 61485 rs56992752 T A 100 PASS . GT 0 1 | ||
1 61486 rs56992752 T A 100 PASS . GT 0 1 | ||
1 61487 rs56992752 T A 100 PASS . GT 0 1 | ||
1 61488 rs56992752 T A 100 PASS . GT 0 /1 | ||
1 61489 rs56992752 T A 100 PASS . GT /0 1 | ||
1 61490 rs56992752 T A 100 PASS . GT /0 1 | ||
1 61491 rs56992752 T A 100 PASS . GT /0 /1 | ||
1 61492 rs56992752 T A 100 PASS . GT /0|0 1/0 | ||
1 61493 rs56992752 T A 100 PASS . GT 0|0 |1/0 | ||
1 61494 rs56992752 T A 100 PASS . GT /0|0 1/0 | ||
1 61495 rs56992752 T A 100 PASS . GT 0|0 |1/0 | ||
1 61496 rs56992752 T A 100 PASS . GT . . | ||
1 61497 rs56992752 T A 100 PASS . GT . |. | ||
1 61498 rs56992752 T A 100 PASS . GT ./1 .|1 | ||
1 61499 rs56992752 T A 100 PASS . GT ./1 .|1 | ||
1 61500 rs56992752 T A 100 PASS . GT |./1 /.|1 | ||
1 61501 rs56992752 T A 100 PASS . GT 1/. 1|. | ||
1 61502 rs56992752 T A 100 PASS . GT 1/. /1|. | ||
1 61503 rs56992752 T A 100 PASS . GT |1/. 1|. | ||
1 61504 rs56992752 T A 100 PASS . GT ./. .|. | ||
1 61505 rs56992752 T A 100 PASS . GT ./. .|. | ||
1 61506 rs56992752 T A 100 PASS . GT |./. /.|. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
##fileformat=VCFv4.4 | ||
##contig=<ID=1,length=1000> | ||
##reference=file://test | ||
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype"> | ||
##failue="test file on explicit and implicit phasing markers in 4.4" | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT HG00096 HG00097 | ||
1 61462 rs56992750 T A 100 PASS . GT 0|0|1 0/1 | ||
1 61480 rs56992751 T A 100 PASS . GT 0 /0|1 | ||
1 61481 rs56992752 T A 100 PASS . GT /0 |0/1 | ||
1 61482 rs56992752 T A 100 PASS . GT /0 /1 | ||
1 61483 rs56992752 T A 100 PASS . GT 0 1 | ||
1 61484 rs56992752 T A 100 PASS . GT 0 /1 | ||
1 61485 rs56992752 T A 100 PASS . GT 0 |1 | ||
1 61486 rs56992752 T A 100 PASS . GT |0 1 | ||
1 61487 rs56992752 T A 100 PASS . GT |0 |1 | ||
1 61488 rs56992752 T A 100 PASS . GT |0 /1 | ||
1 61489 rs56992752 T A 100 PASS . GT /0 1 | ||
1 61490 rs56992752 T A 100 PASS . GT /0 |1 | ||
1 61491 rs56992752 T A 100 PASS . GT /0 /1 | ||
1 61492 rs56992752 T A 100 PASS . GT /0|0 /1/0 | ||
1 61493 rs56992752 T A 100 PASS . GT |0|0 |1/0 | ||
1 61494 rs56992752 T A 100 PASS . GT /0|0 1/0 | ||
1 61495 rs56992752 T A 100 PASS . GT 0|0 |1/0 | ||
1 61496 rs56992752 T A 100 PASS . GT . . | ||
1 61497 rs56992752 T A 100 PASS . GT /. |. | ||
1 61498 rs56992752 T A 100 PASS . GT ./1 .|1 | ||
1 61499 rs56992752 T A 100 PASS . GT /./1 |.|1 | ||
1 61500 rs56992752 T A 100 PASS . GT |./1 /.|1 | ||
1 61501 rs56992752 T A 100 PASS . GT 1/. 1|. | ||
1 61502 rs56992752 T A 100 PASS . GT /1/. /1|. | ||
1 61503 rs56992752 T A 100 PASS . GT |1/. |1|. | ||
1 61504 rs56992752 T A 100 PASS . GT ./. .|. | ||
1 61505 rs56992752 T A 100 PASS . GT /./. |.|. | ||
1 61506 rs56992752 T A 100 PASS . GT |./. /.|. |
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
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.
The suffix 1, as used here, is confusing and somewhat conflicting with the convention used throughout the rest of the code. Can you rename so that the 'phase' keyword is included? Or, even better, create an extended function where various flags can be turned on, starting with PHASE_1ST_ALLELE, or something like that?
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 the name should not be made more specific, and if possible made more generic!
An implementation which supports the newer format should be the 1st choice going forward.
Best would have been to update the current method itself but not possible as it would break the compatibility due to signature change.
Hence chose a name which is in sync with current method. Also we have a few others like index_load/index_build/ etc in same lines.