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

Use with fifo? #571

Open
GregTD42 opened this issue Jul 15, 2024 · 3 comments
Open

Use with fifo? #571

GregTD42 opened this issue Jul 15, 2024 · 3 comments

Comments

@GregTD42
Copy link

I would like to use fastp with input coming over a fifo. Since you're a single pass tool, it appears this should work. But no matter how I try to set things up, I get

[2024-07-15T17:46:51-0500] [ERROR] [fastp_report.sh]    
fastp_report.sh stopped at line 170. 
REASON=Input read 1 file sample.L.fifo.fastq is empty or does not exist.

Should this in fact work?

@sfchen
Copy link
Member

sfchen commented Jul 16, 2024

what's your command?

@GregTD42
Copy link
Author

fastp -i "$Input1Path" -I "$Input2Path" -w 6 -Q -A --overrepresentation_analysis >&2

The two Input?Path are fifos

@GregTD42
Copy link
Author

leftFifo="sample.L.fifo.fastq"
rightFifo="sample.R.fifo.fastq"
mkfifo "$leftFifo"
mkfifo "$rightFifo"
zcat sample_1.fastq.gz > "$leftFifo" &
zcat sample_3.fastq.gz > "$rightFifo" &
Input1Path="$leftFifo"
Input2Path="$rightFifo"

In case that's what you were asking

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