View source: R/convertGeneIDs.R
convertGeneIDs | R Documentation |
Convert the gene IDs in a SingleCellExperiment object using Bioconductor org.*.eg.db data packages. Because annotation databases do not have a 1:1 relationship, this tool removes rows with no corresponding annotation in your desired annotation, and remove any duplicate annotations after conversion.
convertGeneIDs(inSCE, inSymbol, outSymbol, database = "org.Hs.eg.db")
inSCE |
Input SCtkExperiment object. Required |
inSymbol |
The input symbol type |
outSymbol |
The output symbol type |
database |
The org.*.eg.db database to use. The default is org.Hs.eg.db |
A SCtkExperiment with converted gene IDs.
if(requireNamespace("org.Mm.eg.db", quietly = TRUE)) { #convert mouse gene symbols to ensembl IDs library("org.Mm.eg.db") sample(rownames(mouseBrainSubsetSCE), 50) mouseBrainSubsetSymbol <- convertGeneIDs(inSCE = mouseBrainSubsetSCE, inSymbol = "SYMBOL", outSymbol = "ENSEMBL", database = "org.Mm.eg.db") sample(rownames(mouseBrainSubsetSymbol), 50) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.