Skip to contents

This function parses a genomic region string in the format "chr:start-end" into a GRanges object.

Usage

parse_region(region)

Arguments

region

A string specifying a genomic region (e.g., "chr1:1000000-2000000")

Value

A GRanges object representing the specified region

Examples

if (FALSE) { # \dontrun{
region_gr <- parse_region("chr1:1000000-2000000")
} # }