:class:`~.HotSpotAUC` =============================================================================================================================================================== .. py:class:: astropathdb.analysis.quantized_tiles.density_auc.HotSpotAUC(hotspot_data, groups_df, negative_correlations = 'axis_defaults', expression_marker = 'pd1', metric = 'AUC', group_filters = 'axis_defaults') :single-line-parameter-list: class for computing the AUC Heatmap. :param hotspot_data: A DataFrame containing the hotspot data. :param groups_df: A DataFrame containing the group information. :param negative_correlations: A list of negative correlations to consider. :param expression_marker: The expression marker to use. :param metric: The metric to use. :param group_filters: A list of group filters to apply. :class:`~.astropathdb.analysis.quantized_tiles.density_auc.HotSpotAUC` *Attributes* --------------------------------------------------------------------------------------------------------------------------------------------------------------- .. autoapisummary:: :signatures: none astropathdb.analysis.quantized_tiles.density_auc.HotSpotAUC.auc_data :class:`~.astropathdb.analysis.quantized_tiles.density_auc.HotSpotAUC` *References* --------------------------------------------------------------------------------------------------------------------------------------------------------------- .. py:currentmodule:: astropathdb.analysis.quantized_tiles.density_auc.HotSpotAUC *Attribute Reference* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. py:attribute:: auc_data *Private Attribute Reference* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. py:attribute:: __metric :value: '' .. py:attribute:: __groups_df *Private Method Reference* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. py:method:: __handle_default_mappings(variable, default_mapping) :single-line-parameter-list: :staticmethod: .. py:method:: __handle_default_negative_correlations(negative_correlations) :single-line-parameter-list: .. py:method:: __handle_default_group_filters(group_filters, expression_marker) :single-line-parameter-list: .. py:method:: __parse_columns(hotspot_data, expression_marker) :single-line-parameter-list: .. py:method:: __filter_hotspot_data(hotspot_data) :single-line-parameter-list: Filter hotspot output data on the expression marker and group_filters. Valid group filters are: - quantile: Remove the data without a tertile specification (always keep negatives) - binary: Remove the data with quantile expressions - list of phenotypes to exclude, will be passed to an ``isin`` regex search of 'mytype' with an ``|`` separator. .. py:method:: __compute_auc(filtered_hotspot_data) :single-line-parameter-list: Estimate AUC of filtered hotspot data. may need to add 'all;PDL1-' to the group filters. .. py:method:: __pivot_auc_data(auc_data_formatted) :single-line-parameter-list: .. py:method:: __sort_auc_pivot_data(auc_pivot_data) :single-line-parameter-list: .. py:method:: __compute_hotspot_auc(hotspot_data) :single-line-parameter-list: