-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve SplitVcfBySamples to correctly handle allele-specific annotat…
…ions (#357)
- Loading branch information
Showing
8 changed files
with
296 additions
and
9 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
10 changes: 10 additions & 0 deletions
10
src/test/resources/com/github/discvrseq/TestData/mergeVcfWithAlts.vcf
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,10 @@ | ||
##fileformat=VCFv4.2 | ||
##INFO=<ID=RR,Number=R,Type=String,Description="Test REF annotation"> | ||
##INFO=<ID=RA,Number=A,Type=String,Description="Test ALT annotation"> | ||
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype"> | ||
##contig=<ID=1,length=16000> | ||
##contig=<ID=2,length=16000> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT Sample1 Sample3 | ||
1 61 . GT G 724.43 PASS RR=GT,G;RA=G GT 0/1 0/1 | ||
1 72 . T A,C 100 PASS RR=T,A,C;RA=A,C GT 0/1 1/1 | ||
1 73 . TT AG 100 PASS RR=TT,AG;RA=AG GT 0/1 0/0 |
Binary file added
BIN
+260 Bytes
src/test/resources/com/github/discvrseq/TestData/mergeVcfWithAlts.vcf.idx
Binary file not shown.
16 changes: 16 additions & 0 deletions
16
src/test/resources/com/github/discvrseq/walkers/SplitVcfBySamples/mergeVcfWithAlts.1of2.vcf
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,16 @@ | ||
##fileformat=VCFv4.2 | ||
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype"> | ||
##INFO=<ID=AC,Number=A,Type=Integer,Description="Allele count in genotypes, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AC.new,Number=A,Type=Integer,Description="Original AC"> | ||
##INFO=<ID=AF,Number=A,Type=Float,Description="Allele Frequency, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AF.new,Number=A,Type=Float,Description="Original AF"> | ||
##INFO=<ID=AN,Number=1,Type=Integer,Description="Total number of alleles in called genotypes"> | ||
##INFO=<ID=AN.new,Number=1,Type=Integer,Description="Original AN"> | ||
##INFO=<ID=RA,Number=A,Type=String,Description="Test ALT annotation"> | ||
##INFO=<ID=RR,Number=R,Type=String,Description="Test REF annotation"> | ||
##contig=<ID=1,length=16000> | ||
##contig=<ID=2,length=16000> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT Sample1 | ||
1 61 . GT G 724.43 PASS AC=1;AF=0.500;AN=2;RA=G;RR=GT,G GT 0/1 | ||
1 72 . T A,C 100 PASS AC=1,0;AF=0.500,0.00;AN=2;RA=A,C;RR=T,A,C GT 0/1 | ||
1 73 . TT AG 100 PASS AC=1;AF=0.500;AN=2;RA=AG;RR=TT,AG GT 0/1 |
16 changes: 16 additions & 0 deletions
16
src/test/resources/com/github/discvrseq/walkers/SplitVcfBySamples/mergeVcfWithAlts.2of2.vcf
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,16 @@ | ||
##fileformat=VCFv4.2 | ||
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype"> | ||
##INFO=<ID=AC,Number=A,Type=Integer,Description="Allele count in genotypes, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AC.new,Number=A,Type=Integer,Description="Original AC"> | ||
##INFO=<ID=AF,Number=A,Type=Float,Description="Allele Frequency, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AF.new,Number=A,Type=Float,Description="Original AF"> | ||
##INFO=<ID=AN,Number=1,Type=Integer,Description="Total number of alleles in called genotypes"> | ||
##INFO=<ID=AN.new,Number=1,Type=Integer,Description="Original AN"> | ||
##INFO=<ID=RA,Number=A,Type=String,Description="Test ALT annotation"> | ||
##INFO=<ID=RR,Number=R,Type=String,Description="Test REF annotation"> | ||
##contig=<ID=1,length=16000> | ||
##contig=<ID=2,length=16000> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT Sample3 | ||
1 61 . GT G 724.43 PASS AC=1;AF=0.500;AN=2;RA=G;RR=GT,G GT 0/1 | ||
1 72 . T A,C 100 PASS AC=2,0;AF=1.00,0.00;AN=2;RA=A,C;RR=T,A,C GT 1/1 | ||
1 73 . TT AG 100 PASS AC=0;AF=0.00;AN=2;RA=AG;RR=TT,AG GT 0/0 |
16 changes: 16 additions & 0 deletions
16
...ources/com/github/discvrseq/walkers/SplitVcfBySamples/mergeVcfWithAltsRemoveAlts.1of2.vcf
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,16 @@ | ||
##fileformat=VCFv4.2 | ||
##FORMAT=<ID=GT,Number=1,Type=String,Description="Genotype"> | ||
##INFO=<ID=AC,Number=A,Type=Integer,Description="Allele count in genotypes, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AC.new,Number=A,Type=Integer,Description="Original AC"> | ||
##INFO=<ID=AF,Number=A,Type=Float,Description="Allele Frequency, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AF.new,Number=A,Type=Float,Description="Original AF"> | ||
##INFO=<ID=AN,Number=1,Type=Integer,Description="Total number of alleles in called genotypes"> | ||
##INFO=<ID=AN.new,Number=1,Type=Integer,Description="Original AN"> | ||
##INFO=<ID=RA,Number=A,Type=String,Description="Test ALT annotation"> | ||
##INFO=<ID=RR,Number=R,Type=String,Description="Test REF annotation"> | ||
##contig=<ID=1,length=16000> | ||
##contig=<ID=2,length=16000> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT Sample1 | ||
1 61 . GT G 724.43 PASS AC=1;AF=0.500;AN=2;RA=G;RR=GT,G GT 0/1 | ||
1 72 . T A 100 PASS AC=1;AF=0.500;AN=2;RA=A;RR=T,A GT 0/1 | ||
1 73 . TT AG 100 PASS AC=1;AF=0.500;AN=2;RA=AG;RR=TT,AG GT 0/1 |
Oops, something went wrong.