bsxplorer.EnrichmentResult.plot_density_mpl
- EnrichmentResult.plot_density_mpl(fig_axes: tuple | None = None, flank_windows: int | None = None, body_windows: int | None = None, smooth: int | None = None, norm: bool = False, tick_labels: list[str] | None = None, label: str | None = None, **mpl_kwargs)[source]
Plot coverage, returned by
RegAlignResult.metagene_coverage()
- Parameters:
fig_axes – Tuple of ( matplotlib.pyplot.Figure, matplotlib.axes.Axes). New are created if
None
flank_windows – Number of windows for flanking regions (set None for no resampling).
body_windows – Number of windows for body region (set None for no resampling).
smooth – Number of windows for SavGol filter (set 0 for no smoothing). Applied only if flank_windows and body_windows params are specified.
norm – Should the output plot be normalized by maximum coverage.
tick_labels – Labels for upstream, body region start and end, downstream (e.g. TSS, TES). Exactly 5 need to be provided. Set
None
to disable.label – Label of line on line-plot
mpl_kwargs – Keyword arguments for matplotlib.plot
- Return type:
matplotlib.pyplot.Figure