Skip to content

Fixed hmmscan path check for python envs.#92

Open
wjs20 wants to merge 1 commit intooxpig:masterfrom
wjs20:hmmscan-path-check
Open

Fixed hmmscan path check for python envs.#92
wjs20 wants to merge 1 commit intooxpig:masterfrom
wjs20:hmmscan-path-check

Conversation

@wjs20
Copy link

@wjs20 wjs20 commented Sep 2, 2024

I installed ImmuneBuilder in a conda env with anarci, the symlinked a console script to call it to my local bin, so I could use it without activating the environment. However if I call it when the environment is not active, hmmscan is not on the path, and it crashes. I added a check to see if hmmscan is on the path and if it is not, then to check the environments bin folder. This worked for me.

I added shutil and sysconfig imports. Also, I sorted the imports using isort, but they are otherwise unchanged.

@natesh-entropicdeath
Copy link

Thank you!! This worked like a charm!!

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.

2 participants