make_granges_from_names: Create a Granges object from a genmic region string

View source: R/utils.R

make_granges_from_namesR Documentation

Create a Granges object from a genmic region string

Description

Given a region name such as chr22:18267969-18268249, we will create a Granges object

Usage

make_granges_from_names(names)

Arguments

names

A region name as "chr22:18267969-18268249" or a vector of region names.

Value

A GRanges

Examples

regions.names <- c("chr22:18267969-18268249","chr23:18267969-18268249")
regions.gr <- make_granges_from_names(regions.names)

TransBioInfoLab/MethReg documentation built on July 28, 2023, 9:17 p.m.