#' Converts a two-column data frame to an IRanges object for overlap calculations.
#'
#' @param df Data frame to convert to IR object.
makeIR <- function(df){
if(class(df)[1] == "numeric" & length(df) == 2){
df <- data.frame(df) %>% t
} else{df <- data.frame(df)}
IRanges::IRanges(df[, 1], df[, 2])
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.