View source: R/peaksToGRanges.R
peaksToGRanges | R Documentation |
Wrapper function for makeGrangesFromDataFrame() from the GenomicRanges package to build GRanges objects from character list of chromosomal regions because this is a common format to receive peak information.
peaksToGRanges(region_list, sep)
region_list |
character list or vector of chromosomal regions/peaks in form chromosomenumber(sep)start(sep)end eg. Chr1-345678-398744 |
sep |
separator between information pieces of string (conventionally "-" or ".") |
GRanges corrsponding to input list of region information
If region_list is a dataframe you should use the GenomicRanges function makeGRangesFromDataFrame which this function applies
data(schepPeaks)
schepGranges = peaksToGRanges(schepPeaks, sep = "-")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.