Signac (version 1.13.0)

StringToGRanges: String to GRanges

Description

Convert a genomic coordinate string to a GRanges object

Usage

StringToGRanges(regions, sep = c("-", "-"), ...)

Value

Returns a GRanges object

Arguments

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 makeGRangesFromDataFrame

Examples

Run this code
regions <- c('chr1-1-10', 'chr2-12-3121')
StringToGRanges(regions = regions)

Run the code above in your browser using DataLab