Skip to content

Commit

Permalink
test: Add example BED file with Agilent-style 2-line header
Browse files Browse the repository at this point in the history
Unit test to read it with `read_auto`.
  • Loading branch information
etal committed Feb 22, 2022
1 parent 3dd9110 commit 0a5c0eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/formats/agilent.bed
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
browser position chr1:69091-70008
track name="Target Regions" description="Agilent SureSelect DNA - SureSelect Exome V7" color=0,0,128 db=hg38
chr1 69090 70008
chr1 160786623 160786747
chr2 29415994 29416295
chr2 29416295 29416596
chr2 29416596 29416897
chr2 29419567 29419830
chr2 29420327 29420675
chr2 29429995 29430239
chr2 29432543 29432864
chr2 29436737 29437014
chr2 29443528 29443751
1 change: 1 addition & 0 deletions test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def test_empty(self):

def test_read_auto(self):
for fname, nrows in (("formats/empty", 0),
("formats/agilent.bed", 11),
("formats/amplicon.bed", 1433),
("formats/amplicon.text", 1433),
("formats/nv2_baits.interval_list", 6809),
Expand Down

0 comments on commit 0a5c0eb

Please sign in to comment.