Browse code

Added euclidean distance and bumped version

Elijah Willie authored on 08/11/2022 20:00:42
Showing 2 changed files

... ...
@@ -1,6 +1,6 @@
1 1
 Package: FuseSOM
2 2
 Title: A Correlation Based Multiview Self Organizing Maps Clustering For IMC Datasets
3
-Version: 0.99.8
3
+Version: 0.99.9
4 4
 Authors@R: 
5 5
     person("Elijah", "Willie", , "[email protected]", role = c("aut", "cre"))
6 6
 Description: A correlation-based multiview self-organizing map for the characterization of cell types in highly multiplexed in situ imaging cytometry assays (`FuseSOM`) 
... ...
@@ -211,9 +211,11 @@ clusterPrototypes <- function(somModel, numClusters = NULL) {
211 211
   pear <- cor(t(prototypes), method = "pearson")
212 212
   cosi <- tcosine(prototypes)
213 213
   spear <- cor(t(prototypes), method = "spearman")
214
+  eucl <- dist(prototypes)
214 215
 
215 216
   # peform multiview integration
216
-  finalDist <- as.matrix(fuse(cor2dist(pear), cor2dist(cosi), cor2dist(spear)))
217
+  finalDist <- as.matrix(fuse(cor2dist(pear), cor2dist(cosi), cor2dist(spear)),
218
+                         eucl)
217 219
 
218 220
   # cluster the final
219 221
   clusters <- HierarchicalClustering(finalDist,