zdebruine / singlet

Single-cell analysis with non-negative matrix factorization
42 stars 13 forks source link

Error in if (rank_ind == nrow(df_rep)) { : argument is of length zero #54

Open ElyasMo opened 5 months ago

ElyasMo commented 5 months ago

Any ideas why this is happenig?

scRNA.spl$ChNs <- RunNMF(scRNA.spl$ChNs,assay="RNA",slot = "scale.data", features = VariableFeatures(scRNA.spl$ChNs),rescale = FALSE) running with sparse optimization

REPLICATE 1 / 3 k = 2 , rep = 1 test_error = 3.0442e-02 overfit (overfit_score = 1.5850e-03 ) Warning: argument is not numeric or logical: returning NA best rank in replicate = NA

Error in if (rank_ind == nrow(df_rep)) { : argument is of length zero

Here is some info about the object:

scRNA.spl$ChNs An object of class Seurat 20106 features across 1304 samples within 1 assay Active assay: RNA (20106 features, 377 variable features) 3 dimensional reductions calculated: pca_celltypes, harmony_celltypes, umap