Visitar URL original
Writing fasterq-dump output as a streamable not currently possible · Issue #508 · ncbi/sra-tools · GitHub
Skip to content

Writing fasterq-dump output as a streamable not currently possible #508

Open

Description

@wwood

Hi,

With fastq-dump in --split-3 mode, the output files can be pregenerated as named pipes, which makes usage more flexible e.g. this set of code from https://github.com/ababaian/serratus/blob/abc1d649d69899727458095c5da933b9b0f4cc1a/containers/serratus-dl/run_dl-sra.sh#L26

# Outputs created by fastq-dump
FQ_1="$SRA"_1.fastq
FQ_2="$SRA"_2.fastq
FQ_3="$SRA".fastq

# Prefetch the data before processing
# This should be VERY fast, and will cause fastq-dump to have
# smoother CPU usage in the end.
prefetch $SRA 1> /dev/null

# Create some named pipes for fastq-dump to put its data into.
mkfifo "$FQ_1" "$FQ_2" "$FQ_3"
fastq-dump -X $FQMAX --split-e $SRA & pid=$!

However, the same cannot be done for fasterq-dump. If tried, the fifo files get replaced by regular files. Is there some technical reason why replacing them is necessary?

Thanks, ben

Activity

  1. wraetz commented on May 17, 2021

    @wraetz
    Contributor

    I have to look into this - to find out why.
    Even if it works - the output-files are generated as the last step.
    You will not see anything going on with the pipes - until the 'concat' step takes place.

  2. wwood commented on May 18, 2021

    @wwood
    Author

    OK, sure. Thanks.

  3. durbrow commented on Apr 25, 2025

    @durbrow
    Collaborator

    Have you tried the -A|--append option for fasterq-dump?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions