mmcci.it.calc_scale_factors
- mmcci.it.calc_scale_factors(samples, method='mean', assay='raw', group_key='platform') dict[source]
Calculates the scale factors for normalizing matrices between different platforms.
- Parameters:
samples (list) – A list of CCIData objects.
method (str) (optional) – The method to use for calculating scale factors.
assay (str) (optional) – The assay or assays to use for calculating scale factors. Defaults to “raw”.
group_key (str) (optional) – The key to use for grouping samples. Defaults to “platform”.
- Returns:
A dictionary where keys are LR pairs and values are the scale factors.
- Return type:
dict