![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Per base sequence coverage from sam/bam file? | ewilbanks | Bioinformatics | 7 | 06-06-2012 01:03 PM |
Extracting 'counts' from v values | crh | Bioinformatics | 0 | 12-31-2011 09:29 AM |
Extracting reads from BAM files | alpesh | Bioinformatics | 1 | 10-12-2011 02:59 PM |
Base Quality values in BAM file | donniemarco | Bioinformatics | 2 | 06-22-2011 10:06 AM |
Base coverage from Bam | ElMichael | Bioinformatics | 4 | 12-01-2010 09:18 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: Texas Join Date: May 2010
Posts: 13
|
![]()
Experts,
I am interested in extracting base coverage and quality values for non SNP reads from a BAM file? Thanks, -Uma |
![]() |
![]() |
![]() |
#2 |
Member
Location: Raleigh, NC Join Date: Feb 2010
Posts: 30
|
![]()
pileup in samtools may be what you need.
|
![]() |
![]() |
![]() |
#4 |
Member
Location: Texas Join Date: May 2010
Posts: 13
|
![]()
Thanks for the info.
Here is what I have tried so far to view the file for a given sample: samtools view filename.bam chr:start-end For non SNP positions, I am getting the base coverage using the following command: samtools view filename.bam chr:start-end |wc -l Sometimes the actual position is missing when I grep it and ~50 bases around it are printed. My question is how can I trust the wc -l value for a position if that position itself is missing in the BAM file? Last edited by unagaswamy; 10-21-2010 at 12:37 PM. |
![]() |
![]() |
![]() |
#5 |
Member
Location: Texas Join Date: May 2010
Posts: 13
|
![]()
Hi Experts,
Can anyone tell me how to extract the base quality from the CQ field of the BAM file? I colleague of mine mentioned that every two ASCII character corresponds to the SOLiD color space. Do I take the average of every overlapping 2 or the max? Any input in this regard is gretaly appreciated! |
![]() |
![]() |
![]() |
#6 | |
Nils Homer
Location: Boston, MA, USA Join Date: Nov 2008
Posts: 1,285
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Member
Location: Texas Join Date: May 2010
Posts: 13
|
![]()
Hi nilshomer,
Thanks for the reply. We are generating SAM record only for the SNP positions which does have the base quality. I am interested in the Non-SNP positions as well and hence I'm trying to calcuate the base quality for these positions from the BAM file. -Uma |
![]() |
![]() |
![]() |
#8 |
Member
Location: Texas Join Date: May 2010
Posts: 13
|
![]()
Hi All,
I generated a raw pileup for all reference positions using the samtools. An exmaple record for a non-SNP position is below: chrY 11936864 G G 51 0 60 8 ,,.,,,.. "%`".B"` This base has a coverage of 8. Which one of these fields (51,0,60) represent the base quality in this case? I am still confused about the ABI's SOLiD base quality! Any input is greatly appreciated! |
![]() |
![]() |
![]() |
#9 |
Member
Location: Groningen Join Date: Feb 2010
Posts: 78
|
![]() |
![]() |
![]() |
![]() |
#10 |
Member
Location: Texas Join Date: May 2010
Posts: 13
|
![]()
Hi Bruins,
Thanks for this very useful link. It definitely answers some of my questions. -Uma |
![]() |
![]() |
![]() |
Thread Tools | |
|
|