Skip to content

feat(encode): add gget encode module to query and download ENCODE data (#151)#231

Draft
Elarwei001 wants to merge 3 commits into
scverse:devfrom
Elarwei001:feature/encode-151
Draft

feat(encode): add gget encode module to query and download ENCODE data (#151)#231
Elarwei001 wants to merge 3 commits into
scverse:devfrom
Elarwei001:feature/encode-151

Conversation

@Elarwei001

Copy link
Copy Markdown
Contributor

Resolves #151

Summary

gget encode: New module to query and download data from the ENCODE project. Pass an ENCODE accession (e.g. ENCSR000AKS experiment or ENCFF000BXK file) to list its file(s) with download URLs — optionally filtered by assembly, file_format, and output_type, and downloaded with download=True — or pass a free-text term to search ENCODE objects of a given type. Available in the Python API and on the command line. Resolves issue 151.

Testing

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

Elarwei001 and others added 2 commits June 24, 2026 23:01
scverse#151)

New module `gget encode` queries the ENCODE project REST API
(https://www.encodeproject.org/). Passing an ENCODE accession (experiment
or file) returns the matching file(s) with download URLs, optionally
filtered by assembly/file_format/output_type and downloaded with
download=True; any other input is used as a free-text search returning
matching ENCODE objects of a given type. Exposed via the Python API and
the command line.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@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 (e930bb0).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #231      +/-   ##
==========================================
+ Coverage   56.14%   56.92%   +0.78%     
==========================================
  Files          29       30       +1     
  Lines        9244     9349     +105     
==========================================
+ Hits         5190     5322     +132     
+ Misses       4054     4027      -27     

☔ 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 _encode_get error/404 branches, the
output_type filter, generic-object metadata path, accession download,
search-path verbose/download warning, save CSV/JSON, and the streaming
_download_files body. gget_encode.py now fully covered.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@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