| convertGeneIdentifiers | R Documentation | 
Convert gene identifiers
convertGeneIdentifiers(
  genes,
  annotation = "Homo sapiens",
  key = "ENSEMBL",
  target = "SYMBOL",
  ignoreDuplicatedTargets = TRUE
)
genes | 
 Character: genes to be converted  | 
annotation | 
 
  | 
key | 
 Character: type of identifier used, e.g.   | 
target | 
 Character: type of identifier to convert to; read
  | 
ignoreDuplicatedTargets | 
 Boolean: if   | 
Character vector of the respective targets of gene identifiers. The
previous identifiers remain other identifiers have the same target (in case
ignoreDuplicatedTargets = TRUE) or if no target was found.
genes <- c("ENSG00000012048", "ENSG00000083093", "ENSG00000141510",
           "ENSG00000051180")
convertGeneIdentifiers(genes)
convertGeneIdentifiers(genes, key="ENSEMBL", target="UNIPROT")
# Explicit species name to automatically look for its OrgDb database
sp <- "Homo sapiens"
genes <- c("ENSG00000012048", "ENSG00000083093", "ENSG00000141510",
           "ENSG00000051180")
convertGeneIdentifiers(genes, sp)
# Alternatively, set the annotation database directly
ah <- AnnotationHub::AnnotationHub()
sp <- AnnotationHub::query(ah, c("OrgDb", "Homo sapiens"))[[1]]
columns(sp) # these attributes can be used to change the attributes
convertGeneIdentifiers(genes, sp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.