-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ctk.plot_projection
gives AttributeError: can't set attribute
error
#1018
Comments
Hi @cartal, without going into any details here, the new syntax is outlined in this new tutorial: https://cellrank.readthedocs.io/en/latest/notebooks/tutorials/cellrank_meets_pseudotime.html We're currently pushing the other remaining parts of the 2.0 documentation and hope to be done with this soon! |
@michalk8 might be able to give you more details on the actual error. |
Thank you so much @Marius1311 and @michalk8!! |
@cartal can you please post the full traceback? This error comes from |
@WeilerP seems like 2023-04-04T21:01:11.0919104Z cellrank/kernels/_utils.py:292: in require_tmat
2023-04-04T21:01:11.0919509Z return wrapped(*args, **kwargs)
2023-04-04T21:01:11.0919938Z cellrank/kernels/_base_kernel.py:304: in plot_projection
2023-04-04T21:01:11.0920683Z proj.plot(stream=stream, **kwargs)
2023-04-04T21:01:11.0921179Z cellrank/kernels/utils/_projection.py:150: in plot
2023-04-04T21:01:11.0921620Z return scv.pl.velocity_embedding_stream(
2023-04-04T21:01:11.0922461Z .tox/py38-linux-slepc/lib/python3.8/site-packages/scvelo/plotting/velocity_embedding_stream.py:252: in velocity_embedding_stream
2023-04-04T21:01:11.0922980Z ax = scatter(
2023-04-04T21:01:11.0923565Z .tox/py38-linux-slepc/lib/python3.8/site-packages/scvelo/plotting/scatter.py:668: in scatter
2023-04-04T21:01:11.0924065Z set_legend(
2023-04-04T21:01:11.0924635Z .tox/py38-linux-slepc/lib/python3.8/site-packages/scvelo/plotting/utils.py:555: in set_legend
2023-04-04T21:01:11.0928919Z obs_vals.cat.categories = obs_vals.cat.categories.astype(str)
2023-04-04T21:01:11.0929665Z .tox/py38-linux-slepc/lib/python3.8/site-packages/pandas/core/base.py:178: in __setattr__
2023-04-04T21:01:11.0930156Z object.__setattr__(self, key, value)
2023-04-04T21:01:11.0930753Z .tox/py38-linux-slepc/lib/python3.8/site-packages/pandas/core/accessor.py:99: in _setter
2023-04-04T21:01:11.0931272Z return self._delegate_property_set(name, new_values) |
Hi @michalk8, I get the same error as @cartal after reinstalling CellRank on another server. The same dataset few weeks ago went through smoothly. Package versions are as reported by @cartal. When I run this: with the cluster column in my
Let me know if you need additional information. And, more importantly, thank you! |
Thanks for all the work that has gone on
cellrank
, super cool stuff.I am re-running some of my old analysis notebooks for a project and I discovered that the syntax has changed. I am trying to visualise the inferred trajectories using the following:
It does plot the pseudotime but it fails when I try to visualise the cell states (or any other key in
adata.obs
). Funny enough, it also complains that the transition matrix has not been computed, but I did it before using this:Is there something I am doing wrong?
Also, do you have a timeline for when the tutorials will be updated?
Versions:
anndata 0.8.0
scanpy 1.9.3
PIL 9.4.0
appnope 0.1.3
asttokens NA
backcall 0.2.0
beta_ufunc NA
binom_ufunc NA
cellrank 1.5.1
cffi 1.15.1
colorama 0.4.6
comm 0.1.3
cycler 0.10.0
cython_runtime NA
dateutil 2.8.2
debugpy 1.6.6
decorator 5.1.1
defusedxml 0.7.1
docrep 0.3.2
executing 1.2.0
h5py 3.8.0
hypergeom_ufunc NA
igraph 0.10.4
Python 3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:42:20) [Clang 14.0.6 ]
macOS-13.3-x86_64-i386-64bit
Session information updated at 2023-04-04 16:51
The text was updated successfully, but these errors were encountered: