Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • bwa0.5.5 doesn't output SAM header??

    I just aligned some sequences with bwa0.5.5 (running under ubuntu) and when I tried to run samtools on the file it balked -- and on inspection the file lacks the sequence headers (@ lines)

    Am I mistaken that the program used to include these? Is there a command line flag to trigger inclusion?

    thanks

  • #2
    Why not use the latest version of BWA?

    anyway perhaps if you post your command and maybe what the file is SAM? BAM? I can have a better idea
    http://kevin-gattaca.blogspot.com/

    Comment


    • #3
      I'm looking at the sourceforge page http://sourceforge.net/projects/maq/files/ and BWA 0.5.0 appears to be the most recent version; am I looking at the wrong sourceforge page?

      Here is the complete shell script

      Code:
      bwa aln -t 6 hg18.fasta SRR018003_1.fastq >  SRR018003_1.fastq.sai
      bwa aln -t 6 hg18.fasta SRR018003_2.fastq >  SRR018003_2.fastq.sai
      bwa sampe hg18.fasta  SRR018003_1.fastq.sai  SRR018003_2.fastq.sai SRR018003_1.fastq  SRR018003_2.fastq > SRR018003_1.pe.sam
      samtools view -uS SRR018003_1.pe.sam |samtools sort - SRR018003.pe.sorted
      samtools complains in that last line that the input file lacks a header
      Code:
      [samopen] no @SQ lines in the header.
      [sam_read1] missing header? Abort!

      Comment


      • #4
        It's moved to its own project at http://bio-bwa.sourceforge.net/ -- perhaps Heng could make this more explicit on the maq pages.

        BWA has generated @SQ headers since 0.5.2.

        Comment


        • #5
          Break last line into two commands:

          ${SAM} view -b -S x.sam > x.bam
          ${SAM} sort -n -m 17179869184 x.bam x.sort

          Comment

          Latest Articles

          Collapse

          • seqadmin
            Genetic Variation in Immunogenetics and Antibody Diversity
            by seqadmin



            The field of immunogenetics explores how genetic variations influence immune responses and susceptibility to disease. In a recent SEQanswers webinar, Oscar Rodriguez, Ph.D., Postdoctoral Researcher at the University of Louisville, and Ruben Martínez Barricarte, Ph.D., Assistant Professor of Medicine at Vanderbilt University, shared recent advancements in immunogenetics. This article discusses their research on genetic variation in antibody loci, antibody production processes,...
            11-06-2024, 07:24 PM
          • seqadmin
            Choosing Between NGS and qPCR
            by seqadmin



            Next-generation sequencing (NGS) and quantitative polymerase chain reaction (qPCR) are essential techniques for investigating the genome, transcriptome, and epigenome. In many cases, choosing the appropriate technique is straightforward, but in others, it can be more challenging to determine the most effective option. A simple distinction is that smaller, more focused projects are typically better suited for qPCR, while larger, more complex datasets benefit from NGS. However,...
            10-18-2024, 07:11 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 11-08-2024, 11:09 AM
          0 responses
          35 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 11-08-2024, 06:13 AM
          0 responses
          28 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 11-01-2024, 06:09 AM
          0 responses
          32 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 10-30-2024, 05:31 AM
          0 responses
          23 views
          0 likes
          Last Post seqadmin  
          Working...
          X