Skip to content

How do I use it on Windows  #12

@zznx

Description

@zznx

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions