gr2dt: Converts a GRanges object to data.table

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Converts a GRanges object to data.table, the columns are gonna have the same names as the GRanges fields

Usage

1
gr2dt(gr)

Arguments

gr

A GRanges object

Value

A data.table object

See Also

dt2gr

Examples

1
2
3
4
gr <- GRanges(seqnames = "chr1",
        ranges = IRanges(start = 3:10,width = 30),
        strand = "*")
gr2dt(gr)

welch16/ChIPUtils documentation built on May 28, 2017, 2:03 a.m.