| convertGeneIdentifiers {psichomics} | R Documentation |
Convert gene identifiers
convertGeneIdentifiers(annotation, genes, key = "ENSEMBL", target = "SYMBOL", ignoreDuplicatedTargets = TRUE)
annotation |
OrgDb: genome wide annotation for an organism, e.g.
|
genes |
Character: genes to be converted |
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.
if ( require("org.Hs.eg.db") ) {
columns(org.Hs.eg.db)
genes <- c("ENSG00000012048", "ENSG00000083093", "ENSG00000141510",
"ENSG00000051180")
convertGeneIdentifiers(org.Hs.eg.db, genes,
key="ENSEMBL", target="SYMBOL")
}