-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add synced reader region tests, and move no-index tests
Add some tests to exercise the --regions / --targets synced reader options. Currently this only includes tests for the chromosomes with [:-] characters in the name, but it could be expanded easily to do others. Test files have been borrowed from pull request samtools/bcftools#1938. Move the synced reader no-index tests from test-bcf-sr.pl to test.pl. The former isn't a good place for them as it gets called 10 times, but the no-index test only needs to run once. It also allows the code running the test to be simplified a bit. Also fix the exit code on test-bcf-sr.pl failure from -1 to 1. Co-authored-by: Petr Danecek <[email protected]>
- Loading branch information
1 parent
28a8082
commit e86126b
Showing
9 changed files
with
173 additions
and
59 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,9 @@ | ||
##fileformat=VCFv4.3 | ||
##FILTER=<ID=PASS,Description="All filters passed"> | ||
##reference=ref.fa | ||
##contig=<ID=1> | ||
##contig=<ID=1:1> | ||
##contig=<ID=1:1-1> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO | ||
1 1 . C T . . . | ||
1 2 . C T . . . |
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,8 @@ | ||
##fileformat=VCFv4.3 | ||
##FILTER=<ID=PASS,Description="All filters passed"> | ||
##reference=ref.fa | ||
##contig=<ID=1> | ||
##contig=<ID=1:1> | ||
##contig=<ID=1:1-1> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO | ||
1 1 . C T . . . |
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.3 | ||
##FILTER=<ID=PASS,Description="All filters passed"> | ||
##reference=ref.fa | ||
##contig=<ID=1> | ||
##contig=<ID=1:1> | ||
##contig=<ID=1:1-1> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO | ||
1:1 1 . C T . . . | ||
1:1 2 . C T . . . |
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,8 @@ | ||
##fileformat=VCFv4.3 | ||
##FILTER=<ID=PASS,Description="All filters passed"> | ||
##reference=ref.fa | ||
##contig=<ID=1> | ||
##contig=<ID=1:1> | ||
##contig=<ID=1:1-1> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO | ||
1:1 1 . C T . . . |
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.3 | ||
##FILTER=<ID=PASS,Description="All filters passed"> | ||
##reference=ref.fa | ||
##contig=<ID=1> | ||
##contig=<ID=1:1> | ||
##contig=<ID=1:1-1> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO | ||
1:1-1 1 . C T . . . | ||
1:1-1 2 . C T . . . |
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,8 @@ | ||
##fileformat=VCFv4.3 | ||
##FILTER=<ID=PASS,Description="All filters passed"> | ||
##reference=ref.fa | ||
##contig=<ID=1> | ||
##contig=<ID=1:1> | ||
##contig=<ID=1:1-1> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO | ||
1:1-1 1 . C T . . . |
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.3 | ||
##reference=ref.fa | ||
##contig=<ID=1> | ||
##contig=<ID=1:1> | ||
##contig=<ID=1:1-1> | ||
#CHROM POS ID REF ALT QUAL FILTER INFO | ||
1 1 . C T . . . | ||
1 2 . C T . . . | ||
1:1 1 . C T . . . | ||
1:1 2 . C T . . . | ||
1:1-1 1 . C T . . . | ||
1:1-1 2 . C T . . . |
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