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

Can I make "kat hist" read from standard input? #163

Open
IgnasiLucas opened this issue Nov 29, 2021 · 0 comments
Open

Can I make "kat hist" read from standard input? #163

IgnasiLucas opened this issue Nov 29, 2021 · 0 comments

Comments

@IgnasiLucas
Copy link

I have reads from two lanes of the flowcell in every fastq file, and there seems to be a problem in one of them. To avoid writing to and reading from new fastq files, I would like to send reads from only one lane to "kat hist" through standard input, but it does not work. To test reading ability from standard input, I have tried:

head -n 100000 sample1.fastq | kat hist -o sample1

With this error message:

src/input_handler.cc(70): Throw in function void kat::InputHandler::set5pTrim(const std::vector&)
Dynamic exception type: boost::exception_detail::clone_implkat::InputFileException
std::exception::what: std::exception
[kat::InputFileError*] = Inconsistent number of inputs and trimming settings. Please establish your inputs before trying to set trimming vector. Also ensure you have the same number of input files to trimming settings.

I have also tried with the dash:

head -n 100000 sample1.fastq | kat hist -o sample1 -

src/input_handler.cc(123): Throw in function void kat::InputHandler::validateInput()
Dynamic exception type: boost::exception_detail::clone_implkat::InputFileException
std::exception::what: std::exception
[kat::InputFileError*] = Could not find input file at: -; please check the path and try again.

And I have tried named pipes as well, which do not throw an error, but never finish:

mkfifo pipe0
head -n 100000 sample1.fastq > pipe0 &
kat hist -o sample1 pipe0
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

1 participant