gcell.cell.celltype.GETHydraCellType.plotly_motif_subnet

gcell.cell.celltype.GETHydraCellType.plotly_motif_subnet#

GETHydraCellType.plotly_motif_subnet(motif, m, type='neighbors', threshold='auto')[source]#

Plots a subnet of motifs.

This function generates a subnet of motifs based on the given parameters and plots it using plotly. The subnet is preprocessed and the TF expression string and mean are calculated for each motif in the cluster gene list.

Parameters: motif (Motif): The motif object to plot. m (int): The motif index to plot. type (str, optional): The type of subnet to generate. Can be ‘neighbors’, ‘parents’, or ‘children’. Defaults to ‘neighbors’. threshold (str or float, optional): The threshold for preprocessing the network. Can be ‘auto’ or a float. If ‘auto’, the threshold is set to the 70th percentile of the absolute weight values. Defaults to ‘auto’.

Returns: plotly.graph_objs._figure.Figure: The plotly figure object of the plotted subnet.