Entering edit mode
Seth Falcon
★
7.4k
@seth-falcon-992
Last seen 11.2 years ago
Maria Persico <maria@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
