[BioC] simLL method in GOstats

Seth Falcon sfalcon at fhcrc.org
Sat Apr 30 18:09:20 CEST 2005


Maria Persico <maria at cbm.bio.uniroma2.it> writes:

> Dear bioconductor mailing list,
>
> I have some pairs of genes and I would like to measure their "distances"
> on the GO molecular function graph.
>
> So I wrote this lines of code:
>

Try try():

distances<-numeric(100)
for (i in 1:100){
 goanal <- try(simLL(as.character(hmapr$V1[i]),as.character(hmapr$V2[i]),"MF"))
 if (inherits(gonal, "try-error")) {
     goanal <- list()
     goanal[["sim"]] <- NA
  print(goanal$sim)
 distances[i]<-goanal$sim
 rm(goanal)
 }

+ seth



More information about the Bioconductor mailing list