View source: R/functions_fetch_signal.R
prepare_fetch_GRanges_names | R Documentation |
If $id is set, that value is used as name and duplicates are checked for.
prepare_fetch_GRanges_names(qgr, include_id = FALSE)
qgr |
input GRanges object the set/check names on |
include_id |
if TRUE, $id is retained. Default is FALSE. |
and named GRanges based on input qgr.
data(CTCF_in_10a_overlaps_gr)
qgr = CTCF_in_10a_overlaps_gr
names(qgr) = NULL
#default is to paste "region_" and iteration along length of qgr
prepare_fetch_GRanges_names(qgr)
#id gets used is already set
qgr$id = paste0("peak_", rev(seq_along(qgr)), "_of_", length(qgr))
prepare_fetch_GRanges_names(qgr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.