checkGeneRep.Rd
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)
Named vector of genes; names are ENSEMBL, entries are SYMBOL.
vector of query genes to check representation
Character specifying ensembl or symbol
if (FALSE) {
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)))
}
}