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

Add support for a user config file #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tonykew
Copy link

@tonykew tonykew commented Feb 21, 2025

Description

If HUMAnN is installed in a directory a user does not have write access to,
this patch allowes the config file to be elsewhere, with the path set in the
environment variable: HUMAnN_CONFIG

for example:

export HUMAnN_CONFIG="/projects/databases/humann.cfg"

Copy the humann.cfg from the install tree to the above path,
then (with this environemtn variable set,) alternate locations for
the databases can be configured.
For example:

humann_config --update database_folders nucleotide /projects/databases/chocophlan
humann_config --update database_folders protein /projects/databases/uniref
humann_config --update database_folders utility_mapping /projects/databases/utility_mapping

Tested with HUMAnN versions 3.6 and 3.9

Tony

If HUMAnN is installed in a directory a user does not have write access
to, this patch allowes the config file to be elsewhere, with the path
set in the environment variable: HUMAnN_CONFIG

for example:

    export HUMAnN_CONFIG="/projects/databases/humann.cfg"

Copy the humann.cfg from the install tree to the above path, then
(with this environemtn variable set,) alternate locations for the
databases can be configured.  For example:

    humann_config --update database_folders nucleotide /projects/databases/chocophlan
    humann_config --update database_folders protein /projects/databases/uniref
    humann_config --update database_folders utility_mapping /projects/databases/utility_mapping

Tested with HUMAnN versions 3.6 and 3.9

Tony
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.

1 participant