Skip to content

Respect IMMU_SCOPE_WEIGHTS_DIR as first priority for determining ImmuScope weight directory - #1462

Open
susannasiebert wants to merge 1 commit into
hotfixfrom
immuscope_weights_dir
Open

Respect IMMU_SCOPE_WEIGHTS_DIR as first priority for determining ImmuScope weight directory#1462
susannasiebert wants to merge 1 commit into
hotfixfrom
immuscope_weights_dir

Conversation

@susannasiebert

Copy link
Copy Markdown
Contributor

Closes #1461

This PR needs to be merged in conjunction with griffithlab/ImmuScope#1.

Currently, the logic in resolved_immuscope_weights_dir doesn't respect/take into account IMMU_SCOPE_WEIGHTS_DIR. Instead only XDG_DATA_HOME and the default ~/.local/share'/ImmuScope/weights are used. This PR updates the logic to first look at IMMU_SCOPE_WEIGHTS_DIR. IMMU_SCOPE_WEIGHTS_DIR is already the first priority for the weights directory when running the ImmuScope predictor via the immuscope_wrapper.py . After merging in griffithlab/ImmuScope#1, this env variable will also be the first one to be used for downloading the weights.

With this change in these two PRs the IMMU_SCOPE_WEIGHTS_DIR will now be consistently respected for downloading the weights and running ImmuScope inside of pVACtools.

@susannasiebert
susannasiebert changed the base branch from master to hotfix September 8, 2026 14:06
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.

Support custom weights directory in immuscope-download-weights

1 participant