Conversion of BSgenome format to GRanges format?
1
0
Entering edit mode
pterry • 0
@pterry-6902
Last seen 23 months ago
United States

Hello,

Can one convert a BSgenome file to GRanges format? Also, can one convert a bam file to GRanges format?

If so, how to do?

Thanks,
Philip Terry
Univ. Nebraska-Lincoln

 

bsgenome granges bam • 1.4k views
ADD COMMENT
1
Entering edit mode
@james-w-macdonald-5106
Last seen 3 hours ago
United States

Your first question doesn't really make sense. A BSgenome package contains the genome for a given species, where a GRanges object contains (at its most basic) the chromosome and location of regions of interest on the genome (where region of interest is usually something like transcripts, genes, SNPs, etc).

To convert bam to GRanges you want the Rsamtools package. See the overview vignette here:http://bioconductor.org/packages/release/bioc/vignettes/Rsamtools/inst/doc/Rsamtools-Overview.pdf

ADD COMMENT

Login before adding your answer.

Traffic: 696 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