View source: R/GRanges-utils.R
uncouple | R Documentation |
Two genomic intervals that are linked are represented by a
GRanges
object where a single elemnt provides the genomic
interval of a bin and a genomic interval of a bin that it is linked
to. The latter is included in the metadata (mcols) variable
'linked.to'. This function represents every genomic interval as a
single element. Hence, a GRanges
of linked intervals with
length one would have length-two after uncoupling the bins.
uncouple(linked_bins)
linked_bins |
a |
a GRanges
object
linked <- GRanges("chr1", IRanges(1,5))
linked$linked.to <- setNames(GRanges("chr1", IRanges(10, 20)), "b")
names(linked) <- "a"
uncouple(linked)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.