SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
read group: GATK or BWA option? m_elena_bioinfo Bioinformatics 9 12-09-2012 10:53 AM
Read group and mpileup adrian Bioinformatics 1 03-17-2011 01:34 PM
read group in SAM format yinshe Bioinformatics 2 02-11-2011 04:14 AM
Adding read group and Platform information sbaheti Bioinformatics 2 09-25-2010 11:47 AM
Read Group comorado Bioinformatics 3 05-06-2010 09:36 AM

Reply
 
Thread Tools
Old 09-28-2011, 07:18 AM   #1
wenhuang
Member
 
Location: Raleigh, NC

Join Date: Feb 2010
Posts: 30
Default 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
wenhuang is offline   Reply With Quote
Old 09-28-2011, 08:46 AM   #2
danielsbrewer
Member
 
Location: UK

Join Date: Feb 2009
Posts: 33
Default

http://seqanswers.com/forums/showthread.php?t=4994
danielsbrewer is offline   Reply With Quote
Old 09-28-2011, 03:25 PM   #3
rskr
Senior Member
 
Location: Santa Fe, NM

Join Date: Oct 2010
Posts: 250
Default

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?
rskr is offline   Reply With Quote
Old 04-02-2014, 10:39 AM   #4
weeseda
Junior Member
 
Location: Alabama, US

Join Date: Dec 2011
Posts: 5
Default

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
.
.
.
weeseda is offline   Reply With Quote
Old 04-03-2014, 06:46 AM   #5
kmcarr
Senior Member
 
Location: USA, Midwest

Join Date: May 2008
Posts: 1,178
Default

Quote:
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
kmcarr is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 11:34 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO