annotateEnsembl {iSEE}R Documentation

Annotation via ENSEMBL database

Description

Annotation facility for displaying additional information on selected genes, based on the data retrieved from the ENSEMBL database

Usage

annotateEnsembl(se, orgdb, keytype, rowdata_col = NULL,
  ens_species = gsub(" ", "_", species(orgdb)))

Arguments

se

An object that is coercible to SingleCellExperiment.

orgdb

An OrgDb object, as a basis for the annotation. Typical values can be org.Hs.eg.db for human, org.Mm.eg.db for mouse, and so on. The corresponding package has to be available and loaded before calling this function

keytype

The keytype that matches the IDs used in the se object. Can be one of the values of keytypes(org.XX.eg.db), typically being "SYMBOL", "ENSEMBL", or "ENTREZID"

rowdata_col

A character string, corresponding to one of the columns (if present) in rowData(se). Defaults to NULL, which corresponds to having the ids of the features as row names of the se object itself.

ens_species

Character string containing the species name, coded as in the ENSEMBL database and browser. This is for example "Homo_sapiens" for human, and "Mus_musculus" for mouse. Defaults to species(orgdb), with the whitespace replaced by underscore

Value

A function to be used as the value of the annotFun parameter of iSEE. This function itself returns a HTML tag object with the content extracted from the call, with parameteres the se object, and the row_index corresponding to the feature of interest.

Examples

library(scRNAseq)
data(allen)
sce <- as(allen, "SingleCellExperiment")
library(org.Mm.eg.db)
myfun <- annotateEnsembl(sce,org.Mm.eg.db,"SYMBOL")
myfun(sce, 4242)

# to be used when launching the app itself ----

app <- iSEE(sce, annotFun = annotateEnsembl(sce,org.Mm.eg.db,"SYMBOL"))
if (interactive()) {
  shiny::runApp(app, port = 1234)
}

[Package iSEE version 1.0.1 Index]