df_for_coords: Construct a data frame of coordinate info from coordinate...

Description Usage Arguments Details Value Examples

View source: R/utils.R

Description

Construct a data frame of coordinate info from coordinate strings

Usage

1
df_for_coords(coord_strings)

Arguments

coord_strings

A list of coordinate strings (each like "chr1:500000-1000000")

Details

Coordinate strings consist of three pieces of information: chromosome, start, and stop. These pieces of information can be separated by the characters ":", "_", or "-". Commas will be removed, not used as separators (ex: "chr18:8,575,097-8,839,855" is ok).

Value

data.frame with three columns, chromosome, starting base pair and ending base pair

Examples

1
  df_for_coords(c("chr1:2,039-30,239", "chrX:28884:101293"))

cicero documentation built on Dec. 10, 2020, 2 a.m.