HoloNet.plotting.find_genes_linked_to_ce#

HoloNet.plotting.find_genes_linked_to_ce(predicted_expr_type_MGC_df, predicted_expr_only_type_df, used_gene_list, target_all_gene_expr, plot_gene_list=None, fname=None, display=True, **kwargs)#

Plot the correlation of MGC model results with ground truth, and the results of model only using cell-type with ground truth.

Parameters
predicted_expr_type_MGC_df DataFrame

A dataframe for the generated expression of multiple genes in each cell from MGC model using CE network and cell-type information, as the output of ‘get_mgc_result_for_multiple_targets’ function.

predicted_expr_only_type_df DataFrame

A dataframe for the generated expression of multiple genes in each cell from model only using cell-type information, as the output of ‘get_mgc_result_for_multiple_targets’ function.

used_gene_list List[str]

List of used target gene names

target_all_gene_expr Tensor

The scaled expression tensor of target genes (cell_num * target_gene_num), from ‘get_gene_expr’ function.

plot_gene_list List[str] | NoneOptional[List[str]] (default: None)

The genes will be pointed out in the output figure.

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

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

display default: True

If False, not plot the figure.

kwargs

See in plt.scatter

Return type

DataFrame

Returns

: The correlation of MGC model results with ground truth, and the results of model only using cell-type with ground truth.