SpatialDE icon indicating copy to clipboard operation
SpatialDE copied to clipboard

SVD did not converge in Linear Least Squares

Open rocketeer1998 opened this issue 10 months ago • 1 comments

Hi @kant @flying-sheep @ostegle @vals @NickEngland , thanks for your contribution to SpatialDE! I'm facing a bug when I run resid_expr = NaiveDE.regress_out(adata.obs[['total_counts']], norm_expr.T, 'np.log(total_counts)') . This produces an error LinAlgError: SVD did not converge in Linear Least Squares. I have checked that there is no NA and Infinite numbers in norm_expr.

rocketeer1998 avatar Apr 09 '24 09:04 rocketeer1998

could be that the number of genes you had in you anndata object is too few.

Polligator avatar Apr 16 '24 20:04 Polligator