Skip to content
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

li.plotting.circle_plot error #164

Open
gianfilippo opened this issue Feb 9, 2025 · 2 comments
Open

li.plotting.circle_plot error #164

gianfilippo opened this issue Feb 9, 2025 · 2 comments

Comments

@gianfilippo
Copy link

Hi,

I am trying to make a circle plot using the li.plotting.circle_plot call as follow
p = li.plotting.circle_plot(adata, liana_res=lr_res, groupby=clustCol)

I get
Traceback (most recent call last):
File "", line 1, in
File "/home/project/.conda/envs/Liana+/lib/python3.10/site-packages/liana/plotting/_circle_plot.py", line 178, in circle_plot
liana_res = _prep_liana_res(
File "/home/project/.conda/envs/Liana+/lib/python3.10/site-packages/liana/plotting/_common.py", line 32, in _prep_liana_res
liana_res = _get_liana_res(adata, liana_res, uns_key)
File "/home/project/.conda/envs/Liana+/lib/python3.10/site-packages/liana/plotting/_common.py", line 15, in _get_liana_res
assert uns_key in adata.uns.keys()
AssertionError

The adata.uns is
OrderedDict([('log1p', {'base': None})])

The default uns_key in the function is 'liana_res', which is not present in my adata.
Am I supposed to add it before calling the circle_plot function ?

Also, could you please explain the option filter ?

Thanks

@dbdimitrov
Copy link
Collaborator

dbdimitrov commented Feb 13, 2025

Hi @gianfilippo,

Yes, or you could pass a different key that stores the dataframe that you wish to plot :)

@gianfilippo
Copy link
Author

Ok. Thanks. It works without the filter function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants