Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • BWA Not Printing QNAME in SAM File

    I am trying to align simulated single-end reads using BWA. There alignment works well, however BWA does not print the QNAME of the read. I had to write a script to manually add a '*' to the QNAME field for samtools to correctly convert the BWA SAM file to BAM.

    Is the problem me using single-end reads? Or is there a way to have BWA print out the QNAME in the SAM file?

    Here is what my FASTQ file looks like:
    Code:
    @ Sequence.1
    GACGGCAACATTCTTCCGCGGATTGGTGCCACCACGACCTG
    + 
    I@HIIHIIIHHIB<IIFII7GAIHHB6I8I=CI;,:-280:
    @ Sequence.2
    CGTCGCGCCGCGTTGTCGTTGATTCGGCCCCGGCGAACATTAACAATGGCCGCTA
    + 
    [email protected]@B,4A98:47:,:
    @ Sequence.3
    AAAGCCTTTAATTAAGGCCTTTAAATGCCCCAAACTCGCGAGCCTCCCGGC
    + 
    IIHIIIFCIIIIIIIIFIIIHIICD?E@<II,>7DH8,I,/3E1/2:22-,
    And the corresponding SAM file:
    Code:
    @SQ     SN:Simulation   LN:100000
            0       Simulation      1590    37      41M     *       0       0       GACGGCAACATTCTTCCGCGGATTGGTGCCACCACGACCTG       I@HIIHIIIHHIB<IIFII7GAIHHB6I8I=CI;,:-280:       XT:A:U  NM:i:0  X0:i:1  X1:i:0  XM:i:0  XO:i:0  XG:i:0  MD:Z:41
            0       Simulation      76014   37      55M     *       0       0       CGTCGCGCCGCGTTGTCGTTGATTCGGCCCCGGCGAACATTAACAATGGCCGCTA [email protected]@B,4A98:47:,: XT:A:U  NM:i:0  X0:i:1  X1:i:0  XM:i:0  XO:i:0  XG:i:0  MD:Z:55
            0       Simulation      60875   37      51M     *       0       0       AAAGCCTTTAATTAAGGCCTTTAAATGCCCCAAACTCGCGAGCCTCCCGGC     IIHIIIFCIIIIIIIIFIIIHIICD?E@<II,>7DH8,I,/3E1/2:22-,     XT:A:U  NM:i:0  X0:i:1  X1:i:0  XM:i:0  XO:i:0  XG:i:0  MD:Z:51
    Thanks for any help!

    ---------------------------------------------------------------------------------------------------------------------------

    The solution as GenoMax pointed out is that there is a whitespace between the '@' and the first character.
    Last edited by cscswimmer227; 12-12-2012, 09:09 AM. Reason: Solution solved

  • #2
    Is there a whitespace between the "@" and the ID of the sequence in your file?

    Comment


    • #3
      That was the problem. Thank you!

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Advancing Precision Medicine for Rare Diseases in Children
        by seqadmin




        Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
        12-16-2024, 07:57 AM
      • seqadmin
        Recent Advances in Sequencing Technologies
        by seqadmin



        Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

        Long-Read Sequencing
        Long-read sequencing has seen remarkable advancements,...
        12-02-2024, 01:49 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 12-17-2024, 10:28 AM
      0 responses
      22 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-13-2024, 08:24 AM
      0 responses
      42 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-12-2024, 07:41 AM
      0 responses
      28 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-11-2024, 07:45 AM
      0 responses
      42 views
      0 likes
      Last Post seqadmin  
      Working...
      X