dt2gr | R Documentation |
Takes as input a data.table which must have the following fields: start
, end
, strand
, seqnames
. Will throw
an error if any one of these is not present.
All of the remaining fields are added as metadata to the GRanges
.
dt2gr(dt, key = NULL, seqlengths = NULL, seqinfo = Seqinfo())
dt |
data.table or data.frame to convert to |
seqlengths |
named integer vector representing genome (default = hg_seqlengths()) |
seqinfo |
seqinfo of output GRanges object |
GRanges
object of length = nrow(dt)
converted_gr = dt2gr(data.table(start=c(1,2), seqnames=c("X", "1"), end=c(10,20), strand = c('+', '-')))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.