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

line-buffered output #11

Closed
tolot27 opened this issue Jul 9, 2018 · 2 comments
Closed

line-buffered output #11

tolot27 opened this issue Jul 9, 2018 · 2 comments

Comments

@tolot27
Copy link
Contributor

tolot27 commented Jul 9, 2018

Currently, taxonkit uses xopen fully buffered output writers. Would it be possible to use at least a line-buffered writer? Grep does this by an additional parameter --line-buffered.
The rationale behind this request is the piping of BLASTs tabular output. BLAST is line-buffered and I can process hits as they "appear" but not with taxonkit. Long-running BLAST jobs piped to taxonkit will produce the output only if a lot of hits "appear", regardless of the Linux tools unbuffer or stdbuf -oL.

@shenwei356
Copy link
Owner

shenwei356 commented Jul 9, 2018

oh, it's easy, will do it tonight.

shenwei356 added a commit that referenced this issue Jul 9, 2018
@shenwei356
Copy link
Owner

try this: v0.2.5-dev with flag --line-buffered to disable output buffering.

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