Go Back   SEQanswers > Bioinformatics > Bioinformatics

Similar Threads
Thread Thread Starter Forum Replies Last Post
Agilent SureSelect - coverage of high GC regions NGSfan Genomic Resequencing 28 11-07-2011 02:13 PM
Dindel SAM/BAM format - viewing with IGV EHC General 0 10-06-2011 11:27 AM
"coverage" of introns, intergenic regions for RNASEQ PFS Bioinformatics 2 09-07-2011 02:51 PM
downsampling high coverage regions in SAGs novi Bioinformatics 0 06-30-2011 02:28 AM
bam to coverage jay2008 Bioinformatics 0 01-23-2011 04:37 PM

Thread Tools
Old 01-09-2012, 12:32 PM   #1
Senior Member
Location: USA

Join Date: Jan 2011
Posts: 105
Default When viewing a BAM, can you specify regions of a certain coverage?

Does anyone know of a tool to view only regions of a BAM with specific coverage? Ideally, it would constrain the coverage using either a max or min
oiiio is offline   Reply With Quote
Old 01-09-2012, 12:39 PM   #2
Senior Member
Location: San Diego

Join Date: May 2008
Posts: 912

You could make a pileup, which would have the depth at every point. Then some kind of script to make a .bed file of all those windows you wanted, and you can apply the .bed file to the .bam with samtools view to get a .bam just at those coordinates.

You could probably use BEDTools to do much of that. I'm not sure there's an easier way.
swbarnes2 is offline   Reply With Quote
Old 01-10-2012, 06:43 AM   #3
Jim Robinson
Location: Boston, MA

Join Date: May 2009
Posts: 75

Elaborating on this just a little... After creating the bed you can load both the bed and the BAM into IGV. Then click on the name panel over the bed track, and use ctrl-f to skip from one region to the next.
Jim Robinson is offline   Reply With Quote
Old 01-10-2012, 07:59 AM   #4
Senior Member
Location: Kansas City

Join Date: Mar 2008
Posts: 197

I think you could use genomeCoverageBed from bedtools for the first step. I know you could do the second part in R quite easily, but it would take me awhile to figure that one out. Once you have a bed file you could use intersectBed to get a bam just with those coords.
mgogol is offline   Reply With Quote

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 07:47 PM.

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