Skip to content

feat(alliance): add gget alliance module for Alliance of Genome Resources (#162)#232

Draft
Elarwei001 wants to merge 2 commits into
scverse:devfrom
Elarwei001:feature/alliance-162
Draft

feat(alliance): add gget alliance module for Alliance of Genome Resources (#162)#232
Elarwei001 wants to merge 2 commits into
scverse:devfrom
Elarwei001:feature/alliance-162

Conversation

@Elarwei001

Copy link
Copy Markdown
Contributor

Resolves #162

Summary

gget alliance: New module to query the Alliance of Genome Resources. Pass an Alliance gene ID (e.g. HGNC:1101, MGI:109337, RGD:2219) to fetch the gene's details, or a free-text term to search genes/alleles/diseases/GO/variants/models across the member model-organism databases (selectable with category). Available in the Python API and on the command line. Resolves issue 162.

Testing

Unit tests in tests/test_alliance.py with fixture tests/fixtures/test_alliance.json; run with pytest.

…rces (scverse#162)

New module `gget alliance` queries the Alliance of Genome Resources REST
API (https://www.alliancegenome.org/). Passing an Alliance gene ID
(HGNC/MGI/RGD/ZFIN/FB/WB/SGD/...) returns that gene's details; any other
input is used as a free-text search returning matching objects of a chosen
category (gene/allele/disease/go/variant/model) across the member
model-organism databases. Exposed via the Python API and the command line.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.61%. Comparing base (5cf607f) to head (a45fbc6).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #232      +/-   ##
==========================================
+ Coverage   56.14%   56.61%   +0.46%     
==========================================
  Files          29       30       +1     
  Lines        9244     9325      +81     
==========================================
+ Hits         5190     5279      +89     
+ Misses       4054     4046       -8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Add network-free mocked tests for empty search_term, _text passthrough,
_alliance_get request-exception/404, gene-not-found, gene/search verbose
logging, and save CSV/JSON branches. gget_alliance.py now 100%.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Elarwei001 Elarwei001 marked this pull request as draft June 25, 2026 03:44
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