Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand environmental variables in GTDBTK_DATA_PATH #486

Closed
donovan-h-parks opened this issue Mar 14, 2023 · 1 comment
Closed

Expand environmental variables in GTDBTK_DATA_PATH #486

donovan-h-parks opened this issue Mar 14, 2023 · 1 comment
Labels
enhancement Proposed feature or change to GTDB-Tk.

Comments

@donovan-h-parks
Copy link
Collaborator

It appears GTDB-Tk currently treats the GTDBTK_DATA_PATH environmental variable as a string literal. This can be challenging in certain environments where the path to the GTDB-Tk reference database is best accessed via an environmental variable, e.g.:

GTDBTK_DATA_PATH =$ROOT_DB_PATH/gtdbtk/release207_v2

Can GTDB-Tk be modified so the $ROOT_DB_PATH environmental variable is expanded out. I believe this can be done with:

os.path.expandvars('$ROOT_DB_PATH/gtdbtk/release207_v2')
@donovan-h-parks donovan-h-parks added the enhancement Proposed feature or change to GTDB-Tk. label Mar 14, 2023
@pchaumeil
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Proposed feature or change to GTDB-Tk.
Projects
None yet
Development

No branches or pull requests

2 participants