git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/tRanslatome@121784 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -360,11 +360,12 @@ specificOntologyResult <- function(object, ontology) { |
360 | 360 |
|
361 | 361 |
comparisonBetweenTwoLists <- function(go1,go2,ontology,direction) { |
362 | 362 |
|
363 |
+ ontData <- semData('org.Hs.eg.db', ont=ontology) |
|
363 | 364 |
finalmat <- NULL |
364 | 365 |
for (i in 1:nrow(go1)) { |
365 | 366 |
mat <- NULL |
366 | 367 |
for (j in 1:nrow(go2)) { |
367 |
- sim <- goSim(go1[i, 1], go2[j, 1], measure="Wang") |
|
368 |
+ sim <- goSim(go1[i, 1], go2[j, 1], semData=ontData, measure="Wang") |
|
368 | 369 |
mat <- rbind(mat, c(go1[i, 1],go1[i, 2],go2[j, 1],go2[j, 2],sim)) |
369 | 370 |
} |
370 | 371 |
|