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

Fix description #344

Merged
merged 12 commits into from
Apr 16, 2024
Merged

Fix description #344

merged 12 commits into from
Apr 16, 2024

Conversation

MatBarba
Copy link
Contributor

This PR contains an important fix to properly use the "description" field instead of only "product" or "Name". Now the "description" is used by default, with a fallback to "product". The "Name" is now only stored as synonym.

Also included:

  • Better informative check, with a check of all parent IDs
  • Additional tests

Previous version used only "product" instead of also checking "description". Also used "Name" as fall back as well.
New version takes "description" first, falls back to "product", and do not use "Name" for the description ("Name" is already stored as a synonym).
Copy link
Contributor

@JAlvarezJarreta JAlvarezJarreta left a comment

Choose a reason for hiding this comment

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

Code looks good, just a couple of comments/edits/requests.

src/python/ensembl/io/genomio/gff3/extract_annotation.py Outdated Show resolved Hide resolved
src/python/ensembl/io/genomio/gff3/extract_annotation.py Outdated Show resolved Hide resolved
src/python/ensembl/io/genomio/gff3/extract_annotation.py Outdated Show resolved Hide resolved
src/python/ensembl/io/genomio/gff3/extract_annotation.py Outdated Show resolved Hide resolved
src/python/tests/gff3/test_extract_annotation.py Outdated Show resolved Hide resolved
src/python/tests/gff3/test_extract_annotation.py Outdated Show resolved Hide resolved
src/python/tests/gff3/test_extract_annotation.py Outdated Show resolved Hide resolved
@MatBarba MatBarba merged commit c676c86 into main Apr 16, 2024
1 check passed
@MatBarba MatBarba deleted the mbarba/descriptions_fix branch April 16, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants