R/BioCpack2Profiles.R

`BioCpack2Profiles` <-
function (anotPkg, orgPackage, level=2, na.rm=TRUE, expanded=FALSE){
    stopifnot(require(anotPkg, character.only=TRUE, quietly=TRUE, warn.conflicts=FALSE))
    stopifnot(require(orgPackage, character.only=TRUE, quietly=TRUE, warn.conflicts=FALSE))

    env<-paste(anotPkg, "ENTREZID",sep="")
    env <- eval(parse(text = env))

    gLL<-as.character(unlist(as.list(env)))
    if(na.rm)
      gLL<-gLL[!is.na(gLL)]

    all.Profiles <-basicProfile(genelist=gLL, onto="ANY",
        level=level, empty.cats=TRUE, cat.names=TRUE, na.rm=na.rm, orgPackage=orgPackage)
    all.expanded.Profiles <-NULL
    if (expanded)
      all.expanded.Profiles <- expandedProfile (gLL, onto="ANY",level=level,
        na.rm=na.rm, orgPackage=orgPackage)
    return (list (profiles=all.Profiles, expanded.profiles=all.expanded.Profiles))
 }

Try the goProfiles package in your browser

Any scripts or data that you put into this service are public.

goProfiles documentation built on Nov. 8, 2020, 8:12 p.m.