Genome Coverage Using RSamTools
0
0
Entering edit mode
12 months ago

Hi guys,

Currently, I've used this manual (https://kasperdanielhansen.github.io/genbioconductor/html/Rsamtools.html) to load in my BAM file. I've gotten to the part where I'm given a list of qname, flag, etc for my very first read. On the original C samtools, there is a function called coverage that I want to do, but I am having trouble finding the code/argument to perform the same thing in Rsamtools. Any tips/links/code would be appreciated.

Thanks

Rsamtools Coverage • 536 views
ADD COMMENT
0
Entering edit mode

Are you sure you want to use Rsamtools to find coverage? The GenomicRanges library has a coverage function. If you've read in your bam file, you can convert it to a GRanges object and hand it to coverage:

aln <- as(aln,'GRanges')
cov <- coverage(aln)
ADD REPLY

Login before adding your answer.

Traffic: 1484 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6