simple_parse fails for gtf files containing "flat features" (lines with neither a transcript_id nor an id field). Since these are not accounted for in the if/elif statements, the else clause will be run and since assert "directive" in rec will be false, an error is raised.
I don't see a reason why the simple_parse function would not return these features, so to fix it I simply added an additional clause which yields them.
simple_parse
fails for gtf files containing "flat features" (lines with neither atranscript_id
nor anid
field). Since these are not accounted for in the if/elif statements, the else clause will be run and sinceassert "directive" in rec
will be false, an error is raised. I don't see a reason why the simple_parse function would not return these features, so to fix it I simply added an additional clause which yields them.