Skip to content

Add support for a user config file#65

Open
tonykew wants to merge 1 commit intobiobakery:masterfrom
tonykew:user_config
Open

Add support for a user config file#65
tonykew wants to merge 1 commit intobiobakery:masterfrom
tonykew:user_config

Conversation

@tonykew
Copy link
Copy Markdown

@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