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

funannotate annotate uses $FUNANNOTATE_DB over -d /path/to/databases for go.obo #1059

Open
mjacksonhill opened this issue Aug 11, 2024 · 2 comments

Comments

@mjacksonhill
Copy link

Funannotate 1.8.17, discovered this issue while using a container version. If $FUNANNOTATE_DB is set to one location and the -d command line option is set to another, funannotate will look for go.obo in $FUNANNOTATE_DB instead of the location specified at the command line. (an edge case, but discovered as I migrated between conda funannotate-1.8.15 and singularity funannotate-1.8.17)

Not sure if this is intended-- my guess was it is not, since for the most part the other parts of funannotate annotate seem to prioritize the command line option.

@hyphaltip
Copy link
Collaborator

the problem is the code is buried in the library module which only parses this file at the step of writing TBL file - it would be better to set the DB path as a state variable in the library object.

There's probably more refactoring effort better put into funannotate2 right now that figuring out how to better expose this variable outside. Or else to just ensure env variable is set during the program running when -d is passed.

Will see what jon thinks.

@mjacksonhill
Copy link
Author

Totally understandable-- just wanted to put it on the record somewhere even though it's a small thing!

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

No branches or pull requests

2 participants