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

Empty resulting fastq files after fastq-sample #15

Open
ingkebil opened this issue Oct 8, 2015 · 1 comment
Open

Empty resulting fastq files after fastq-sample #15

ingkebil opened this issue Oct 8, 2015 · 1 comment

Comments

@ingkebil
Copy link

ingkebil commented Oct 8, 2015

I'm running fastq-sample from the current HEAD like this:

./src/fastq-sample -n 10000 -o downsampled -s 12345 <(zcat *_1.fastq.gz) <(zcat *_2.fastq.gz)

And I get two empty fastq files as a result. Might there be a problem with using process substitution here?

@ingkebil
Copy link
Author

ingkebil commented Oct 9, 2015

I've tested this out with intermediate files instead of process substitution and that seems to work like a charm.

After digging into the code a bit, my suspicion is the use of fastq_rewind which in turn uses rewind to go back to the start of the FILE. This is not something that is possible in a stream.
I had expected fastq-sample to throw an error on that tho.

So I guess that's that. I'll have to use intermediate files.

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