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

phigaro-setup - non-interactive setup possible? #29

Closed
rpetit3 opened this issue Nov 25, 2020 · 5 comments
Closed

phigaro-setup - non-interactive setup possible? #29

rpetit3 opened this issue Nov 25, 2020 · 5 comments

Comments

@rpetit3
Copy link

rpetit3 commented Nov 25, 2020

Hello!

Is there a built-in method to skip the "please select appropriate "x" location" prompts during setup?

...
Please select appropriate Prodigal location
[1] /local/home/rpetit/miniconda3/envs/bt-phigaro/bin/prodigal
[2] Add another path manually
Choose your option (Enter for /local/home/rpetit/miniconda3/envs/bt-phigaro/bin/prodigal):
Please select appropriate HMMER location
[1] /local/home/rpetit/miniconda3/envs/bt-phigaro/bin/hmmsearch
[2] Add another path manually
Choose your option (Enter for /local/home/rpetit/miniconda3/envs/bt-phigaro/bin/hmmsearch):
Found Prodigal in: /local/home/rpetit/miniconda3/envs/bt-phigaro/bin/prodigal
Found HMMER in: /local/home/rpetit/miniconda3/envs/bt-phigaro/bin/hmmsearch
...

Thank you!

@PollyTikhonova
Copy link
Collaborator

Not for now. Is it neccessary?

@rpetit3
Copy link
Author

rpetit3 commented Nov 25, 2020

Probably not necessary, but would be useful.

I'm building a Nextflow workflow for Phigaro using the conda build. It would be useful to just run phigaro-setup without interacting since Prodigal and HMMER will always be available.

As an alternative, if a config file is provided does it use the provided paths or also ask to verify? (I can check shortly)

@PollyTikhonova
Copy link
Collaborator

As far as I remember it does not ask to verify

@rpetit3
Copy link
Author

rpetit3 commented Nov 27, 2020

Ok, so here's what I'm doing to allow "non-interactive" setup of databases.

rm -rf .phigaro/* && printf '\n\nN\n' | phigaro-setup --no-updatedb

This would allow the database to at least be setup in a programmatic way (e.g. in a workflow).

Going to close this issue.

@rpetit3 rpetit3 closed this as completed Nov 27, 2020
@iferres
Copy link

iferres commented Mar 9, 2022

+1 for non-interactive setup

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

3 participants