openvax / gtfparse

Parsing tools for GTF (gene transfer format) files
Apache License 2.0
108 stars 25 forks source link

Attribute parsing fix #23

Open abreschi opened 2 years ago

abreschi commented 2 years ago

Hi! Would it be possible to update the following line, please? https://github.com/openvax/gtfparse/blob/18cc0fde7498ad72c87610268f60826fd89e442b/gtfparse/attribute_parsing.py#L77

Current line and output: "test (a b c)".split(" ", 2)[:2] -> ['test', '(a']

Proposed change: parts = kv.strip().split(" ", 1) "test (a b c)".split(" ", 1) -> ['test', '(a b c)']