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
Hello, I would like to ask if I have no error after running this
kernel = cr.tl.transition_matrix(ad,
weight_connectivities=weight_connectivities,
mode=mode,
n_jobs=n_jobs,
softmax_scale=softmax_scale)
And then I run this without error g_fwd = GPCCA(kernel)
Then run this g_fwd.compute_macrostates(n_states=4, cluster_key="lineage")
These errors appear in g_fwd ValueError Traceback (most recent call last)
Cell In[41], line 1
----> 1 g_fwd.compute_macrostates(n_states=4, cluster_key="lineage")
3 g_fwd
The File ~ / local/lib/python3.9 / site - packages/cellrank/tl/estimators terminal_states / _gpcca py: 175, in compute_macrostates(self, n_states, n_cells, cluster_key, **kwargs)
The File ~ / local/lib/python3.9 / site - packages/cellrank/tl/estimators/mixins/decomposition / _schur py: 161, in compute_schur(self, n_components, initial_distribution, method, which, alpha)
The File ~ / local/lib/python3.9 / site - packages/pygpcca / _gpcca. Py: 776, in GPCCA. init (self, P, eta, z, method)
768 def init(
769 self,
770 P: Union[np.ndarray, spmatrix],
(...).
773 method: str = DEFAULT_SCHUR_METHOD,
774):
775 if not is_transition_matrix(P):
--> 776 raise ValueError("Input matrix P is not a transition matrix.")
777 if z not in ["LM", "LR"]:
778 raise ValueError("You didn't give a valid sorting criterion z. Valid options are: 'LM', 'LR'.")
ValueError: Input matrix P is not a transition matrix.
...
The text was updated successfully, but these errors were encountered:
Hello, I would like to ask if I have no error after running this
kernel = cr.tl.transition_matrix(ad,
weight_connectivities=weight_connectivities,
mode=mode,
n_jobs=n_jobs,
softmax_scale=softmax_scale)
And then I run this without error g_fwd = GPCCA(kernel)
Then run this g_fwd.compute_macrostates(n_states=4, cluster_key="lineage")
These errors appear in g_fwd ValueError Traceback (most recent call last)
Cell In[41], line 1
----> 1 g_fwd.compute_macrostates(n_states=4, cluster_key="lineage")
3 g_fwd
The File ~ / local/lib/python3.9 / site - packages/cellrank/tl/estimators terminal_states / _gpcca py: 175, in compute_macrostates(self, n_states, n_cells, cluster_key, **kwargs)
The File ~ / local/lib/python3.9 / site - packages/cellrank/tl/estimators/mixins/decomposition / _schur py: 161, in compute_schur(self, n_components, initial_distribution, method, which, alpha)
The File ~ / local/lib/python3.9 / site - packages/pygpcca / _gpcca. Py: 776, in GPCCA. init (self, P, eta, z, method)
768 def init(
769 self,
770 P: Union[np.ndarray, spmatrix],
(...).
773 method: str = DEFAULT_SCHUR_METHOD,
774):
775 if not is_transition_matrix(P):
--> 776 raise ValueError("Input matrix P is not a transition matrix.")
777 if z not in ["LM", "LR"]:
778 raise ValueError("You didn't give a valid sorting criterion z. Valid options are: 'LM', 'LR'.")
ValueError: Input matrix P is not a transition matrix.
...
The text was updated successfully, but these errors were encountered: