parseRegion: Parse a region string into chr, start, end and strand

View source: R/dna.R

parseRegionR Documentation

Parse a region string into chr, start, end and strand

Description

Parse a region string into chr, start, end and strand

Usage

parseRegion(reg)

Arguments

reg

vector of region strings in the format "chrX:123545-123324" or "chr12:1234-1236+"

Value

data.frame with one row per reg string and columns chr, start, end and strand

Examples

parseRegion(c('chr1:12345-23456','chrX:2222:3333'))
parseRegion(c('chr1:12345-23456+','chrX:2222:3333-','chrX:2222:3333*'))

sherrillmix/dnar documentation built on July 18, 2022, 10:07 p.m.