You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for your excellent work! I'm running RealTimeKernel and met InvalidParameterError: The 'n_neighbors' parameter of KNeighborsTransformer must be an int in the range [1, inf) or None. Got 0 instead. My Anndata has the attribute 'neighbors', and I tried passing the n_neighbors parameter directly but it didn't work.
@Yiikea, I cannot immediately pinpoint the issue. I only see that there seems to be an issue with the coupling between time points 0 and 4; Scanpy throws the warning "n_obs too small: adjusting to n_neighbors = 1" here, i.e., it looks like your data appears to have only one observation - or none at all - in one time point; otherwise, n_neighbors would not be set to 1. You can check the number of observations per time point with
adata2.obs["time"].value_counts()
for example. If each time point has more than one observation, could you please share some details on what your AnnData object looks like, i.e., the fields and some general details about the data, like the time points and a corresponding number of observations, for example?
Hello CellRank,
Thank you for your excellent work! I'm running RealTimeKernel and met InvalidParameterError: The 'n_neighbors' parameter of KNeighborsTransformer must be an int in the range [1, inf) or None. Got 0 instead. My Anndata has the attribute 'neighbors', and I tried passing the
n_neighbors
parameter directly but it didn't work.Could you please help me with this issue?
Thank you!
Versions:
The text was updated successfully, but these errors were encountered: