diff --git a/bin/fuma-gencode-gtf-to-bed b/bin/fuma-gencode-gtf-to-bed index b8eff79..c40ca77 100755 --- a/bin/fuma-gencode-gtf-to-bed +++ b/bin/fuma-gencode-gtf-to-bed @@ -27,9 +27,8 @@ def attribute_to_dict(line): if not entry: continue # value can contain spaces - key, *value = entry.split() - # Put spaces back into value - value = ' '.join(value) + key, value = entry.split(maxsplit=1) + # value can contain quotes data[key] = value.replace('"','') return data