-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
1.How do I use it on Windows
2.This is the scaling factor necessary to obtain a distance that can be directly converted to the Spearman correlation. You could of course just divide by the standard deviations, but then you would have to do the scaling downstream, so it is done here instead. What does the scaling downstream mean? thank you
SingleR code
.scaled_colranks_safe <- function(x) {
out <- colRanks(DelayedArray(x), ties.method="average")
center <- (nrow(x) + 1)/2
sum.sq <- rowVars(out, center=center) * (nrow(x)-1)
sum.sq <- pmax(1e-8, sum.sq)
(out - center)/(sqrt(sum.sq) * 2)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels