SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I calculate the average coverage of genome? prs321 Bioinformatics 1 06-02-2014 06:48 PM
Average number of microRNA target sites for human genes? thejustpark Bioinformatics 2 03-11-2014 06:42 AM
Average coverage in exome sequencing. Martino Bioinformatics 0 06-18-2012 01:23 AM
How to get average coverage from BAM files? Martino Bioinformatics 2 05-11-2012 07:44 AM
How to Estimate the Average Coverage per RAD Locus fcr De novo discovery 11 02-08-2012 01:58 AM

Reply
 
Thread Tools
Old 06-18-2015, 06:54 AM   #1
cmccabe
Senior Member
 
Location: chicago

Join Date: Jul 2012
Posts: 354
Default average coverage in target regions

I am trying to get the _X coverage in a bam file for target regions in a bed.

Code:
find *bam | parallel 'bedtools coverage -hist -abam IonXpress_009_150603.bam -b epilepsy70_medex.bed | grep ^all > output.bam.hist.txt' > all.txt
The files are too large to attach but after the -abam is the bam file to use, after the -b is the terget bed to use with the baits, after the grep^all is the bedTools coverage output and the > all.txt are the results. Is there something missing? Thank you .

EDIT:
Maybe this:
Code:
coverageBed -abam IonXpress_009_150603.bam -b epilepsy70_medex.bed -counts > count.txt

Last edited by cmccabe; 06-18-2015 at 07:23 AM. Reason: added code
cmccabe 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 08:02 AM.


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