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
When running milo.count_nhoods on my adata object, I encountered a ValueError indicating that the length of values does not match the length of the index.
ValueError: Length of values (5251) does not match length of index (5185)
My number of number of nonzero nhood indices (adata.obs["nhood_ixs_refined"] != 0).sum()), which is 5251 does not match the shape of nhoods matrix (adata.obsm["nhoods"].shape) :(80422, 5185).
Varying n_neighbors and n_pcs also leads to mismatch, albeit of varying proportions.
Can you please let me know how I can troubleshoot?
The text was updated successfully, but these errors were encountered:
Description
When running
milo.count_nhoods
on myadata
object, I encountered aValueError
indicating that the length of values does not match the length of the index.My code:
Error Message
My number of number of nonzero nhood indices (
adata.obs["nhood_ixs_refined"] != 0).sum()
), which is 5251 does not match the shape of nhoods matrix (adata.obsm["nhoods"].shape
) :(80422, 5185).Varying n_neighbors and n_pcs also leads to mismatch, albeit of varying proportions.
Can you please let me know how I can troubleshoot?
The text was updated successfully, but these errors were encountered: