R/BioCprobes2Entrez.R

`BioCprobes2Entrez` <-
function (probeslist , anotPkg, na.rm=TRUE)
{
stopifnot(require(anotPkg, character.only = TRUE, quietly=TRUE, warn.conflicts=FALSE))
myenvir<-eval(parse(text = paste(anotPkg,"ENTREZID",sep="")))
myENTREZIDs <- as.character(unlist(mget(probeslist,envir=myenvir, ifnotfound=NA)))
if(na.rm){
  return(myENTREZIDs[!(is.na(myENTREZIDs))])
}else{
  return(myENTREZIDs)}
}
alexsanchezpla/goProfiles documentation built on May 28, 2019, 4:54 p.m.