StringToGRanges | R Documentation |
Convert a genomic coordinate string to a GRanges object
StringToGRanges(regions, sep = c("-", "-"), ...)
regions |
Vector of genomic region strings |
sep |
Vector of separators to use for genomic string. First element is used to separate chromosome and coordinates, second separator is used to separate start and end coordinates. |
... |
Additional arguments passed to
|
Returns a GRanges object
regions <- c('chr1-1-10', 'chr2-12-3121')
StringToGRanges(regions = regions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.