alphagenome.visualization.plot_components.OverlaidTracks#

class alphagenome.visualization.plot_components.OverlaidTracks(tdata, colors=None, cmap='viridis', track_height=1.0, ylabel_template='{name}:{strand}', ylabel_horizontal=True, shared_y_scale=False, alpha=0.8, order_tdata_by_mean=True, max_num_tracks=50, legend_loc='upper right', **kwargs)[source]#

Component for visualizing overlaid track pairs, such as REF/ALT tracks.

Attributes#

Table

num_axes

Returns the number of matplotlib axes required by the component.

OverlaidTracks.num_axes#

Returns the number of matplotlib axes required by the component.

OverlaidTracks.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 overlaid tracks on the given axis.

OverlaidTracks.get_ax_height(axis_index)[source]#

Returns the height of the axis.

Return type:

float

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

Plots the overlaid tracks 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.