gr.string: Return UCSC style interval string corresponding to 'GRanges'...

View source: R/gUtils.R

gr.stringR Documentation

Return UCSC style interval string corresponding to GRanges pile (ie chr:start-end)

Description

Return UCSC style interval string corresponding to GRanges pile (ie chr:start-end)

Usage

gr.string(
  gr,
  add.chr = FALSE,
  mb = FALSE,
  round = 3,
  other.cols = c(),
  pretty = FALSE
)

Arguments

gr

GRanges pile to get intervals from

add.chr

boolean Flag to prepend seqnames with "chr" (default = FALSE)

mb

boolean Flag to round to the nearest megabase (default = FALSE)

round

integer If mb supplied, the number of digits to round to. (default = 3)

other.cols

character vector Names of additional mcols fields to add to the string (seperated by ";")

pretty

boolean Flag to output interval string in more readable format

Value

UCSC style interval string corresponding to GRanges pile

Author(s)

Marcin Imielinski

Examples

gr.string(example_genes, other.cols = c("name", "name2"))

mskilab/gUtils documentation built on June 6, 2023, 12:08 a.m.