Hi
I am trying to use SCVI - tools for batch correction. I followed as in tutorial. I got the error in the step below.
sc.pp.highly_variable_genes(
adata,
n_top_genes=2000,
subset=True,
layer="counts",
flavor="seurat_v3",
batch_key='patient_id'
)
The error I got is
If you pass `n_top_genes`, all cutoffs are ignored.
extracting highly variable genes
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-11-e00c5f508a6a> in <module>
----> 1 sc.pp.highly_variable_genes(
2 adata,
3 n_top_genes=2000,
4 subset=True,
5 layer="counts",
/opt/conda/lib/python3.8/site-packages/scanpy/preprocessing/_highly_variable_genes.py in highly_variable_genes(adata, layer, n_top_genes, min_disp, max_disp, min_mean, max_mean, span, n_bins, flavor, subset, inplace, batch_key)
413
414 if flavor == 'seurat_v3':
--> 415 return _highly_variable_genes_seurat_v3(
416 adata,
417 layer=layer,
/opt/conda/lib/python3.8/site-packages/scanpy/preprocessing/_highly_variable_genes.py in _highly_variable_genes_seurat_v3(adata, layer, n_top_genes, batch_key, span, subset, inplace)
82 x = np.log10(mean[not_const])
83 model = loess(x, y, span=span, degree=2)
---> 84 model.fit()
85 estimat_var[not_const] = model.outputs.fitted_values
86 reg_std = np.sqrt(10 ** estimat_var)
_loess.pyx in _loess.loess.fit()
ValueError: b'reciprocal condition number 1.0638e-15\n'
I am not sure what the issue and what cause this error. Could you please advise?
Thanks