dynamo.pl.hivePlot
- dynamo.pl.hivePlot(adata, edges_list, cluster, cluster_names=None, weight_threshold=0.0001, figsize=(6, 6), save_show_or_return='show', save_kwargs={})[source]
Hive plot of cell cluster specific gene regulatory networks.
- Parameters:
adata (
AnnData
.) – AnnData object.edges_list (dict of pandas.DataFrame) – A dictionary of dataframe of interactions between input genes for each group of cells based on ranking information of Jacobian analysis. Each composite dataframe has regulator, target and weight three columns.
cluster (str) – The group key that points to the columns of adata.obs.
cluster_names (str (default: None)) – The group whose network and arcplot will be constructed and created.
weight_threshold (float (default: weight_threshold)) – The threshold of weight that will be used to trim the edges for network reconstruction.
figsize (None or [float, float] (default: (6, 6)) – The width and height of each panel in the figure.
save_show_or_return (str {‘save’, ‘show’, ‘return’} (default: show)) – Whether to save, show or return the figure.
save_kwargs (dict (default: {})) – A dictionary that will passed to the save_fig function. By default it is an empty dictionary and the save_fig function will use the {“path”: None, “prefix”: ‘hiveplot’, “dpi”: None, “ext”: ‘pdf’, “transparent”: True, “close”: True, “verbose”: True} as its parameters. Otherwise you can provide a dictionary that properly modify those keys according to your needs.
- Returns:
Nothing but plot a hive plot of the input cell cluster specific direct network.