Skip to content

Commit 62c474d

Browse files
committed
liana
1 parent 28798b9 commit 62c474d

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

pycrosstalker/tools/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,8 +714,8 @@ def from_liana(adata, liana_key = "liana", score_key="lr_means",pval_key="cellph
714714

715715
if isinstance(adata.uns[liana_key], pd.DataFrame):
716716
if condition_key in adata.uns[liana_key].columns:
717-
for i in adata.uns[liana_key].label.unique():
718-
evfull = adata.uns[liana_key].loc[adata.uns[liana_key].label==i,:]
717+
for i in adata.uns[liana_key][condition_key].unique():
718+
evfull = adata.uns[liana_key].loc[adata.uns[liana_key][condition_key]==i,:]
719719
evfull = evfull.loc[:,sel]
720720
evfull['type_gene_A'] = 'Ligand'
721721
evfull['type_gene_B'] = 'Receptor'
@@ -749,3 +749,5 @@ def from_liana(adata, liana_key = "liana", score_key="lr_means",pval_key="cellph
749749
adata.uns['pycrosstalker']['path'][i] = evfull
750750
return (adata.copy())
751751

752+
753+

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pycrosstalker"
3-
version = "2.1.5rc"
3+
version = "2.1.6"
44
description = ""
55
authors = [
66
{ name = "jsnagai", email = "james.nagai@gmail.com" },

0 commit comments

Comments
 (0)