View source: R/utility_functions.R
checkGeneRep | R Documentation |
Check whether genes are represented as SYMBOL or ENSEMBL. This is accomplished by comparing query to reference, and using a majority vote.
checkGeneRep(reference.genes, query.genes)
reference.genes |
Named vector of genes; names are ENSEMBL, entries are SYMBOL. |
query.genes |
vector of query genes to check representation |
Character specifying ensembl or symbol
Nicholas Mikolajewicz
ens2sym.so
## Not run:
gene.rep <- checkGeneRep(gNames.list, as.vector(rownames(so.query@assays[[current.assay]]@scale.data)))
if (gene.rep == "ensembl"){
so.query <- ens2sym.so(so = so.query, gNames.list = gNames.list, convert.RNA = TRUE)
gene.rep <- checkGeneRep(gNames.list, as.vector(rownames(so.query@assays[[current.assay]]@scale.data)))
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.