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
            Recent Advances in Sequencing Analysis Tools
            by seqadmin


            The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
            05-06-2024, 07:48 AM
          • 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

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 05-14-2024, 07:03 AM
          0 responses
          16 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-10-2024, 06:35 AM
          0 responses
          40 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-09-2024, 02:46 PM
          0 responses
          50 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-07-2024, 06:57 AM
          0 responses
          41 views
          0 likes
          Last Post seqadmin  
          Working...
          X