annoDF2GR | R Documentation |
data.frame
to a GRanges
.Checks that the data.frame
has the required columns, chr
,
start
, end
, then creates a GRanges
, keeping all of the
additional columns.
## S4 method for signature 'data.frame'
annoDF2GR(anno)
anno |
An |
Extra columns are added to the elementMetadata
of the GRanges
object.
A GRanges
of the annotation.
Dario Strbenac
df <- data.frame(chr = c("chr1", "chr3", "chr7", "chr22"),
start = seq(1000, 4000, 1000),
end = seq(1500, 4500, 1000),
t = c(3.11, 0.93, 2.28, -0.18),
gc = c("High", "High", "Low", "High"))
annoDF2GR(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.