toDataframe | R Documentation |
Transforms a GRanges
object or a data.frame
containing a region set into a data.frame
.
toDataframe(A, stranded=FALSE)
A |
a |
stranded |
(only used when A is a |
If the oject is of class data.frame
, it will be returned untouched.
A data.frame
with the regions in A. If A was a GRanges
object, the output will include any metadata present in A.
toGRanges
A <- data.frame(chr=1, start=c(1, 15, 24), end=c(10, 20, 30), x=c(1,2,3), y=c("a", "b", "c"))
A2 <- toGRanges(A)
toDataframe(A2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.