BuildHeatmap#
- class astropathdb.tools.spatial_heatmap.BuildHeatmap(*args, column=None, log_transform=True, scale=256, density=True, cmap='inferno', alpha=0.5, **kwargs)#
Bases:
SampleToolsBaseBuild a single dimensional heatmap.
Need to update!!!!
BuildHeatmap Attributes#
BuildHeatmap Methods#
Return weights for each x and y spot of the column attribute. |
|
|
Use the 2D mesh function with the given params. |
|
Rescale the 2D mesh to the image coordinates. |
|
Apply the cmap to get a colored version of a mesh. |
|
Add two images with alpha shading. |
Compute a spatial heatmap for the parameters. |
|
Get a heatmap overlaid with it's correspondin image. |
|
|
Stores the spatial heatmap in the images section of the data object. |
BuildHeatmap References#
Attribute Reference#
- attribute cmap = 'inferno'#
- attribute alpha = 0.5#
- attribute table_id#
- attribute image_id#
- attribute sdata#
- attribute astrodb = None#
- attribute sampleid = None#
Method Reference#
- method get_expression_weights()#
Return weights for each x and y spot of the column attribute.
- Return type:
ndarray | None
- method get_2d_mesh_on_astrosample(weights)#
Use the 2D mesh function with the given params.
- method rescale_mesh(mesh)#
Rescale the 2D mesh to the image coordinates.
- method apply_color_mapping_to_matrix(rescaled_mesh)#
Apply the cmap to get a colored version of a mesh.
- method alpha_shade_with_image(heatmap)#
Add two images with alpha shading.
- method get_overlaid_heatmap()#
Get a heatmap overlaid with it’s correspondin image.
- Return type: