Description Usage Arguments Details Value Author(s) Examples
Annotate to genomic features
1 2 |
gr |
a |
genomic_features |
a single |
name |
names for the genomic features if there is no name in |
type |
How to calculate the values for the annotation. |
prefix |
prefix for names of the annotation columns |
... |
pass to |
It adds new columns in gr
which tell you how gr
is overlaped by genomic_features
.
Note for the annotation, strand information is ignored.
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.