Skip to content

Commit

Permalink
Allow blank lines in bed file (#607)
Browse files Browse the repository at this point in the history
* add ignore zero anchor parameter for skip no matches in batch search

* ignore blank line in bed
  • Loading branch information
Tong-Chen authored Nov 20, 2023
1 parent cd4da74 commit 5983187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jcvi/formats/bed.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def __init__(self, filename=None, key=None, sorted=True, juncs=False, include=No
return

for line in must_open(filename):
if line[0] == "#" or (juncs and line.startswith("track name")):
if line[0] == "#" or (juncs and line.startswith("track name")) or line.strip()=="":
continue
b = BedLine(line)
if include and b.accn not in include:
Expand Down

0 comments on commit 5983187

Please sign in to comment.