Plots: plt#

Import Stereopy :

import stereo as st

Here supports both static and interactive plotting modes to visualize our analysis results vividly.

Plot Collection#

The plot collection for StereoExpData object.

plots.PlotCollection.cells_plotting([...])

Plot the cells.

plots.PlotCollection.cluster_scatter(res_key)

Spatial distribution ofter scatter.

plots.PlotCollection.gaussian_smooth_scatter_by_gene([...])

Draw the spatial distribution of expression quantity of the gene specified by gene names, just only for Gaussian smoothing, inluding the raw and smoothed.

plots.PlotCollection.genes_count([x_label, ...])

Quality control index distribution visualization.

plots.PlotCollection.highly_variable_genes(res_key)

Scatter of highly variable genes

plots.PlotCollection.hotspot_local_correlations([...])

Visualize module scores with spatial position.

plots.PlotCollection.hotspot_modules([...])

Plot hotspot modules

plots.PlotCollection.interact_cluster(res_key)

Interactive spatial scatter after clustering.

plots.PlotCollection.interact_spatial_scatter([...])

Interactive spatial distribution.

plots.PlotCollection.interact_annotation_cluster(...)

Interactive spatial scatter after clustering.

plots.PlotCollection.marker_genes_volcano(...)

Volcano plot of maker genes.

plots.PlotCollection.marker_genes_heatmap(res_key)

Heatmap plot of maker genes.

plots.PlotCollection.marker_genes_text(res_key)

Scatter plot of maker genes.

plots.PlotCollection.marker_genes_scatter(res_key)

Scatter of marker genes

plots.PlotCollection.spatial_scatter([...])

Spatial distribution of total_counts and n_genes_by_counts.

plots.PlotCollection.spatial_scatter_by_gene(...)

Draw the spatial distribution of expression quantity of the gene specified by gene names.

plots.PlotCollection.umap([gene_names, ...])

Scatter plot of UMAP after reducing dimensionalities.

plots.PlotCollection.violin([keys, x_label, ...])

Violin plot to show index distribution of quality control.

algorithm.cell_cell_communication.PlotCellCellCommunication.ccc_dot_plot([...])

Generate dot plot based on the result of CellCellCommunication.

algorithm.cell_cell_communication.PlotCellCellCommunication.ccc_heatmap([...])

Heatmap of number of interactions in each cluster pairs.

algorithm.cell_cell_communication.PlotCellCellCommunication.ccc_circos_plot([...])

Circos plot of number of interactions in each cluster pairs.

algorithm.cell_cell_communication.PlotCellCellCommunication.ccc_sankey_plot(...)

Sankey-plot showing inter- and/or intra-cellular gene interaction.

algorithm.regulatory_network_inference.PlotRegulatoryNetwork.auc_heatmap_by_group([...])

Plot heatmap for Regulon specificity scores (RSS) value

algorithm.regulatory_network_inference.PlotRegulatoryNetwork.auc_heatmap([...])

Plot heatmap for auc value for regulons

algorithm.regulatory_network_inference.PlotRegulatoryNetwork.grn_dotplot(...)

Intuitive way of visualizing how feature expression changes across different identity classes (clusters).

algorithm.regulatory_network_inference.PlotRegulatoryNetwork.spatial_scatter_by_regulon_3D([...])

Plot genes of one regulon on a 3D map

algorithm.regulatory_network_inference.PlotRegulatoryNetwork.spatial_scatter_by_regulon([...])

Plot genes of one regulon on a 2D map

plots.PlotCoOccurrence.co_occurrence_plot([...])

Visualize the co-occurence by line plot; each subplot represent a celltype, each line in subplot represent the co-occurence value of the pairwise celltype as the distance range grow.

plots.PlotCoOccurrence.co_occurrence_heatmap(...)

Visualize the co-occurence by heatmap; each subplot represent a certain distance, each heatmap in subplot represent the co-occurence value of the pairwise celltype.

plots.PlotPaga.paga_plot([adjacency, ...])

abstract paga plot for the paga result.

plots.PlotPaga.paga_compare([adjacency, ...])

abstract paga plot for the paga result and cell distribute around paga.

plots.PlotDendrogram.dendrogram([...])

Plots a dendrogram using the precomputed dendrogram information stored in data.tl.result[res_key]

plots.ClustersGenesScatter.clusters_genes_scatter(...)

Scatter representing mean expression of genes on each cell cluster.

plots.ClustersGenesHeatmap.clusters_genes_heatmap(...)

Heatmap representing mean expression of genes on each cell cluster.

plots.PlotTimeSeries.boxplot_transit_gene(...)

show a boxplot of a specific gene expression in branch of use_col

plots.PlotTimeSeries.TVG_volcano_plot(...[, ...])

Use fuzzy C means cluster method to cluster genes based on 1-p_value of celltypes in branch

plots.PlotTimeSeries.paga_time_series_plot(...)

spatial trajectory plot for paga in time_series multiple slice dataset

plots.PlotTimeSeries.fuzz_cluster_plot(...)

a line plot to show the trend of each cluster of fuzzy C means

plots.PlotTimeSeriesAnalysis.time_series_tree_plot([...])

a tree plot to display the cell amounts changes during time series, trajectory can be add to plot by edges.

plots.PlotTimeSeriesAnalysis.ms_paga_time_series_plot(use_col)

spatial trajectory plot for paga in time_series multiple slice dataset

plots.PlotElbow.elbow([pca_res_key, n_pcs, ...])

Plot elbow for pca.

plots.PlotGenesInPseudotime.plot_genes_in_pseudotime([...])

Distribution of expression count of marker genes along with pseudotime

plots.PlotVec.plot_vec(x_raw, y_raw, ty_raw, ...)

Plot vectors or streams of pseudo-time.

plots.PlotVec.plot_time_scatter([group, ...])

Spatial distribution of pseudotime.

plots.PlotVec3D.plot_vec_3d(x_raw, y_raw, ...)

Plot vector field of cell trajectories embodied in 3D space.