# 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')
Symbol <- as.character(sample(org.Hs.eg$gene_info$Symbol, 100))
Symbol
# b) convert into GeneID
GeneID <- xSymbol2GeneID(Symbol)
# c) convert into a data frame
df <- xSymbol2GeneID(Symbol, details=TRUE)
# advanced use
df <- xSymbol2GeneID(Symbol, org=org.Hs.eg, details=TRUE)
# }
Run the code above in your browser using DataLab