Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cscswimmer227
    Junior Member
    • Nov 2011
    • 4

    #1

    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
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

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

    Comment

    • cscswimmer227
      Junior Member
      • Nov 2011
      • 4

      #3
      That was the problem. Thank you!

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
        by SEQadmin2



        Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

        Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
        ...
        10-14-2026, 09:55 AM
      • SEQadmin2
        New Genomics Technologies Take Aim at Long-Standing Limits
        by SEQadmin2


        Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

        We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
        ...
        09-28-2026, 10:25 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 10-22-2026, 11:13 AM
      0 responses
      53 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 10:48 AM
      0 responses
      40 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      46 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      46 views
      0 reactions
      Last Post SEQadmin2  
      Working...