alphagenome.visualization.plot_components.ContactMaps#

class alphagenome.visualization.plot_components.ContactMaps(tdata, track_height=10.0, vmin=-1.0, vmax=2.0, norm=None, ylabel_horizontal=True, ylabel_template='{name}', cmap=None, max_num_tracks=10, **kwargs)[source]#

Component for visualizing contact maps.

The vmin and vmax parameters control the color scaling of the heatmap. Values outside this range will be clipped to vmin or vmax.

Attributes#

Table

num_axes

Returns the number of matplotlib axes required by the component.

ContactMaps.num_axes#

Returns the number of matplotlib axes required by the component.

ContactMaps.total_height#

Returns the total figure height.

Methods#

Table

get_ax_height(axis_index)

Returns the height of the axis.

plot_ax(ax, axis_index, interval)

Plots the contact map on the given axis.

ContactMaps.get_ax_height(axis_index)[source]#

Returns the height of the axis.

Return type:

float

ContactMaps.plot_ax(ax, axis_index, interval)[source]#

Plots the contact map on the given axis.

Parameters:
  • ax (Axes) – The matplotlib axis to plot on.

  • axis_index (int) – The index of the axis.

  • interval (Interval) – The genomic interval to plot.