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

Setting the verbosity arguments #47

Open
sapoudel opened this issue Apr 20, 2021 · 3 comments
Open

Setting the verbosity arguments #47

sapoudel opened this issue Apr 20, 2021 · 3 comments
Assignees

Comments

@sapoudel
Copy link

Would it be possible to add verbosity argument to the CLI to repress writing to stdout? I am running this over many gene clusters so the outputs start to add up quickly.

Capture

@jwcodee
Copy link
Member

jwcodee commented Apr 20, 2021

Certainly, I will work on this as soon as possible.

@jwcodee jwcodee self-assigned this Apr 20, 2021
@warrenlr
Copy link

could this output not be redirected to /dev/null as a simple solution ?

@sapoudel
Copy link
Author

@warrenlr That was my first thought too. I am trying to integrate it into a larger python pipeline. With this setup, I tried redirecting it to /dev/null/ like this:

import subprocess

def run_ntcard(kmer, outfile, fasta_file):

     nt_cmd = ['ntcard', '-t', '1', '-k',  kmer, '-o', outfile, fasta_file]

     subprocess.call(nt_cmd, stdout=subprocess.DEVNULL)

Unfortunately, this only redirects the python output to DEVNULL and not the output from the called ntcard. In any case, this is more of an annoyance than anything so I would put it at pretty low priority. I assumed it would be fairly easy to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants