Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • wenhuang
    Member
    • Feb 2010
    • 30

    what is a read group?

    Hi,

    I am sure this is a silly question, but what is a read group in bam files? A lane? a flow cell? a library? or any meaningful thing that can group reads together?

    Thanks!

    Wen
  • danielsbrewer
    Member
    • Feb 2009
    • 35

    #2
    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

    Comment

    • rskr
      Senior Member
      • Oct 2010
      • 249

      #3
      I define the term read-group as a set of reads that are the result of the exact same wet lab protocol, from isolation of samples to attached barcodes and indexing. Informally I use the term read-group when referring to a GaIIx lane or HiSeq index.

      Do they use that same convention?

      Comment

      • weeseda
        Junior Member
        • Dec 2011
        • 5

        #4
        I've checked out the samtools man and other documents, but I'm still confussed on the read group line.

        I am looking at 3 populations each of 8 individuals and want to do some SNP calling and downstream analysis. All 24 individuls were barcoded and run in one illumina lane.

        To keep track of individuals and populations how would I set up the readgroup line? RG= population name and SM= individual (as below)? or is it even possible to keep track of both?

        Thanks in advance for any insight!

        rg.txt file for use with following command: samtools merge -rh rg.txt merged.bam *.bam

        @RG ID:Pop1 SM:27861 PL:Illumina
        @RG ID:Pop1 SM:27862 PL:Illumina
        @RG ID:Pop2 SM:27863 PL:Illumina
        @RG ID:Pop2 SM:27864 PL:Illumina
        @RG ID:Pop3 SM:27865 PL:Illumina
        @RG ID:Pop3 SM:27866 PL:Illumina
        .
        .
        .

        Comment

        • kmcarr
          Senior Member
          • May 2008
          • 1181

          #5
          Originally posted by weeseda View Post
          I've checked out the samtools man and other documents, but I'm still confussed on the read group line.

          I am looking at 3 populations each of 8 individuals and want to do some SNP calling and downstream analysis. All 24 individuls were barcoded and run in one illumina lane.

          To keep track of individuals and populations how would I set up the readgroup line? RG= population name and SM= individual (as below)? or is it even possible to keep track of both?

          Thanks in advance for any insight!

          rg.txt file for use with following command: samtools merge -rh rg.txt merged.bam *.bam

          Code:
          @RG	ID:Pop1	SM:27861	PL:Illumina
          @RG	ID:Pop1	SM:27862	PL:Illumina
          @RG	ID:Pop2	SM:27863	PL:Illumina
          @RG	ID:Pop2	SM:27864	PL:Illumina
          @RG	ID:Pop3	SM:27865	PL:Illumina
          @RG	ID:Pop3	SM:27866	PL:Illumina
          .
          .
          .
          Each read group you define must have a unique ID. Your example does not, it uses each ID (Pop1, Pop2, Pop3) twice. Try something like this:

          Code:
          @RG	ID:1	SM:Pop1-27861	PL:Illumina
          @RG	ID:2	SM:Pop1-27862	PL:Illumina
          @RG	ID:3	SM:Pop2-27863	PL:Illumina
          @RG	ID:4	SM:Pop2-27864	PL:Illumina
          @RG	ID:5	SM:Pop3-27865	PL:Illumina
          @RG	ID:6	SM:Pop3-27866	PL:Illumina

          Comment

          • fhtyert
            Junior Member
            • Jun 2022
            • 1

            #6
            Great work!



            basket random

            Comment

            Latest Articles

            Collapse

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 06-05-2026, 10:09 AM
            0 responses
            13 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-04-2026, 08:59 AM
            0 responses
            24 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-02-2026, 12:03 PM
            0 responses
            28 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-02-2026, 11:40 AM
            0 responses
            22 views
            0 reactions
            Last Post SEQadmin2  
            Working...