Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • misko
    Junior Member
    • Jun 2010
    • 7

    #1

    Paired read names / SAM qname format

    Hi everyone,
    I am trying to figure out what possible paired read name formats are in use and good to support for open source alignment programs. The most common paired read name format i encounter is something like the following,
    >READ_A/1
    AAAAACCCCCCC
    >READ_A/2
    TTTTTGGGGGAA
    Is this the only format used by different sequencing platforms? Are there other formats such as,
    >READ_B:1
    AAAAACCCCCCC
    >READ_B:2
    TTTTTGGGGGAA
    Also with respect to SAM format, does anyone know what the proper query name for these reads should be?
    Most aligners that I have tried seem to agree that for paired reads that end in "/1" or "/2", these last two characters are truncated to get the SAM query name.
    For example the first read pair would be reported as,
    READ_A
    But the second read pair would have two query names,
    READ_B:1 and READ_B:2 in the SAM file
    I was thinking that maybe the safest approach would be to find the largest common prefix and truncate there to get the pair read name. But I am not sure if this will always work, for example, if the read names are,
    >READ_C_Z12411/1
    AAAAACCCCCCC
    >READ_C_Z12516/2
    TTTTTGGGGGAA
    The pair read names based on largest common prefix would be,
    READ_C_Z12
    Where as most aligners would report two separate names as,
    READ_C_Z12411 and READ_Z12516
    Thanks for the help!

    Misko
  • jkbonfield
    Senior Member
    • Jul 2008
    • 146

    #2
    As you've observed, Sam QNAME isn't what traditional assemblers and viewers refer to as a read name. Instead it's really the template name - in your example qname is READ_A or READ_B. I think the automatic detection of /1 and /2 to trim down a read-name to a qname is there simply because /1 and /2 was the MAQ convention. Ideally no one should rely on this convention now.

    A common prefix is prone to error too. When dealing with fastq there's a huge variety of options:

    - 1 fastq line per template, with an implicit assumption we chop in half to get both reads (the original illumina format IIRC)

    - 1 fastq file with fwd and rev reads alternating, so they always come in pairs.

    - 2 fastq files with each end stored in its own file.

    - 1 fastq file for single-ended data. This obviously causes confusion with the first two conventions.

    Every aligner seems to want something marginally different, and fastq frankly is hopeless as a format for embedding such meta data so it's tricky for tools to work out which read layout you use without either explicit command line options or trying to "be clever". In my experience that nearly always ends up shooting you in the foot sooner or later.

    As for SAM. I'd like to see the true read suffix (or entire name if inappropriate) having a standard auxillary key:value tag to go from template names back to the original read names. Adding that and the ability to have more than 2 reads per qname and we gain the ability to use SAM for mixed assemblies with capillary finishing reads in it.

    James

    Comment

    • misko
      Junior Member
      • Jun 2010
      • 7

      #3
      Thanks for the answer, this helps clarify

      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
      27 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 10:48 AM
      0 responses
      20 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-15-2026, 10:52 AM
      0 responses
      36 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-14-2026, 05:39 AM
      0 responses
      43 views
      0 reactions
      Last Post SEQadmin2  
      Working...