find_symbol | R Documentation |
find gene symbol from annotation data
id |
a string for a gene id to match to gene symbol or aliases |
annotation |
a list of gene symbols named by ids such as those provided by bioconductor AnnotationDbi packages |
n |
number of symbols to list (maximum). Defaults to first. Set to Inf to display all. |
find_symbol
#load data to identify genes from IDs
if(!require("org.At.tair.db")){
install.packages("BiocManager")
BiocManager::install("org.At.tair.db")
library("org.At.tair.db")
}
annotation <- as.list(org.At.tairSYMBOL)
id <- "AT3G11260"
find_symbol(id, annotation)
#
ids <- c("AT3G11260", "AT2G17950")
lapply(ids, find_symbol, annotation)
# show multiple gene symbols
lapply(ids, find_symbol, annotation, n = 2)
# show all gene symbols
lapply(ids, find_symbol, annotation, n = Inf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.