Learn R Programming

chicane (version 0.1.8)

get.id.components: get.id.components

Description

Split a segment ID in form chrN:start-end into its different components

Usage

get.id.components(id)

Arguments

id

segment ID of form chrN:start-end

Value

A character vector of length three, where the elements are chromosome, start, and end, respectively. If id is a vector, a list of the same length is returned

Examples

Run this code
# NOT RUN {
	get.id.components('chrX:6-30');
get.id.components(c('3:4-10', '22:1000-20000'))

# }

Run the code above in your browser using DataLab