Skip to content

Add a featureId to each annotation feature#704

Closed
garrettjstevens wants to merge 7 commits intomainfrom
feature_ids
Closed

Add a featureId to each annotation feature#704
garrettjstevens wants to merge 7 commits intomainfrom
feature_ids

Conversation

@garrettjstevens
Copy link
Copy Markdown
Contributor

IDs are often an important aspect of features, and there have been several requests for being able to manage the IDs. Currently Apollo doesn't treat a GFF3 feature ID attribute any differently from other attributes.

This PR introduces a change so that featureId is a top-level attribute of all AnnotationFeatures. That way it can be guaranteed to be singular (attribute values like the default ID one are technically arrays) and can be more easily tracked and edited. On export, this featureId is placed in the GFF3 ID attribute.

Draft for now as I still need to figure out the best way to leverage this change when doing things that potentially create/destroy IDs, like merging or splitting exons or transcripts.

@garrettjstevens
Copy link
Copy Markdown
Contributor Author

garrettjstevens commented Oct 8, 2025

Also still need to add ability to query backend by featureId

@garrettjstevens
Copy link
Copy Markdown
Contributor Author

This was an interesting idea, but just ended up changing too many things for not enough benefit. Maybe we can revisit later if we have a better use case.

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.

1 participant