Hi,
Im using scanpy 1.4.2 to analyze my data, using the following command:
sc.pp.highly_variable_genes(heart_cmc, flavor = 'cell_ranger', n_top_genes = 1000)
However, instead of getting 1000 HVG, it reports 1488 HVG. Similar thing happens with higher numbers of HVG (e.g. n_top_genes = 2000 returns 1999).
The scaling then fails with a following error:
ValueError: The first guess on the deviance function returned a nan. This could be a boundary problem and should be reported.
Any suggestions on how to fix it? When I dont specify n_top_genes, the thing runs without problems.
Thanks!