Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • stone84
    Junior Member
    • Mar 2017
    • 2

    Cpipe Test Error

    Hi to all,
    I hope that is the right place where post my issue.

    I'm using Cpipe in a qualitative analysis, for a project of my university.

    Now, after the installation, I must execute the self-test. The issue is that the test is correct until the point where it starts the "recall precision test". The pipeline executes this piece of code:

    [bam_header_read] EOF marker is absent. The input is probably truncated.
    [M::main_mem] read 509156 sequences (50000164 bp)...
    [samopen] no @SQ lines in the header.
    [sam_read1] missing header? Abort!

    Cleaned up file align/NA12878CHR22_31fc6a75c408009fd2aaf62076fe0c304fc3931a_L001.bam to .bpipe/trash/NA12878CHR22_31fc6a75c408009fd2aaf62076fe0c304fc3931a_L001.bam
    ERROR: Command failed with exit status = 1 :

    Samtools gives me this error. [samopen] no @SQ lines in the header. [sam_read1] missing header? Abort! How I can fix that?

    I know this isn't a forum about cpipe, but I have read that is a common issue of samtools.

    I use Samtools ver. 0.1.19 and WBA ver. 0.7.5a .

    Thanks for, futures, answers.
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #2
    It would probably be helpful if you could give the exact command lines you are using, describe the data you are working with, and the goal of the project. Also, the full screen output is generally much more useful that just a few lines.

    I'm not familiar with Cpipe, but it looks like you are using a bam file with no header, which is always a problem... so it's helpful to know where that bam file came from.

    Comment

    • stone84
      Junior Member
      • Mar 2017
      • 2

      #3
      set -o pipefail; /home/pmirabelli/cpipe2017/cpipe/tools/bwa/0.7.5a/bwa mem -M -t 5 -k 19 -R "@RG\tID:NA12878CHR22_L001\tPL:illumina\tPU:1\tLB:null\tSM:NA12878CHR22" /home/pmirabelli/cpipe2017/cpipe/hg19/ucsc.hg19.fasta /home/pmirabelli/cpipe2017/cpipe/batches/recall_precision_test/data/NA12878CHR22_L001_R1.fastq.gz /home/pmirabelli/cpipe2017/cpipe/batches/recall_precision_test/data/NA12878CHR22_L001_R2.fastq.gz | /home/pmirabelli/cpipe2017/cpipe/tools/samtools/0.1.19/samtools view -F 0x100 -bSu - | /home/pmirabelli/cpipe2017/cpipe/tools/samtools/0.1.19/samtools sort - align/NA12878CHR22_31fc6a75c408009fd2aaf62076fe0c304fc3931a_L001

      This is the code.

      On the Internet, some posts, suggest the -t option with the argument the FASTA file reference. The point is that I do not know from where comes this result. Also because, at that point of the code, in a precedent execution of the pipeline it gives me a right result.

      Comment

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #4
        When debugging pipelines - or, generally, when there is little advantage to doing so - I highly encourage you to write a pipeline that does not use any piping. Rather, have each stage write a file, and let the next stage wait until the file is complete before executing.

        Also, I'm not sure what this has to do with Cpipe; you're just using bwa-mem and samtools, so asking about "Cpipe" in your title is reducing the scope of potential answerers. bwa-mem and samtools are very commonly used but I've never heard of Cpipe.

        I suggest you change the code to read and write files consecutively without any piping. It's not even clear right now which samtools process is failing, since there are two of them, and they are obsolete versions. I suggest you use the latest samtools version; the -S flag, for example, is now different.

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
          by SEQadmin2



          Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
          ...
          07-09-2026, 11:10 AM
        • SEQadmin2
          Cancer Drug Resistance: The Lingering Barrier to Rising Survival
          by SEQadmin2



          Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

          There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
          07-08-2026, 05:17 AM
        • GATTACAT
          Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
          by GATTACAT
          Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
          07-01-2026, 11:43 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 07-13-2026, 10:26 AM
        0 responses
        26 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-09-2026, 10:04 AM
        0 responses
        35 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-08-2026, 10:08 AM
        0 responses
        22 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-07-2026, 11:05 AM
        0 responses
        34 views
        0 reactions
        Last Post SEQadmin2  
        Working...