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

Allow non-exons to have bad chromosomes #4477

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

faithokamoto
Copy link
Contributor

@faithokamoto faithokamoto commented Dec 12, 2024

Some GFF3 features aren't used by default, e.g. region or other non-gene things. However, if their chromosomes aren't in the graph, that causes a program-halting error.

Changelog Entry

To be copied to the draft changelog by merger:

  • Have vg rna gracefully ignore features with bad chromosome names if they're not included in --feature-type and thus won't be parsed anyways

Description

This change moves the check for whether the chromosome is valid to after the check for whether the feature is relevant, allowing graceful ignorance when possible. The program will still error in any situation where the chromosome is important.

Some GFF3 features aren't used by default, e.g. `region` or other non-gene things. However, if their chromosomes aren't in the graph, that causes a program-halting error. This change moves the check for whether the chromosome is valid to after the check for whether the feature is relevant, allowing graceful ignorance when possible. The program will still error in any situation where the chromosome is important.
@adamnovak adamnovak merged commit 230872c into master Dec 16, 2024
2 checks passed
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