feat(ucsc): add gget ucsc module to fetch UCSC IDs (#18)#233
Draft
Elarwei001 wants to merge 2 commits into
Draft
feat(ucsc): add gget ucsc module to fetch UCSC IDs (#18)#233Elarwei001 wants to merge 2 commits into
Elarwei001 wants to merge 2 commits into
Conversation
New module `gget ucsc` searches the UCSC Genome Browser REST API for a gene symbol, accession, or term and returns the matching UCSC identifiers (e.g. known gene / transcript IDs) with their genomic positions, grouped by track — analogous to gget search for Ensembl. Supports filtering by genome, track, and limit. Exposed via the Python API and the command line. 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 #233 +/- ##
==========================================
+ Coverage 56.14% 56.49% +0.34%
==========================================
Files 29 30 +1
Lines 9244 9320 +76
==========================================
+ Hits 5190 5265 +75
- Misses 4054 4055 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Add network-free mocked tests for empty search_term, _parse_position no-range branch, verbose logging, request-exception handling, and the save CSV/JSON branches. gget_ucsc.py now 100%. 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 #18
Summary
gget ucsc: New module to fetch UCSC Genome Browser IDs for a gene or term, analogous togget searchfor Ensembl. Searches the UCSC Genome Browser for a symbol/accession/term and returns the matching identifiers (e.g. UCSC known gene / transcript IDs) with their genomic positions, grouped by track; supports filtering bygenome,track, andlimit. Available in the Python API and on the command line. Resolves issue 18.Testing
Unit tests in
tests/test_ucsc.pywith fixturetests/fixtures/test_ucsc.json; run with pytest.