HoloNet.plotting.delta_e_proportion#

HoloNet.plotting.delta_e_proportion(trained_MGC_model_list, X, adj, cell_type_names, palette=None, fname=None, display=True, low_ylim=None, high_ylim=None, **kwargs)#

Plotting the proportion of delta_e in the sum of delta_e and e_0 in each cell-type.

Parameters
trained_MGC_model_list List[MGC_Model]

A list of trained MGC model for generating the expression of one target gene.

X Tensor

The feature matrix used as the input of the trained_MGC_model_list.

adj Tensor

The adjacency matrix used as the input of the trained_MGC_model_list.

cell_type_names List[str]

The list of cell-type names.

palette dict | NoneOptional[dict] (default: None)

The color dict for each cell-type.

fname str | Path | NoneUnion[str, Path, None] (default: None)

The output file name. If None, not save the figure.

display bool (default: True)

If False, not plot the figure.

low_ylim float | NoneOptional[float] (default: None)

The low boundary of y axis.

high_ylim float | NoneOptional[float] (default: None)

The high boundary of y axis.

kwargs

Other parameters in seaborn.barplot

Return type

DataFrame

Returns

: The dataframe containing the proportion of delta_e in the sum of delta_e and e_0 in each cell-type.