HotspotAUCHeatmap#

class astropathdb.plotting.auc_heatmaps.HotspotAUCHeatmap(auc_data, expression_marker='pd1', group_mapping='axis_defaults', ntiles=3, metric='AUC', *, add_zeros=True, aspercent=True, colorbar_kwargs=MappingProxyType({}), heatmap_kwargs=MappingProxyType({}), ax=None, fig_kwargs=MappingProxyType({}), **axes_kwargs)#

class for computing the AUC Heatmap.

Parameters:

HotspotAUCHeatmap Attributes#

HotspotAUCHeatmap Methods#

show()

Show the heatmap on the axes provided.

HotspotAUCHeatmap References#

Attribute Reference#

attribute N_TERTILES: ClassVar[int] = 3#
attribute N_HALF: ClassVar[int] = 2#
attribute N_QUARTILES: ClassVar[int] = 4#
attribute plot_context#

Method Reference#

method show()#

Show the heatmap on the axes provided.

Return type:

tuple[Figure, Axes]

Private Attribute Reference#

attribute __expression_marker = ''#
attribute __auc_data#

Private Method Reference#

method __fig_defaults(kwargs)#
Parameters:

kwargs (Mapping[str, Any])

Return type:

dict

method __axes_defaults(kwargs)#
Parameters:

kwargs (Mapping[str, Any])

Return type:

dict

method __colorbar_defaults(colorbar_kwargs, metric)#
Parameters:
Return type:

None

method __heatmap_defaults(heatmap_kwargs)#
Parameters:

heatmap_kwargs (Mapping[str, Any])

Return type:

None

static __group_mapping_defaults(group_mapping)#
Parameters:

group_mapping (str | Mapping[str, Any])

Return type:

dict

static __map_group_names(x, group_mapping)#
Parameters:
Return type:

str

static __remove_expressions(x, expression_groups)#
Parameters:
Return type:

str

static __replace_quantile_strings(x, ntiles)#
Parameters:
Return type:

str

method __format_ylabel_text(x, group_mapping, ntiles)#
Parameters:
Return type:

str

method __parse_ylabels(group_mapping, ntiles)#
Parameters:
Return type:

None

method __add_zeros_and_sort_columns(*, add_zeros, aspercent)#
Parameters:
Return type:

None