Skip to main content
Ctrl+K

HoloNet documentation

  • Installation
  • Tutorials
    • Analyzing and visualizing cell-cell communication events
    • Decoding the holograph of functional cell-cell communication events
  • API
    • HoloNet.preprocessing.load_brca_visium_10x
    • HoloNet.preprocessing.load_lr_df
    • HoloNet.preprocessing.get_expressed_lr_df
    • HoloNet.tools.elements_expr_df_calculate
    • HoloNet.tools.compute_ce_tensor
    • HoloNet.tools.filter_ce_tensor
    • HoloNet.tools.compute_ce_network_eigenvector_centrality
    • HoloNet.tools.compute_ce_network_degree_centrality
    • HoloNet.tools.cluster_lr_based_on_ce
    • HoloNet.tools.default_w_visium
    • HoloNet.predicting.get_continuous_cell_type_tensor
    • HoloNet.predicting.get_one_hot_cell_type_tensor
    • HoloNet.predicting.get_gene_expr
    • HoloNet.predicting.get_one_case_expr
    • HoloNet.predicting.adj_normalize
    • HoloNet.predicting.mgc_repeat_training
    • HoloNet.predicting.get_mgc_result
    • HoloNet.predicting.mgc_training_for_multiple_targets
    • HoloNet.predicting.get_mgc_result_for_multiple_targets
    • HoloNet.predicting.save_model_list
    • HoloNet.predicting.load_model_list
    • HoloNet.plotting.feature_plot
    • HoloNet.plotting.cell_type_level_network
    • HoloNet.plotting.plot_cell_type_proportion
    • HoloNet.plotting.ce_hotspot_plot
    • HoloNet.plotting.ce_cell_type_network_plot
    • HoloNet.plotting.lr_umap
    • HoloNet.plotting.lr_clustering_dendrogram
    • HoloNet.plotting.lr_cluster_ce_hotspot_plot
    • HoloNet.plotting.lr_rank_in_mgc
    • HoloNet.plotting.fce_cell_type_network_plot
    • HoloNet.plotting.delta_e_proportion
    • HoloNet.plotting.plot_mgc_result
    • HoloNet.plotting.find_genes_linked_to_ce
    • HoloNet.plotting.detect_pathway_related_genes
    • HoloNet.plotting.select_w
  • References
  • .rst

HoloNet.plotting.detect_pathway_related_genes

Contents

  • detect_pathway_related_genes()

HoloNet.plotting.detect_pathway_related_genes#

HoloNet.plotting.detect_pathway_related_genes(trained_MGC_model_list, lr_df, used_gene_list, X, adj, cell_type_names, pathway_oi, fname=None, xticks_position='bottom', figsize=None, linewidths=0.6)#

Plotting Heatmaps for specific pathway related genes, and which ligand receptors affect these genes, and these FCEs come from which cell types.

Parameters
trained_MGC_model_list List[List[MGC_Model]]

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

lr_df DataFrame

The used preprocessed LR-gene dataframe, must contain the ‘LR_pair’ column.

used_gene_list List[str]

List of used target gene names.

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]

List of cell-type names.

pathway_oi str

The pathway on interest. Should in the ‘pathway_name’ column of lr_df.

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

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

xticks_position default: 'bottom'

Plot xticks at ‘top’ or ‘bottom’.

figsize default: None

Set the figsize.

linewidths default: 0.6

Set the widths of inner lines of heatmap.

Return type

(DataFrame, DataFrame, DataFrame)

Returns

: Three dataframes for the three subplots.

previous

HoloNet.plotting.find_genes_linked_to_ce

next

HoloNet.plotting.select_w

Contents
  • detect_pathway_related_genes()

By Li Haochen

© Copyright 2023, Li Haochen..