mmcci.an.calculate_dissim
- mmcci.an.calculate_dissim(sample1: CCIData, sample2: CCIData, assay: str = 'raw', key: str = 'cci_scores', lmbda: float = 0.5)[source]
Calculates a dissimilarity score between two samples for each common LR pair.
- Parameters:
sample1 (CCIData) – The two samples to compare.
sample2 (CCIData) – The two samples to compare.
assay (str) (optional) – The assay to use for the comparison. Defaults to ‘raw’.
key (str) (optional) – The key to use for the comparison. Defaults to ‘cci_scores’.
lmbda (float) (optional) – The weighting factor for the comparison. Defaults to 0.5.
- Returns:
A dictionary where keys are common LR pairs and values are the dissimilarity scores.
- Return type:
dict