mmcci.pl.chord_plot

mmcci.pl.chord_plot(network, min_int=0.001, n_top_ccis=10, colors=None, show=True, title=None, title_size=14, label_size=10, figsize=None, show_legend=False, legend_size=12)[source]

Plots a chord plot of a network

Parameters:
  • network (pandas.DataFrame or numpy.ndarray) – The adjacency matrix representing the network.

  • min_int (float) – Minimum interactions to display cell type. Defaults to 0.01.

  • n_top_ccis (int) – Number of top cell types to display. Defaults to 10.

  • colors (dict) – Dict of colors for each cell type to use for the plot. Defaults to None.

  • show (bool) – Whether to show plot or not. Defaults to True.

  • title (str) – Title of the plot. Defaults to None.

  • title_size (int) – Font size of the title. Defaults to 14.

  • label_size (int) – Font size of the labels. Defaults to None.

  • figsize (tuple) – Size of the figure. Defaults to None.

  • show_legend (bool) – Whether to show legend. Defaults to False.

  • legend_size (int) – Font size for legend. Defaults to 12.

Returns:

A tuple containing the figure and axis objects.

Return type:

tuple