Skip to content

Commit b605238

Browse files
authored
Merge pull request #116 from zztin/main
Fix wrong order of passed positional arguments with keyword arguments.
2 parents 7bfc943 + 19c73fe commit b605238

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/cellcharter/gr/_nhood.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,13 @@ def _diff_nhood_enrichment(
307307
for samples_condition1_permuted in sample_perm_generator:
308308
condition_permuted = pd.Categorical(libraries.isin(samples_condition1_permuted).astype(int))
309309
expected_diff_enrichment = _diff_nhood_enrichment(
310-
labels, condition_permuted, [0, 1], libraries, connectivities, pvalues=False, **nhood_kwargs
310+
labels=labels,
311+
conditions=condition_permuted,
312+
condition_groups=[0, 1],
313+
libraries=libraries,
314+
connectivities=connectivities,
315+
pvalues=False,
316+
**nhood_kwargs,
311317
)["0_1"]["enrichment"]
312318

313319
counts_pos = (

0 commit comments

Comments
 (0)