Open NormalLomo opened 1 month ago
in dimensional_reduction.R there is
RowVar.function <- RowVarSparse in line 869 and
RowVar.function <- RowVarSparse
total.variance <- sum(RowVar.function(x = object)) in line 891 while the scale.data is a dgCMatrix.
total.variance <- sum(RowVar.function(x = object))
However the definition of RowVarSparse in utilities.R line 2590 is
RowVarSparse <- function(mat)
so there is a error
Error in RowVar.function(x = object) : unused argument (x = object)
And easily correct it in utilities.R line 2590
RowVarSparse <- function(x) should solve it.
RowVarSparse <- function(x)
Hi, thanks for raising this issue -- we have been unable to reproduce this bug. Could you please share a reproducible example of this error?
in dimensional_reduction.R there is
RowVar.function <- RowVarSparse
in line 869 andtotal.variance <- sum(RowVar.function(x = object))
in line 891 while the scale.data is a dgCMatrix.However the definition of RowVarSparse in utilities.R line 2590 is
RowVarSparse <- function(mat)
so there is a error
And easily correct it in utilities.R line 2590
RowVarSparse <- function(x)
should solve it.