Skip to content

Commit f8de1ed

Browse files
committed
Add test for #2526
1 parent da315c5 commit f8de1ed

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

test/annotate.pipes.1.out

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
##fileformat=VCFv4.2
2+
##FILTER=<ID=PASS,Description="All filters passed">
3+
##contig=<ID=1>
4+
##INFO=<ID=SRC,Number=.,Type=String,Description="">
5+
##INFO=<ID=II,Number=1,Type=Integer,Description="">
6+
##INFO=<ID=FF,Number=1,Type=Float,Description="">
7+
#CHROM POS ID REF ALT QUAL FILTER INFO
8+
1 123456 . C CT . . SRC=chr5|123456|C|A,CT,G|2;FF=1.1;II=111
9+
1 123456 . C CT . . SRC=chr5|123456|C|A,CT,G|2;FF=1.1;II=111

test/annotate.pipes.2.out

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
##fileformat=VCFv4.2
2+
##FILTER=<ID=PASS,Description="All filters passed">
3+
##contig=<ID=1>
4+
##INFO=<ID=SRC,Number=.,Type=String,Description="">
5+
##INFO=<ID=II,Number=1,Type=Integer,Description="">
6+
##INFO=<ID=FF,Number=1,Type=Float,Description="">
7+
#CHROM POS ID REF ALT QUAL FILTER INFO
8+
1 123456 . C CT . . SRC=chr5|123456|C|A,CT,G|2;FF=1.1;II=111
9+
1 123456 . C CT . . SRC=chr5|123457|TA|AA,CA,TGA|3;FF=2.2;II=222

test/annotate.pipes.tab

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
1 123456 C CT chr5|123456|C|A,CT,G|2 1.1 111
2+
1 123456 C CT chr5|123457|TA|AA,CA,TGA|3 2.2 222

test/annotate.pipes.vcf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
##fileformat=VCFv4.2
2+
##contig=<ID=1>
3+
##INFO=<ID=SRC,Number=.,Type=String,Description="">
4+
##INFO=<ID=II,Number=1,Type=Integer,Description="">
5+
##INFO=<ID=FF,Number=1,Type=Float,Description="">
6+
#CHROM POS ID REF ALT QUAL FILTER INFO
7+
1 123456 . C CT . . SRC=chr5|123456|C|A,CT,G|2
8+
1 123456 . C CT . . SRC=chr5|123457|TA|AA,CA,TGA|3

test/test.pl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,8 @@
565565
run_test(\&test_vcf_sort,$opts,in=>'sort',out=>'sort.out',args=>q[-m 0],fmt=>'%CHROM\\t%POS\\t%REF,%ALT\\n');
566566
run_test(\&test_vcf_sort,$opts,in=>'sort',out=>'sort.out',args=>q[-m 1000],fmt=>'%CHROM\\t%POS\\t%REF,%ALT\\n');
567567
run_test(\&test_vcf_regions,$opts,in=>'regions');
568+
run_test(\&test_vcf_annotate,$opts,in=>'annotate.pipes',tab=>'annotate.pipes',out=>'annotate.pipes.1.out',args=>q[-c CHROM,POS,REF,ALT,SRC,FF,II]);
569+
run_test(\&test_vcf_annotate,$opts,in=>'annotate.pipes',tab=>'annotate.pipes',out=>'annotate.pipes.2.out',args=>q[-c CHROM,POS,REF,ALT,SRC,FF,II -k -i 'SRC={SRC}']);
568570
run_test(\&test_vcf_annotate,$opts,in=>'annotate.AR',tab=>'annotate.AR',out=>'annotate.AR.1.out',args=>q[-c CHROM,POS,REF,ALT,+INFO/IA,+INFO/FA,+INFO/IR,+INFO/FR]);
569571
run_test(\&test_vcf_annotate,$opts,in=>'annotate.AR',tab=>'annotate.AR',out=>'annotate.AR.2.out',args=>q[-c CHROM,POS,REF,ALT,INFO/IA,INFO/FA,INFO/IR,INFO/FR]);
570572
run_test(\&test_vcf_annotate,$opts,in=>'annotate.int.dst',vcf=>'annotate.int.src',out=>'annotate.int.1.out',args=>q[-c +INFO/IA,+INFO/IR]);

0 commit comments

Comments
 (0)