Skip to content

Support configurable genome directory via genomes_dir and GRELU_GENOMES_DIR#186

Merged
avantikalal merged 2 commits intoGenentech:mainfrom
LiudengZhang:feat/configurable-genome-dir
Mar 25, 2026
Merged

Support configurable genome directory via genomes_dir and GRELU_GENOMES_DIR#186
avantikalal merged 2 commits intoGenentech:mainfrom
LiudengZhang:feat/configurable-genome-dir

Conversation

@LiudengZhang
Copy link
Copy Markdown
Contributor

Closes #52.

Adds an explicit genomes_dir parameter to get_genome() so users can control where genomes are downloaded and stored. The resolution order is:

  1. genomes_dir parameter (if passed directly)
  2. GRELU_GENOMES_DIR environment variable (if set)
  3. genomepy's default (~/.local/share/genomes/)

This is useful on HPC systems where home directories have limited disk space. The parameter is passed through to genomepy.install_genome(), genomepy.Genome(), and genomepy.list_installed_genomes().

Fully backward compatible: existing code without the parameter works unchanged.

…ES_DIR

Add an explicit genomes_dir parameter to get_genome() so users can
control where genomes are downloaded. Falls back to the GRELU_GENOMES_DIR
environment variable, then to genomepy's default (~/.local/share/genomes).

This is useful on HPC systems where home directories have limited space.

Closes Genentech#52
@avantikalal avantikalal self-requested a review March 25, 2026 20:21
@avantikalal avantikalal merged commit 1680b1e into Genentech:main Mar 25, 2026
2 checks passed
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.

How to change the location of genome downloading path?

2 participants