Skip to content

feat(ucsc): add gget ucsc module to fetch UCSC IDs (#18)#233

Draft
Elarwei001 wants to merge 2 commits into
scverse:devfrom
Elarwei001:feature/ucsc-18
Draft

feat(ucsc): add gget ucsc module to fetch UCSC IDs (#18)#233
Elarwei001 wants to merge 2 commits into
scverse:devfrom
Elarwei001:feature/ucsc-18

Conversation

@Elarwei001

Copy link
Copy Markdown
Contributor

Resolves #18

Summary

gget ucsc: New module to fetch UCSC Genome Browser IDs for a gene or term, analogous to gget search for 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 by genome, track, and limit. Available in the Python API and on the command line. Resolves issue 18.

Testing

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

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

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.
📢 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, _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>
@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