Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix: Handling multiple tag values #156

Merged
merged 2 commits into from
Feb 27, 2024
Merged

Bug fix: Handling multiple tag values #156

merged 2 commits into from
Feb 27, 2024

Conversation

TamaraNaboulsi
Copy link
Member

A bug was discovered in the GTF parser which doesn't handle multiple "tag" values. The GTF files might contain multiple parameters with the key "tag" (in the 9th column), and when read by the parser, each was overwritten by the next ending up with only 1 tag value. This change fixes that and instead creates an array of values if the key occurs more than once.

Note: The GFF3 files have the tags as a comma-separated list so the parser returns it that way. This change might not be completely compatible with GFF3 but I think an array displays the idea of multiple values in a clearer way.

Copy link
Contributor

@sgiorgetti sgiorgetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@sgiorgetti sgiorgetti merged commit 7ebe5f6 into main Feb 27, 2024
2 checks passed
@sgiorgetti sgiorgetti deleted the bug_fix/gtf_tag branch February 27, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants