Description Usage Arguments Details Value Author(s) Examples
View source: R/genomic_region_annotation.R
Annotate genomic regions to a list of genomic features
1 2 3 |
gr |
a |
genomic_features |
a single |
name |
names for the genomic features if there is no name in |
type |
For each type of genomic features, |
prefix |
prefix for the names in the annotation columns. The column names are constructed as "$prefix_$name" |
ignore_strand |
whether ignore strand information |
... |
pass to |
It adds new columns in gr
which tell you how gr
is overlaped by genomic_features
.
A GRanges
with additional columns of annotations.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 5 6 7 8 9 | require(circlize)
df1 = generateRandomBed(nr = 1000)
df2 = generateRandomBed(nr = 1000)
df3 = generateRandomBed(nr = 1000)
gr1 = GRanges(seqnames = df1[[1]], ranges = IRanges(df1[[2]], df1[[3]]))
gr2 = GRanges(seqnames = df2[[1]], ranges = IRanges(df2[[2]], df2[[3]]))
gr3 = GRanges(seqnames = df3[[1]], ranges = IRanges(df3[[2]], df3[[3]]))
annotate_to_genomic_features(gr1, list(gr2 = gr2, gr3 = gr3))
annotate_to_genomic_features(gr1, list(gr2 = gr2, gr3 = gr3), type = "number", prefix = "#")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.