-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better warnings and handling of multiple alts
re #83 and #87 if there are already values in the query info field for a variant with multiple alternates, incoming values will only overwrite existing values if they are non-nil (or non-zero values of the type). thanks @RoanKanninga for reporting and providing test-cases. when Number=1 in the annotation file (and therefore the input file) and there are multiple alternates in the input file, the values can be out of order. This now issues a warning indicating the file and the field in question and noting that it can be mitigated by decomposing the input file.
- Loading branch information
Showing
13 changed files
with
95 additions
and
5 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[[annotation]] | ||
file="tests/overwrite-multiple-alts/a/whole.vcf.gz" | ||
fields=["raw"] | ||
names=["CADD"] | ||
ops=["self"] |
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,9 @@ | ||
##fileformat=VCFv4.2 | ||
##FORMAT=<ID=AD,Number=R,Type=Integer,Description="Allelic depths for the ref and alt alleles in the order listed"> | ||
##FORMAT=<ID=DP,Number=1,Type=Integer,Description="Approximate read depth (reads with MQ=255 or with bad mates are filtered)"> | ||
##FORMAT=<ID=GQ,Number=1,Type=Integer,Description="Genotype Quality"> | ||
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype"> | ||
##FORMAT=<ID=PL,Number=G,Type=Integer,Description="Normalized, Phred-scaled likelihoods for genotypes as defined in the VCF specification"> | ||
##contig=<ID=1,length=249250621,assembly=b37> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT sample1 sample2 | ||
1 208063100 rs5780411 G GA,T 2896 . AC=9,1 GT:AD:DP:GQ:PL 0/1:16,21,12:52:85:681,0,494,644,85,1010 0/2:33,0,14:49:95:95,184,663,0,479,441 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,11 @@ | ||
[[annotation]] | ||
file="tests/overwrite-multiple-alts/b/cadd_indels.vcf.gz" | ||
fields=["phred", "raw"] | ||
names=["CADD_SCALED","CADD"] | ||
ops=["self","self"] | ||
|
||
[[annotation]] | ||
file="tests/overwrite-multiple-alts/b/whole_genome_snv_slice.vcf.gz" | ||
fields=["phred", "raw"] | ||
names=["CADD_SCALED","CADD"] | ||
ops=["self","self"] |
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,9 @@ | ||
##fileformat=VCFv4.2 | ||
##FORMAT=<ID=AD,Number=R,Type=Integer,Description="Allelic depths for the ref and alt alleles in the order listed"> | ||
##FORMAT=<ID=DP,Number=1,Type=Integer,Description="Approximate read depth (reads with MQ=255 or with bad mates are filtered)"> | ||
##FORMAT=<ID=GQ,Number=1,Type=Integer,Description="Genotype Quality"> | ||
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype"> | ||
##FORMAT=<ID=PL,Number=G,Type=Integer,Description="Normalized, Phred-scaled likelihoods for genotypes as defined in the VCF specification"> | ||
##contig=<ID=1,length=249250621,assembly=b37> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT sample1 sample2 | ||
1 208063100 rs5780411 G GA,T 2896 . AC=9,1 GT:AD:DP:GQ:PL 0/1:16,21,12:52:85:681,0,494,644,85,1010 0/2:33,0,14:49:95:95,184,663,0,479,441 |
Binary file not shown.
Binary file not shown.