scviva.tools.harreman.tools.compute_ct_interacting_cell_scores#
- scviva.tools.harreman.tools.compute_ct_interacting_cell_scores(adata, center_counts_for_np_test=False, test='both', restrict_significance='both', device='auto', verbose=False)[source]#
Compute cell-type-aware interacting cell scores for gene pairs and metabolites.
- Parameters:
- adata
str|AnnData Must contain: -
uns['model'],uns['mean']-uns['cell_type_key']andobs[cell_type_key]for cell types -uns['gene_pairs'],uns['gene_pairs_per_ct_pair']-uns['gene_pairs_per_metabolite']-uns['ct_ccc_results']with significance information -obsp['weights'](spatial proximity matrix)- center_counts_for_np_test
bool|None Whether to standardize counts before the non-parametric test.
- test
Union[Literal['parametric'],Literal['non-parametric'],Literal['both'],None] Which statistical test(s) to run.
- restrict_significance
Union[Literal['gene pairs'],Literal['metabolites'],Literal['both'],None] Only use cell-type-pair interactions that were significant in cell-type-aware CCC results.
- device
device|str CPU or GPU device for PyTorch computations.
- verbose
bool|None Print detailed progress messages.
- adata
- Return type: