satijalab / seurat

R toolkit for single cell genomics
http://www.satijalab.org/seurat
Other
2.25k stars 904 forks source link

Warning at FindVariableFeatures #4173

Closed bun12 closed 3 years ago

bun12 commented 3 years ago

Hi,

We use Seurat v3.2.2 and got this warning. What's wrong with this?

CT <- FindVariableFeatures(CT, selection.method = "vst", nfeatures = 2000) Calculating gene variances 0% 10 20 30 40 50 60 70 80 90 100% [---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ** Calculating feature variances of standardized and clipped values 0% 10 20 30 40 50 60 70 80 90 100% [---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ** Warning message: 1: simpleLoess(y, x, w, span, degree = degree, parametric = parametric,

pseudoinverse used at -0.32924 2: simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : neighborhood radius 0.50533 3: simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : reciprocal condition number 5.2661e-015 4: simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : There are other near singularities as well. 0.090619

timoast commented 3 years ago

Please see https://github.com/satijalab/seurat/issues/2387

xinxinStarXu commented 11 months ago

hello, I met this situation, too. But I dont't konw why and whether this would influence the subsequent analysis. Have you solve this problem? Thank you very much!

ahsv commented 5 months ago

This appears to be a different issue than #2387 \:

As far as I can tell, these errors are related to the loess implementation used by both Seurat and scanpy - the tricks used by loess to speed up computations fail when the data are ill-conditioned in some way.

Several other links where this is discussed: https://github.com/scverse/scanpy/issues/1504 (and the link mentioned there: https://github.com/has2k1/scikit-misc/issues/9), https://discourse.scverse.org/t/error-in-highly-variable-gene-selection/276.

Suggestions from those links (that have also worked for me, after some testing/playing around with parameters):