mmcci.it.integrate_networks

mmcci.it.integrate_networks(samples, sum=False, strict=False, assay='raw', network_key='network', integrate_pvals=False, p_val_method='stouffer', p_val_key='network_p_values') CCIData[source]

Integrates a list of samples that are single networks into a single network.

Parameters:
  • samples (list) – A list of CCIData objects.

  • sum (bool) (optional) – Whether to sum instead of multiply the matrices. Defaults to False.

  • strict (bool) (optional) – If True, only interactions where more than 50% of the values are non-zero will be multiplied. Defaults to False.

  • assay (str) (optional) – The assay or assays to use for integrating samples. Defaults to “raw”.

  • network_key (str) (optional) – The key or keys to use for identifying the network. Defaults to “network”.

  • integrate_pvals (bool) (optional) – Whether to integrate p-values (if possible). Defaults to False.

  • p_val_method (str) (optional) – The method to use for combining p-values. Options are “stouffer” and “fisher”. Defaults to “stouffer”.

  • p_val_key (str) (optional) – The key to use for identifying p-values. Defaults to “network_p_values”.

Returns:

The integrated sample.

Return type:

CCIData