Commit 093483ac authored by Cecilia SENSALARI's avatar Cecilia SENSALARI
Browse files

GFF fix: doesn't crash for empty lines

parent e37e1863
......@@ -46,8 +46,8 @@ def gff_parser(gff_file, feature='mRNA', gene_attribute='Parent'):
with open(gff_file, 'r') as f:
for i, line in enumerate(f):
# ignore comments
if line.startswith('#'):
# ignore comments and empty lines
if line.startswith('#') or line == "\n":
line = line.strip().split('\t')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment