Learn R Programming

tinyarray (version 2.4.3)

trans_entrezexp: trans_entrezexp

Description

transform rownames of expression set from "entrez" to"symbol",according to the bitr function.

Usage

trans_entrezexp(entrezexp, species = "human")

Value

a transformed expression set with symbol

Arguments

entrezexp

expression set with entrezid as rownames

species

choose human or mouse, or rat, default: human

Author

Xiaojie Sun

See Also

trans_exp

Examples

Run this code
exp = matrix(rnorm(200),ncol = 10)
rownames(exp) = c("79691", "56271", "8662", "10394", "55630", "159162", "23541",
                  "79723", "54413", "22927", "92342", "23787", "5550", "8924",
                  "55274", "866", "8844", "353299", "587", "1473")
colnames(exp) = paste0("s",1:10)
if(requireNamespace("org.Hs.eg.db",quietly = TRUE)){
exp2 = trans_entrezexp(exp)
}else{
    warning("Package \"org.Hs.eg.db\" needed for this function to work.
        Please install it by BiocManager::install('org.Hs.eg.db')",call. = FALSE)
}

Run the code above in your browser using DataLab