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)

Arguments

reference.genes

Named vector of genes; names are ENSEMBL, entries are SYMBOL.

query.genes

vector of query genes to check representation

Value

Character specifying ensembl or symbol

See also

Author

Nicholas Mikolajewicz

Examples


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)))
}
}