Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Passing named pipe to samtools mpileup

    Hi all
    This is my first post here although I have been reading discussions for a while and it has helped me no end. I am trying to pass a named pipe to the samtool mpileup command but it complains of a broken pipe.

    Code:
    mkfifo input.fifo
    
    /samtools mpileup -EDSgu -d 5000 -f /Homo_sapiens.GRCh37.73.dna.primary_assembly.fa -L 5000 -F 0.05 input.fifo -> /Variants.vcf &
    
    /samtools view -bq 20 -F 1796 /bamfile.bam | tee input.fifo | /samtools mpileup -EDS -d 5000 -f /Homo_sapiens.GRCh37.73.dna.primary_assembly.fa -L 5000 -F 0.05 -> /testmpileup.txt
    
    
    The Output shows the following error
    Running tool: Run command
    
    
    
    tee: input.fifo: Broken pipe
    [bam_header_read] EOF marker is absent. The input is probably truncated.
    [mpileup] 1 samples in 1 input files
    <mpileup> Set max per-file depth to 8000

    I get the data being piped in as expected after the 'tee' command and the testmpilup.txt file is populated but when I pass the named pipe ie 'input.fifo' to the mpileup command, I get a Broken pipe error message and the Variants.vcf file is not populated. I know I can pass the command twice for samtools view and I probably won't lose that much processing time but I successfully implemented this approach on another part of my pipeline but wondered why I can't do the same here.

    Any ideas?

Latest Articles

Collapse

  • seqadmin
    Essential Discoveries and Tools in Epitranscriptomics
    by seqadmin




    The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
    04-22-2024, 07:01 AM
  • seqadmin
    Current Approaches to Protein Sequencing
    by seqadmin


    Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
    04-04-2024, 04:25 PM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, Today, 08:47 AM
0 responses
10 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-11-2024, 12:08 PM
0 responses
60 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-10-2024, 10:19 PM
0 responses
57 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-10-2024, 09:21 AM
0 responses
53 views
0 likes
Last Post seqadmin  
Working...
X