Description Usage Arguments Value Examples
View source: R/build_annotations.R
Create a GRanges
object consisting of all the desired annotations
. Supported annotation codes are listed by builtin_annotations()
. The basis for enhancer annotations are FANTOM5 data, the basis for CpG related annotations are CpG island tracks from AnnotationHub
, and the basis for genic annotations are from the TxDb.*
and org.db
group of packages.
1 | build_annotations(genome, annotations)
|
genome |
The genome assembly. |
annotations |
A character vector of annotations to build. Valid annotation codes are listed with |
A GRanges
object of all the annotations
combined. The mcols
are id, tx_id, gene_id, symbol, type
. The id
column is a unique name, the tx_id
column is either a UCSC knownGene transcript ID (genic annotations) or a Ensembl transcript ID (lncRNA annotations), the gene_id
is the Entrez ID, the symbol
is the gene symbol from the org.*.eg.db
mapping from the Entrez ID, and the type
is of the form [genome]_[type]_[name]
.
1 2 3 4 5 | # Example with hg19 gene promoters
annots = c('hg19_genes_promoters')
annots_gr = build_annotations(genome = 'hg19', annotations = annots)
# See vignette for an example with custom annotation
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.