Nothing
generate_single_cell_complete_mismatch <-
function(ttmap_part1_hda, select, alpha = 1){
D2 <- ttmap_part1_hda$Dc.Dmat[select, ]
Da <- sign(D2)
dd <- matrix(rep(0, (dim(Da)[2])^2), nrow = dim(Da)[2])
ind <- combn(ncol(ttmap_part1_hda$Dc.Dmat[select, ]), 2)
dd2 <- lapply(as.list(seq_len(ncol(ind))), function(x){
W <- Da[, ind[1, x]] * Da[, ind[2, x]]
names(W) <- rownames(Da)
select1 <- names(W[W[] == (-1)])
s <- length(select1)
s / (length(W))
})
dd[lower.tri(dd)] <- unlist(dd2)
dd[upper.tri(dd)] <- t(dd)[upper.tri(dd)]
rownames(dd) <- colnames(D2)
colnames(dd) <- colnames(D2)
return(dd)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.