Help With the Function(): SparseRowVarStd #5400
Unanswered
zjianyouyou
asked this question in
Q&A
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Error in order(hvf.info$vst.variance.standardized, decreasing = TRUE) : |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I come across this question when exploring how FindVariableFeatures works.
When I come to the isolated part of the codes, I don't know what the code do with the variance and mean. In other words, when I get the rowVariance, rowMean, and the variance.expected, how to get the variance.standardized?
I have try my best to find the answer, but gaining nothing. I hope someone here can help me.
little part of the Function:
if (selection.method == "vst") {
if (clip.max == "auto") {
clip.max <- sqrt(x = ncol(x = object))
}
object=a
hvf.info <- data.frame(mean = rowMeans(x = object))
hvf.info$variance <- SparseRowVar2(mat = object, mu = hvf.info$mean,
display_progress = verbose)
hvf.info$variance.expected <- 0
hvf.info$variance.standardized <- 0
not.const <- hvf.info$variance > 0
fit <- loess(formula = log10(x = variance) ~ log10(x = mean),
data = hvf.info[not.const, ], span = loess.span)
hvf.info$variance.expected[not.const] <- 10^fit$fitted
}
Beta Was this translation helpful? Give feedback.
All reactions