Skip to content

Restore gene and transcript metadata without opening annotation files - #436

Merged
iskandr merged 1 commit into
mainfrom
fix/435-lazy-locus-database
Oct 5, 2026
Merged

iskandr merged 1 commit into
mainfrom
fix/435-lazy-locus-database

Conversation

@iskandr

@iskandr iskandr commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Restoring a Gene or Transcript from complete locus metadata currently opens the annotation database immediately. A missing original GTF consequently blocks metadata-only deserialization and downstream Vaxrank policy replay (openvax/vaxrank#563).

Defer database resolution to the existing db access boundary, with Genome retaining normal cache/index handling and explicit missing-reference errors. Identity, coordinates, essential serialization and biological methods remain intact. This does not substitute an annotation or make annotation-dependent operations resource-free.

Regression proof: both unavailable-reference constructors failed before the change; metadata round trips now pass and annotation access still fails clearly. An actual supplied GTF exercises restored gene/transcript/exon queries and shared database caching. ./lint.sh and ./test.sh passed: 527 tests, one existing optional skip, 92% coverage. Version 2.22.2.

Closes #435.

@iskandr
iskandr merged commit bf57e82 into main Oct 5, 2026
9 checks passed
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 92.106% (+0.04%) from 92.07% — fix/435-lazy-locus-database into main

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.

Defer annotation database access when restoring Gene and Transcript metadata

2 participants