Skip to content

feat(alphafold): add custom jackhmmer save directory option (#49)#234

Draft
Elarwei001 wants to merge 2 commits into
scverse:devfrom
Elarwei001:feature/alphafold-jackhmmer-savedir-49
Draft

feat(alphafold): add custom jackhmmer save directory option (#49)#234
Elarwei001 wants to merge 2 commits into
scverse:devfrom
Elarwei001:feature/alphafold-jackhmmer-savedir-49

Conversation

@Elarwei001

Copy link
Copy Markdown
Contributor

Resolves #49

Summary

gget alphafold: Added a new jackhmmer_savedir argument (-jhd/--jackhmmer_savedir on the command line) that lets you choose where the temporary jackhmmer files are stored. By default, gget alphafold still creates a ~/tmp/jackhmmer/ folder in your home directory (which can take up to ~2 GB of disk space); the new argument lets you redirect these files elsewhere, e.g. to a disk with more free space. Resolves issue 49.

Testing

Unit tests in tests/test_alphafold.py (argument/path-handling level, since AlphaFold's heavy deps are unavailable in CI); run with pytest.

Add a jackhmmer_savedir parameter (Python) / -jhd, --jackhmmer_savedir
flag (CLI) to gget alphafold so users can choose where the temporary
jackhmmer files (~2 GB) are stored instead of the hardcoded
~/tmp/jackhmmer/ folder in the home directory.

The new get_jackhmmer_dir() helper centralizes the path resolution and
clean_up() now operates on the resolved directory. Default behavior is
unchanged (backward compatible).

Resolves scverse#49.

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

❌ Patch coverage is 71.42857% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.50%. Comparing base (5cf607f) to head (c740deb).
⚠️ Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
gget/gget_alphafold.py 71.42% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #234      +/-   ##
==========================================
+ Coverage   56.14%   56.50%   +0.36%     
==========================================
  Files          29       29              
  Lines        9244     9252       +8     
==========================================
+ Hits         5190     5228      +38     
+ Misses       4054     4024      -30     

☔ 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 a network-free test for the clean_up(None) default-directory branch:
it patches get_jackhmmer_dir so the None default resolves to a temporary
folder (never the real ~/tmp) and asserts clean_up() resolves and removes
it. Covers the previously-uncovered default-resolution line.

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