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

error:cellphonedb #233

Open
sbu123456577 opened this issue Dec 18, 2024 · 1 comment
Open

error:cellphonedb #233

sbu123456577 opened this issue Dec 18, 2024 · 1 comment

Comments

@sbu123456577
Copy link

I encountered a ValueError when running the CellPhoneDB command with my own data

ValueError Traceback (most recent call last)
Cell In[96], line 1
----> 1 ov.pl.cpdb_interacting_heatmap(adata=adata,
2 celltype_key='newcelltype',
3 means=cpdb_results['means'],
4 pvalues=cpdb_results['pvalues'],
5 source_cells=['EC'],
6 target_cells=['FB1','FB2','FB3','FB4'],
7 plot_secret=True,
8 min_means=3,
9 nodecolor_dict=None,
10 ax=None,
11 figsize=(2,6),
12 fontsize=10,)

File ~/miniconda3/envs/omicverse/lib/python3.10/site-packages/omicverse/pl/_cpdb.py:479, in cpdb_interacting_heatmap(adata, celltype_key, means, pvalues, source_cells, target_cells, min_means, nodecolor_dict, ax, figsize, fontsize, plot_secret, return_table)
476 else:
477 row_ha=None
--> 479 cm = DotClustermapPlotter(corr_mat,x='level_1',y='level_0',value='means',
480 c='means',s='-logp',cmap='Reds',vmin=0,
481 top_annotation=col_ha,left_annotation=row_ha,
482 row_dendrogram=True,
483 show_rownames=True,show_colnames=True,)
484 cm.ax_heatmap.grid(which='minor',color='gray',linestyle='--')
...
1065 "finite values.")
1067 n = int(distance.num_obs_y(y))
1068 method_code = _LINKAGE_METHODS[method]

ValueError: The condensed distance matrix must contain only finite values.

However, other functions are working properly, including the regulatory network plot. It’s only the receptor-ligand heatmap that I cannot visualize. I have already removed NA values, but it still hasn’t worked.

@sbu123456577 sbu123456577 changed the title cellphonedb error:cellphonedb Dec 18, 2024
@Starlitnightly
Copy link
Owner

@DBinary

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