forked from samtools/bcftools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend
annotate -l
to work with numeric types.
This allows to use the sum,avg,min,max logic, but still is not bullet proof and will fail for tags with variable number of values. Resolves samtools#1047
- Loading branch information
Showing
8 changed files
with
172 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
##fileformat=VCFv4.1 | ||
##FILTER=<ID=PASS,Description="All filters passed"> | ||
##contig=<ID=1,assembly=b37,length=249250621> | ||
##reference=file:///lustre/scratch105/projects/g1k/ref/main_project/human_g1k_v37.fasta | ||
##INFO=<ID=A,Number=1,Type=Integer,Description="Test string type"> | ||
##INFO=<ID=B,Number=1,Type=Integer,Description="Test string type"> | ||
##INFO=<ID=C,Number=1,Type=Integer,Description="Test string type"> | ||
##INFO=<ID=D,Number=1,Type=Integer,Description="Test string type"> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO | ||
1 300 . C T 59.2 PASS . | ||
1 400 . C T 59.2 PASS A=3;B=6;C=1;D=2 | ||
1 401 . C T 59.2 PASS A=3;B=6;C=1;D=2 |
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,2 @@ | ||
1 400 410 1 4 1 1 | ||
1 400 410 2 8 2 2 |
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 @@ | ||
##fileformat=VCFv4.1 | ||
##contig=<ID=1,assembly=b37,length=249250621> | ||
##reference=file:///lustre/scratch105/projects/g1k/ref/main_project/human_g1k_v37.fasta | ||
##INFO=<ID=A,Number=1,Type=Integer,Description="Test string type"> | ||
##INFO=<ID=B,Number=1,Type=Integer,Description="Test string type"> | ||
##INFO=<ID=C,Number=1,Type=Integer,Description="Test string type"> | ||
##INFO=<ID=D,Number=1,Type=Integer,Description="Test string type"> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO | ||
1 300 . C T 59.2 PASS . | ||
1 400 . C T 59.2 PASS . | ||
1 401 . C T 59.2 PASS . |
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,12 @@ | ||
##fileformat=VCFv4.1 | ||
##FILTER=<ID=PASS,Description="All filters passed"> | ||
##contig=<ID=1,assembly=b37,length=249250621> | ||
##reference=file:///lustre/scratch105/projects/g1k/ref/main_project/human_g1k_v37.fasta | ||
##INFO=<ID=A,Number=1,Type=Float,Description="Test string type"> | ||
##INFO=<ID=B,Number=1,Type=Float,Description="Test string type"> | ||
##INFO=<ID=C,Number=1,Type=Float,Description="Test string type"> | ||
##INFO=<ID=D,Number=1,Type=Float,Description="Test string type"> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO | ||
1 300 . C T 59.2 PASS . | ||
1 400 . C T 59.2 PASS A=3.3;B=1.5;C=1.1;D=2.2 | ||
1 401 . C T 59.2 PASS A=3.3;B=1.5;C=1.1;D=2.2 |
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,2 @@ | ||
1 400 410 1.1 1 1.1 1.1 | ||
1 400 410 2.2 2 2.2 2.2 |
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 @@ | ||
##fileformat=VCFv4.1 | ||
##contig=<ID=1,assembly=b37,length=249250621> | ||
##reference=file:///lustre/scratch105/projects/g1k/ref/main_project/human_g1k_v37.fasta | ||
##INFO=<ID=A,Number=1,Type=Float,Description="Test string type"> | ||
##INFO=<ID=B,Number=1,Type=Float,Description="Test string type"> | ||
##INFO=<ID=C,Number=1,Type=Float,Description="Test string type"> | ||
##INFO=<ID=D,Number=1,Type=Float,Description="Test string type"> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO | ||
1 300 . C T 59.2 PASS . | ||
1 400 . C T 59.2 PASS . | ||
1 401 . C T 59.2 PASS . |
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