nichesphere.coloc.diffColoc_test#
- nichesphere.coloc.diffColoc_test(coloc_pair_sample, sampleTypes, exp_condition, ctrl_condition)#
Differential co-localization test with table of scores and p-values as output
- Parameters:
coloc_pair_sample (pd.DataFrame) – coloc per cell type pair per sample table
exp_condition (string) – non control phenotype to test
ctrl_condition (string) – control phenotype
sampleTypes (pd.DataFrame) – dataframe with sample names and sample types columns named “sample” and “sampleType”
- Returns:
df – Dataframe of ranksums test statistic and p-value per cell type pair
- Return type:
pd.DataFrame