ContactMapsDiff#
- class alphagenome.visualization.plot_components.ContactMapsDiff(tdata, track_height=10.0, vmin=-1.0, vmax=1.0, ylabel_horizontal=True, ylabel_template='{name}', cmap='RdBu_r', max_num_tracks=10, **kwargs)[source]#
Component for visualizing contact map differences.
This component visualizes the difference between two contact maps. It uses a diverging red-blue color map with the center white color pinned to a value of zero, with negative values being blue and positive values being red.
The
vminandvmaxparameters control the color scaling of the heatmap. Values outside this range will be clipped tovminorvmax.Initializes the
ContactMapsDiffcomponent.- Parameters:
tdata (
TrackData) – TheTrackDataobject containing the contact map differences.track_height (
float(default:10.0)) – The height of each contact map.vmin (
float|None(default:-1.0)) – The minimum value for the color scale.vmax (
float|None(default:1.0)) – The maximum value for the color scale.ylabel_horizontal (
bool(default:True)) – Whether to make the y-axis labels horizontal.ylabel_template (
str(default:'{name}')) – A template for the y-axis labels.cmap (
LinearSegmentedColormap|str|None(default:'RdBu_r')) – The colormap to use for the contact maps.max_num_tracks (
int(default:10)) – The maximum number of tracks to plot.**kwargs – Additional keyword arguments to pass to the plotting function.
Methods
|
Returns the height of the axis. |
|
Plots the contact map on the given axis. |