Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dietmar13
    Senior Member
    • Mar 2010
    • 107

    #1

    BBduk in process substitution or with named pipes?

    hello (brian),

    would it be possible to use bbduk as process substituion for mapping, like this.

    Code:
    mapper read1 <(bbduk.sh in1=R1.fastq.gz in2=R2.fastq.gz out1=stdout.fq out2=NULL ref=ref.fa.gz ktrim=r hdist=1) read2 <(bbduk.sh in1=R1.fastq.gz in2=R2.fastq.gz out1=NULL out2=stdout.fq ref=ref.fa.gz ktrim=r hdist=1)
    i do not want keep the trimmed fastq-files, but have to ensure pairdness. how can i repress the output of the each other read?

    or would it even work somehow with named pipes...
    Code:
    mkfifo pipe1.fq
    mkfifo pipe2.fq
    
    bbduk.sh in1=R1.fq.gz in2=R2.fq.gz out1=pipe1.fq out2=pipe2.fq ref=ref.fa.gz ktrim=r hdist=1
    
    mapper read1 <pipe1.fq read2 <pipe2.fq
    thank you,

    dietmar
  • dietmar13
    Senior Member
    • Mar 2010
    • 107

    #2
    to answer my own question: it works...

    it works as follows:

    mkfifo pipe1.fq
    mkfifo pipe2.fq

    bbduk.sh overwrite=true in1=R1_001.fastq.gz in2=R2_001.fastq.gz out1=pipe1.fq out2=pipe2.fq ref=truseq_rna.fa.gz ktrim=r hdist=1 &

    ( /home/ws/SW_install/bowtie/bowtie-1.1.1/bowtie -q -v 3 -3 0 -p 21 -a -m 100 --sam gencode19 -1 pipe1.fq -2 pipe2.fq | samtools view -Sb - > SID2158.bam ) 2> SID2158.log

    rm -f pipe1.fq
    rm -f pipe2.fq
    dietmar

    Comment

    • Brian Bushnell
      Super Moderator
      • Jan 2014
      • 2709

      #3
      I'm glad you were able to answer that yourself, as I never use named pipes

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        Doesn't bash process substitution use named pipes? It ends up that you're using them either way then, it's only a difference of 1 vs. 2 pipes.

        Comment

        • dietmar13
          Senior Member
          • Mar 2010
          • 107

          #5
          probably,

          but in the first case, bash uses (probably) named pipes internally, in the other case I set and use the named pipes (and i think this is meant with "named pipes" in bash)...

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            @dietmar13: Since you have likely tested this already, does option 1 not work as written or it does?

            Comment

            • dietmar13
              Senior Member
              • Mar 2010
              • 107

              #7
              @GenoMax

              I didn't try 1 because 2 works. in 1 trimming will be made twice (would be a real waste of resources)...

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                by SEQadmin2



                Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                ...
                10-14-2026, 09:55 AM
              • SEQadmin2
                New Genomics Technologies Take Aim at Long-Standing Limits
                by SEQadmin2


                Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                ...
                09-28-2026, 10:25 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 10-22-2026, 11:13 AM
              0 responses
              58 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-22-2026, 10:48 AM
              0 responses
              42 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              46 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              47 views
              0 reactions
              Last Post SEQadmin2  
              Working...