# NOT RUN {
# Load the library
library(XGR)
# a) provide the input Genes of interest (eg 100 randomly chosen human genes)
## load human genes
org.Hs.eg <- xRDataLoader(RData='org.Hs.eg')
GeneID <- sample(org.Hs.eg$gene_info$GeneID, 100)
GeneID
# b) convert into GeneID
Symbol <- xGeneID2Symbol(GeneID)
# c) convert into a data frame
df <- xGeneID2Symbol(GeneID, details=TRUE)
# advanced use
df <- xGeneID2Symbol(GeneID, org=org.Hs.eg, details=TRUE)
# }
Run the code above in your browser using DataLab