-
Notifications
You must be signed in to change notification settings - Fork 596
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
Enable SelectVariants to drop specific annotation fields from output vcf. #5254
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
544ce97
adding option to drop annotations in selectvariants
kachulis 04d5078
adding tests
kachulis 4b24b51
adding expected vcfs for tests
kachulis e118a0d
removing unneeded added imports from VariantWalker
kachulis 31771d3
aesthetics
kachulis 349cbd7
adding message of genotype annotations which will be dropped
kachulis 7079683
don't need to check for key before removing from hashmap
kachulis 3149239
requested changes
kachulis c68a476
a few missing finals
kachulis 9da7c07
requested performance change
kachulis 4ecf3f5
doc improvements requested by Laura
kachulis 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
33 changes: 33 additions & 0 deletions
33
...tools/walkers/variantutils/SelectVariants/expected/testSelectVariants_DropAnnotations.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,33 @@ | ||
##fileformat=VCFv4.2 | ||
##FORMAT=<ID=GQ,Number=1,Type=Integer,Description="Genotype Quality"> | ||
##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=AF,Number=A,Type=Float,Description="Allele Frequency, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AFrange,Number=2,Type=String,Description="Allele Frequency, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AN,Number=1,Type=Integer,Description="Total number of alleles in called genotypes"> | ||
##INFO=<ID=AlleleBalance,Number=1,Type=Float,Description="Allele balance"> | ||
##INFO=<ID=DP,Number=1,Type=Integer,Description="Approximate read depth; some reads may have been filtered"> | ||
##INFO=<ID=DoC,Number=1,Type=Integer,Description="Filtered Depth"> | ||
##INFO=<ID=HomopolymerRun,Number=1,Type=Integer,Description="Largest Contiguous Homopolymer Run of Variant Allele In Either Direction"> | ||
##INFO=<ID=MAPQ0,Number=1,Type=Integer,Description="Total Mapping Quality Zero Reads"> | ||
##INFO=<ID=NS,Number=1,Type=Float,Description="Number of samples"> | ||
##INFO=<ID=RMSMAPQ,Number=1,Type=Float,Description="RMS Mapping Quality"> | ||
##INFO=<ID=SB,Number=1,Type=Float,Description="Strand bias"> | ||
##INFO=<ID=SpanningDeletions,Number=1,Type=Integer,Description="No spanning deletions"> | ||
##reference=human_b36_both.fasta | ||
##source=UnifiedGenotyper | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA11894 | ||
1 10020400 . C T 30.66 . AC=1;AF=0.500;AFrange=0.01-0.09,95%;AN=2;AlleleBalance=0.72;DoC=193;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=177.45;SB=-0.02;SpanningDeletions=0 GT:GQ 0/1:1 | ||
1 10020408 . C A 57.15 . AC=1;AF=0.500;AFrange=0.01-0.11,95%;AN=2;AlleleBalance=0.73;DoC=179;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=174.11;SB=-0.02;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020416 . G A,T 40.12 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.10,95%;AN=2;AlleleBalance=0.73;DoC=166;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=176.69;SB=-0.01;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020436 . A T 64.57 . AC=1;AF=0.500;AFrange=0.01-0.12,95%;AN=2;AlleleBalance=0.73;DoC=168;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=170.66;SB=-1.53;SpanningDeletions=0 GT:GQ 0/1:2 | ||
1 10020439 . G A,T 57.80 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.13,95%;AN=2;AlleleBalance=0.73;DoC=156;HomopolymerRun=1;MAPQ0=0;NS=60;RMSMAPQ=167.02;SB=-0.33;SpanningDeletions=0 GT:GQ 1/0:2 | ||
1 10020447 . C T 68.03 . AC=1;AF=0.500;AFrange=0.01-0.14,95%;AN=2;AlleleBalance=0.72;DoC=140;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=166.27;SB=-0.62;SpanningDeletions=0 GT:GQ 0/1:2 | ||
1 10020452 . T C 32.71 . AC=1;AF=0.500;AFrange=0.01-0.12,95%;AN=2;AlleleBalance=0.70;DoC=138;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=167.20;SB=-0.03;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020453 . G A,T 48.53 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.12,95%;AN=2;AlleleBalance=0.70;DoC=133;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=168.40;SB=-0.02;SpanningDeletions=0 GT:GQ 1/0:2 | ||
1 10020464 . G T 74.83 . AC=1;AF=0.500;AFrange=0.01-0.13,95%;AN=2;AlleleBalance=0.74;DoC=152;HomopolymerRun=1;MAPQ0=0;NS=60;RMSMAPQ=170.06;SB=-0.04;SpanningDeletions=0 GT:GQ 0/1:3 | ||
1 10020470 . A G,T 91.66 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.13,95%;AN=2;AlleleBalance=0.70;DoC=182;HomopolymerRun=1;MAPQ0=0;NS=60;RMSMAPQ=174.37;SB=-0.25;SpanningDeletions=0 GT:GQ 0/1:2 | ||
1 10020484 . A C,T 55.89 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.09,95%;AN=2;AlleleBalance=0.76;DoC=239;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=181.59;SB=-0.03;SpanningDeletions=0 GT:GQ 0/1:2 | ||
1 10020485 . G A,T 32.66 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.08,95%;AN=2;AlleleBalance=0.75;DoC=237;HomopolymerRun=1;MAPQ0=0;NS=60;RMSMAPQ=180.16;SB=-0.02;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020492 . T A,G 44.35 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.09,95%;AN=2;AlleleBalance=0.68;DoC=284;HomopolymerRun=1;MAPQ0=0;NS=60;RMSMAPQ=184.59;SB=-0.04;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020615 . C T,A 162.10 . AC=0,0;AF=0.00,0.00;AFrange=0.01-0.10,95%;AN=2;AlleleBalance=0.72;DoC=285;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=195.54;SB=-67.56;SpanningDeletions=0 GT:GQ 0/0:2 |
26 changes: 26 additions & 0 deletions
26
...antutils/SelectVariants/expected/testSelectVariants_DropAnnotationsSelectFisherStrand.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,26 @@ | ||
##fileformat=VCFv4.2 | ||
##FORMAT=<ID=GQ,Number=1,Type=Integer,Description="Genotype Quality"> | ||
##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=AF,Number=A,Type=Float,Description="Allele Frequency, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AFrange,Number=2,Type=String,Description="Allele Frequency, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AN,Number=1,Type=Integer,Description="Total number of alleles in called genotypes"> | ||
##INFO=<ID=AlleleBalance,Number=1,Type=Float,Description="Allele balance"> | ||
##INFO=<ID=DP,Number=1,Type=Integer,Description="Approximate read depth; some reads may have been filtered"> | ||
##INFO=<ID=DoC,Number=1,Type=Integer,Description="Filtered Depth"> | ||
##INFO=<ID=HomopolymerRun,Number=1,Type=Integer,Description="Largest Contiguous Homopolymer Run of Variant Allele In Either Direction"> | ||
##INFO=<ID=MAPQ0,Number=1,Type=Integer,Description="Total Mapping Quality Zero Reads"> | ||
##INFO=<ID=NS,Number=1,Type=Float,Description="Number of samples"> | ||
##INFO=<ID=RMSMAPQ,Number=1,Type=Float,Description="RMS Mapping Quality"> | ||
##INFO=<ID=SB,Number=1,Type=Float,Description="Strand bias"> | ||
##INFO=<ID=SpanningDeletions,Number=1,Type=Integer,Description="No spanning deletions"> | ||
##reference=human_b36_both.fasta | ||
##source=UnifiedGenotyper | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA11894 | ||
1 10020408 . C A 57.15 . AC=1;AF=0.500;AFrange=0.01-0.11,95%;AN=2;AlleleBalance=0.73;DoC=179;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=174.11;SB=-0.02;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020416 . G A,T 40.12 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.10,95%;AN=2;AlleleBalance=0.73;DoC=166;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=176.69;SB=-0.01;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020453 . G A,T 48.53 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.12,95%;AN=2;AlleleBalance=0.70;DoC=133;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=168.40;SB=-0.02;SpanningDeletions=0 GT:GQ 1/0:2 | ||
1 10020464 . G T 74.83 . AC=1;AF=0.500;AFrange=0.01-0.13,95%;AN=2;AlleleBalance=0.74;DoC=152;HomopolymerRun=1;MAPQ0=0;NS=60;RMSMAPQ=170.06;SB=-0.04;SpanningDeletions=0 GT:GQ 0/1:3 | ||
1 10020470 . A G,T 91.66 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.13,95%;AN=2;AlleleBalance=0.70;DoC=182;HomopolymerRun=1;MAPQ0=0;NS=60;RMSMAPQ=174.37;SB=-0.25;SpanningDeletions=0 GT:GQ 0/1:2 | ||
1 10020484 . A C,T 55.89 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.09,95%;AN=2;AlleleBalance=0.76;DoC=239;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=181.59;SB=-0.03;SpanningDeletions=0 GT:GQ 0/1:2 | ||
1 10020485 . G A,T 32.66 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.08,95%;AN=2;AlleleBalance=0.75;DoC=237;HomopolymerRun=1;MAPQ0=0;NS=60;RMSMAPQ=180.16;SB=-0.02;SpanningDeletions=0 GT:GQ 1/0:1 |
25 changes: 25 additions & 0 deletions
25
...lkers/variantutils/SelectVariants/expected/testSelectVariants_DropAnnotationsSelectGQ.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,25 @@ | ||
##fileformat=VCFv4.2 | ||
##FORMAT=<ID=GQ,Number=1,Type=Integer,Description="Genotype Quality"> | ||
##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=AF,Number=A,Type=Float,Description="Allele Frequency, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AFrange,Number=2,Type=String,Description="Allele Frequency, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AN,Number=1,Type=Integer,Description="Total number of alleles in called genotypes"> | ||
##INFO=<ID=AlleleBalance,Number=1,Type=Float,Description="Allele balance"> | ||
##INFO=<ID=DP,Number=1,Type=Integer,Description="Approximate read depth; some reads may have been filtered"> | ||
##INFO=<ID=DoC,Number=1,Type=Integer,Description="Filtered Depth"> | ||
##INFO=<ID=HomopolymerRun,Number=1,Type=Integer,Description="Largest Contiguous Homopolymer Run of Variant Allele In Either Direction"> | ||
##INFO=<ID=MAPQ0,Number=1,Type=Integer,Description="Total Mapping Quality Zero Reads"> | ||
##INFO=<ID=NS,Number=1,Type=Float,Description="Number of samples"> | ||
##INFO=<ID=RMSMAPQ,Number=1,Type=Float,Description="RMS Mapping Quality"> | ||
##INFO=<ID=SB,Number=1,Type=Float,Description="Strand bias"> | ||
##INFO=<ID=SpanningDeletions,Number=1,Type=Integer,Description="No spanning deletions"> | ||
##reference=human_b36_both.fasta | ||
##source=UnifiedGenotyper | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA11894 | ||
1 10020400 . C T 30.66 . AC=1;AF=0.500;AFrange=0.01-0.09,95%;AN=2;AlleleBalance=0.72;DoC=193;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=177.45;SB=-0.02;SpanningDeletions=0 GT:GQ 0/1:1 | ||
1 10020408 . C A 57.15 . AC=1;AF=0.500;AFrange=0.01-0.11,95%;AN=2;AlleleBalance=0.73;DoC=179;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=174.11;SB=-0.02;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020416 . G A,T 40.12 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.10,95%;AN=2;AlleleBalance=0.73;DoC=166;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=176.69;SB=-0.01;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020452 . T C 32.71 . AC=1;AF=0.500;AFrange=0.01-0.12,95%;AN=2;AlleleBalance=0.70;DoC=138;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=167.20;SB=-0.03;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020485 . G A,T 32.66 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.08,95%;AN=2;AlleleBalance=0.75;DoC=237;HomopolymerRun=1;MAPQ0=0;NS=60;RMSMAPQ=180.16;SB=-0.02;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020492 . T A,G 44.35 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.09,95%;AN=2;AlleleBalance=0.68;DoC=284;HomopolymerRun=1;MAPQ0=0;NS=60;RMSMAPQ=184.59;SB=-0.04;SpanningDeletions=0 GT:GQ 1/0:1 |
25 changes: 25 additions & 0 deletions
25
...lkers/variantutils/SelectVariants/expected/testSelectVariants_DropAnnotationsSelectRD.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,25 @@ | ||
##fileformat=VCFv4.2 | ||
##FORMAT=<ID=GQ,Number=1,Type=Integer,Description="Genotype Quality"> | ||
##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=AF,Number=A,Type=Float,Description="Allele Frequency, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AFrange,Number=2,Type=String,Description="Allele Frequency, for each ALT allele, in the same order as listed"> | ||
##INFO=<ID=AN,Number=1,Type=Integer,Description="Total number of alleles in called genotypes"> | ||
##INFO=<ID=AlleleBalance,Number=1,Type=Float,Description="Allele balance"> | ||
##INFO=<ID=DP,Number=1,Type=Integer,Description="Approximate read depth; some reads may have been filtered"> | ||
##INFO=<ID=DoC,Number=1,Type=Integer,Description="Filtered Depth"> | ||
##INFO=<ID=HomopolymerRun,Number=1,Type=Integer,Description="Largest Contiguous Homopolymer Run of Variant Allele In Either Direction"> | ||
##INFO=<ID=MAPQ0,Number=1,Type=Integer,Description="Total Mapping Quality Zero Reads"> | ||
##INFO=<ID=NS,Number=1,Type=Float,Description="Number of samples"> | ||
##INFO=<ID=RMSMAPQ,Number=1,Type=Float,Description="RMS Mapping Quality"> | ||
##INFO=<ID=SB,Number=1,Type=Float,Description="Strand bias"> | ||
##INFO=<ID=SpanningDeletions,Number=1,Type=Integer,Description="No spanning deletions"> | ||
##reference=human_b36_both.fasta | ||
##source=UnifiedGenotyper | ||
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA11894 | ||
1 10020408 . C A 57.15 . AC=1;AF=0.500;AFrange=0.01-0.11,95%;AN=2;AlleleBalance=0.73;DoC=179;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=174.11;SB=-0.02;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020416 . G A,T 40.12 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.10,95%;AN=2;AlleleBalance=0.73;DoC=166;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=176.69;SB=-0.01;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020436 . A T 64.57 . AC=1;AF=0.500;AFrange=0.01-0.12,95%;AN=2;AlleleBalance=0.73;DoC=168;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=170.66;SB=-1.53;SpanningDeletions=0 GT:GQ 0/1:2 | ||
1 10020484 . A C,T 55.89 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.09,95%;AN=2;AlleleBalance=0.76;DoC=239;HomopolymerRun=0;MAPQ0=0;NS=60;RMSMAPQ=181.59;SB=-0.03;SpanningDeletions=0 GT:GQ 0/1:2 | ||
1 10020485 . G A,T 32.66 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.08,95%;AN=2;AlleleBalance=0.75;DoC=237;HomopolymerRun=1;MAPQ0=0;NS=60;RMSMAPQ=180.16;SB=-0.02;SpanningDeletions=0 GT:GQ 1/0:1 | ||
1 10020492 . T A,G 44.35 . AC=1,0;AF=0.500,0.00;AFrange=0.01-0.09,95%;AN=2;AlleleBalance=0.68;DoC=284;HomopolymerRun=1;MAPQ0=0;NS=60;RMSMAPQ=184.59;SB=-0.04;SpanningDeletions=0 GT:GQ 1/0:1 |
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.
Thanks for the cleanup!