rtracklayer /GRange object to BED format?
2
0
Entering edit mode
Vang Le ▴ 80
@vang-le-6690
Last seen 3.9 years ago
Denmark

What is a quick way to convert the `cpgcano` object below to a data.frame that is BED6 format? I need to write out this BED6 format to work with tools outside R. Thanks

 

library(rtracklayer)
session <- browserSession()
genome(session) <- "rn6"
cpg <- session[["CpG Islands"]]
methods(class = class(cpg))
cpgcano <- keepStandardChromosomes(cpg)
granges rtracklayer • 2.8k views
ADD COMMENT
0
Entering edit mode
Vang Le ▴ 80
@vang-le-6690
Last seen 3.9 years ago
Denmark

Well. as.data.frame(cpgcano) give almost what I want. I bit of more adjustment will do. Consider case close.
 

ADD COMMENT
0
Entering edit mode
@michael-lawrence-3846
Last seen 2.3 years ago
United States
You probably want export ()
ADD COMMENT

Login before adding your answer.

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