Skip to content

Commit

Permalink
ignore blank line in bed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tong-Chen committed Nov 18, 2023
1 parent a280f7f commit 1e1fbd2
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 1e1fbd2

Please sign in to comment.