[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bioc-devel
Subject:    Re: [Bioc-devel] add function to "annotate" package
From:       Marc Carlson <mcarlson () fhcrc ! org>
Date:       2011-07-15 18:31:41
Message-ID: 4E20878D.9060705 () fhcrc ! org
[Download RAW message or body]

Hi Robert,

Have you seen the lookUp function (in annotate)?

?lookUp

   Marc


On 07/13/2011 11:47 AM, Robert M. Flight wrote:
> Would it make sense to add one extra level of convenience to the
> "getAnnMap" function in "annotate", that represents what I am sure is
> one of the largest number of uses of the bimaps as an environment,
> which is getting information about a particular set of genes or other
> identifier?
>
> getAnnotation<- function(id,annPackage,mapID,doUnlist=TRUE){
> 	annEnv<- getAnnMap(mapID, annPackage, load=TRUE)
>    tmpDat<- mget(id, annEnv, ifnotfound=NA)
>    if (doUnlist){
>    	tmpDat<- unlist(tmpDat, use.names=FALSE)
>    }
>    return(tmpDat)
> }
>
> # simple example, but I do this for a lot of different things frequently
> library(annotate)
> testEntrez<- c("1","10","100","1000")
> getAnnotation(testEntrez,"org.Hs.eg.db","SYMBOL")
>
> Thanks,
>
> -Robert
>
> Robert M. Flight, Ph.D.
> University of Louisville Bioinformatics Laboratory
> University of Louisville
> Louisville, KY
>
> PH 502-852-1809 (HSC)
> PH 502-852-0467 (Belknap)
> EM robert.flight@louisville.edu
> EM rflight79@gmail.com
>
> Williams and Holland's Law:
>         If enough data is collected, anything may be proven by
> statistical methods.
>
> _______________________________________________
> Bioc-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel

_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic