This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to read .bam file in Rsamtools R package?

I have an accepted_hits.bam file which is from tophat output, and I need to use Rsamtools "R package" to do some analysis for the .bam file. So any one know how to read this file in R.

r

1 answer

Did you try the package vignette?

http://www.bioconductor.org/packages/2.13/bioc/vignettes/Rsamtools/inst/doc/Rsamtools-Overview.pdf

Hi Danielk, I used the Rsamtools package and I follow the the example in the pdf and it works. But I need to use my .bam file not the one provided in the pdf file. Also, I need to read all information in this file (not a portion).

Log in to answer this question.