crested.pl.locus.track

Contents

crested.pl.locus.track#

crested.pl.locus.track(scores, range=None, title=None, ylim=None, **kwargs)#

Plot a predicted locus track, like a Borzoi prediction or BigWig track.

Function is still in beta, and its API can be changed in future updates. Default figure size is (20, 3).

Parameters:
  • scores – A 1d numpy array of heights along the track.

  • range (default: None) – A tuple of coordinates that are being plotted between, as (chr, start, end) or (start, end)

  • title (default: None) – The title of the plot.

  • ylim (default: None) – Y limits for the plot.

  • kwargs – Additional arguments passed to render_plot() to control the final plot output. Please see render_plot() for details.

Example

>>> crested.pl.locus.track(
...     preds[0, :, class_idx],
...     range=(chrom, start, end),
...     title="Mouse Borzoi ATAC:MGL predictions around the FIRE enhancer"
... )
../../../_images/locus_track.png