:class:`~.BuildHeatmap` ================================================================================================================================================== .. py:class:: astropathdb.tools.spatial_heatmap.BuildHeatmap(*args, column = None, log_transform = True, scale = 256, density = True, cmap = 'inferno', alpha = 0.5, **kwargs) :single-line-parameter-list: Bases: :class:`~.astropathdb.tools.toolutils.SampleToolsBase` Build a single dimensional heatmap. Need to update!!!! :class:`~.astropathdb.tools.spatial_heatmap.BuildHeatmap` *Attributes* -------------------------------------------------------------------------------------------------------------------------------------------------- .. autoapisummary:: :signatures: none astropathdb.tools.spatial_heatmap.BuildHeatmap.column astropathdb.tools.spatial_heatmap.BuildHeatmap.log_transform astropathdb.tools.spatial_heatmap.BuildHeatmap.scale astropathdb.tools.spatial_heatmap.BuildHeatmap.density astropathdb.tools.spatial_heatmap.BuildHeatmap.cmap astropathdb.tools.spatial_heatmap.BuildHeatmap.alpha astropathdb.tools.spatial_heatmap.BuildHeatmap.table_id astropathdb.tools.spatial_heatmap.BuildHeatmap.image_id astropathdb.tools.spatial_heatmap.BuildHeatmap.sdata astropathdb.tools.spatial_heatmap.BuildHeatmap.astrodb astropathdb.tools.spatial_heatmap.BuildHeatmap.sampleid :class:`~.astropathdb.tools.spatial_heatmap.BuildHeatmap` *Methods* -------------------------------------------------------------------------------------------------------------------------------------------------- .. autoapisummary:: :signatures: none astropathdb.tools.spatial_heatmap.BuildHeatmap.get_expression_weights astropathdb.tools.spatial_heatmap.BuildHeatmap.get_2d_mesh_on_astrosample astropathdb.tools.spatial_heatmap.BuildHeatmap.rescale_mesh astropathdb.tools.spatial_heatmap.BuildHeatmap.apply_color_mapping_to_matrix astropathdb.tools.spatial_heatmap.BuildHeatmap.alpha_shade_with_image astropathdb.tools.spatial_heatmap.BuildHeatmap.get_heatmap astropathdb.tools.spatial_heatmap.BuildHeatmap.get_overlaid_heatmap astropathdb.tools.spatial_heatmap.BuildHeatmap.store_spatial_heatmap :class:`~.astropathdb.tools.spatial_heatmap.BuildHeatmap` *References* -------------------------------------------------------------------------------------------------------------------------------------------------- .. py:currentmodule:: astropathdb.tools.spatial_heatmap.BuildHeatmap *Attribute Reference* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. py:attribute:: column :type: str :value: None .. py:attribute:: log_transform :type: bool :value: True .. py:attribute:: scale :type: float :value: 256 .. py:attribute:: density :type: bool :value: True .. py:attribute:: cmap :value: 'inferno' .. py:attribute:: alpha :value: 0.5 .. py:attribute:: table_id .. py:attribute:: image_id .. py:attribute:: sdata .. py:attribute:: astrodb :value: None .. py:attribute:: sampleid :value: None *Method Reference* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. py:method:: get_expression_weights() :single-line-parameter-list: Return weights for each x and y spot of the column attribute. .. py:method:: get_2d_mesh_on_astrosample(weights) :single-line-parameter-list: Use the 2D mesh function with the given params. .. py:method:: rescale_mesh(mesh) :single-line-parameter-list: Rescale the 2D mesh to the image coordinates. .. py:method:: apply_color_mapping_to_matrix(rescaled_mesh) :single-line-parameter-list: Apply the cmap to get a colored version of a mesh. .. py:method:: alpha_shade_with_image(heatmap) :single-line-parameter-list: Add two images with alpha shading. .. py:method:: get_heatmap() :single-line-parameter-list: Compute a spatial heatmap for the parameters. .. py:method:: get_overlaid_heatmap() :single-line-parameter-list: Get a heatmap overlaid with it's correspondin image. .. py:method:: store_spatial_heatmap(heatmap, label = None) :single-line-parameter-list: Stores the spatial heatmap in the images section of the data object.