feat(rummage): add gget rummagene and rummageo modules (#164)#230
Draft
Elarwei001 wants to merge 2 commits into
Draft
feat(rummage): add gget rummagene and rummageo modules (#164)#230Elarwei001 wants to merge 2 commits into
Elarwei001 wants to merge 2 commits into
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #164
Summary
gget rummageneandgget 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 thelimit,filter_term,json, andsaveoptions in the Python API and on the command line. Resolves issue 164.Testing
Unit tests in
tests/test_rummage.pywith fixturestests/fixtures/test_rummagene.jsonandtests/fixtures/test_rummageo.json; run with pytest.