Nothing
#' Convert Granges object to dataframe
#'
#' Convert a Granges object with meta data GC content to a object of class data
#' frame
#' @name geneViz_Granges2dataframe
#' @param gr A Granges object to convert to data frame
#' @return Object of class data frame
#' @importFrom IRanges ranges
#' @importFrom GenomicRanges mcols
#' @noRd
geneViz_Granges2dataframe <- function(gr)
{
# extract the relevant data and bind together as a data frame
range <- as.data.frame(IRanges::ranges(gr))
meta <- as.data.frame(GenomicRanges::mcols(gr))
genomic_data <- cbind(range, meta)
# subset and return the desired output
genomic_data <- genomic_data[,c('start', 'end', 'GC', 'width', 'txname')]
return(genomic_data)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.