alphagenome.visualization.plot_components.Sashimi

alphagenome.visualization.plot_components.Sashimi#

class alphagenome.visualization.plot_components.Sashimi(junction_track, fig_height=1.0, filter_threshold=None, ylabel_template='{name}', ylabel_horizontal=True, annotate_counts=True, normalize_values=True, interval_contained=True, rng=None)[source]#

Visualizes splice junctions as a Sashimi plot.

Attributes#

Table

num_axes

Returns the number of matplotlib axes required by the component.

Sashimi.num_axes#

Returns the number of matplotlib axes required by the component.

Sashimi.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 Sashimi plot on the given axis.

Sashimi.get_ax_height(axis_index)[source]#

Returns the height of the axis.

Return type:

float

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

Plots the Sashimi plot 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.