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

View source: R/utils.R

df_for_coordsR Documentation

Construct a data frame of coordinate info from coordinate strings

Description

Construct a data frame of coordinate info from coordinate strings

Usage

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

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


cole-trapnell-lab/cicero-release documentation built on May 11, 2023, 11:12 p.m.