Skip to content

feat(rummage): add gget rummagene and rummageo modules (#164)#230

Draft
Elarwei001 wants to merge 2 commits into
scverse:devfrom
Elarwei001:feature/rummage-164
Draft

feat(rummage): add gget rummagene and rummageo modules (#164)#230
Elarwei001 wants to merge 2 commits into
scverse:devfrom
Elarwei001:feature/rummage-164

Conversation

@Elarwei001

Copy link
Copy Markdown
Contributor

Resolves #164

Summary

gget rummagene and gget rummageo: New modules for gene set enrichment against gene sets automatically mined from PMC supplementary tables (Rummagene) and from GEO study signatures (RummaGEO). Submit a list of gene symbols to retrieve the most significantly overlapping literature/GEO gene sets (Fisher's exact test), ranked by p-value, via each service's public GraphQL API. Both share a single enrichment helper and support the limit, filter_term, json, and save options in the Python API and on the command line. Resolves issue 164.

Testing

Unit tests in tests/test_rummage.py with fixtures tests/fixtures/test_rummagene.json and tests/fixtures/test_rummageo.json; run with pytest.

New modules `gget rummagene` and `gget rummageo` query the public Rummagene
and RummaGEO GraphQL APIs for gene set enrichment against gene sets mined
from PMC supplementary tables and GEO study signatures, respectively.
Submit a list of gene symbols to retrieve the most significantly
overlapping gene sets (Fisher's exact test), ranked by p-value. Both
functions share a single `_rummage_enrich` helper and are exposed through
the Python API and the command line, with limit/filter_term/json/save
options.

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.92%. Comparing base (5cf607f) to head (5e4efb2).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #230      +/-   ##
==========================================
+ Coverage   56.14%   56.92%   +0.77%     
==========================================
  Files          29       30       +1     
  Lines        9244     9327      +83     
==========================================
+ Hits         5190     5309     +119     
+ Misses       4054     4018      -36     

☔ 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 the filter_term branch, verbose
logging, request-exception handling, and the save-to-CSV/JSON branches,
bringing gget_rummage.py to full coverage.

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