granges2igv: granges2igv

View source: R/genomicRegions.R

granges2igvR Documentation

granges2igv

Description

Save a GRanges object to a IGV file

Usage

granges2igv(
  gr,
  fn,
  addStrand = FALSE,
  addAnnotCols = TRUE,
  doSort = TRUE,
  toTDF = FALSE
)

Arguments

gr

GRanges object

fn

filename to save IGV file to

addAnnotCols

add the columns stored in elementMetadata of GRanges

doSort

sort the regions before writing the output

toTDF

convert to TDF file. Requires that "igvtools" is executable from the current path

sc

score vector or column in elementMetadata of GRanges

Value

result of writing the table (see write.table)


demuellae/muRtools documentation built on Sept. 8, 2023, 4:32 p.m.