R/eg2id.R

Defines functions eg2id

Documented in eg2id

eg2id <-function(eg, category=gene.idtype.list[1:2], org="Hs", pkg.name=NULL, ...){
  category=tolower(category)
  ei=category %in% c("entrez", "eg", "entrezid")
  if(all(ei)) stop("output ID or category cannot all be Entrez Gene ID!")
  if(any(ei)) category=category[!ei]
  geneannot.map(in.ids=eg, in.type="entrez", out.type=category, org=org, pkg.name=pkg.name, ...)#, unique.map=TRUE, na.rm=TRUE)
}
datapplab/pathview documentation built on March 30, 2024, 9:06 a.m.