gdata.GenomeDataLoader.plot#

GenomeDataLoader.plot(region, tracks, *, savefig=None)#

Plots the genomic signal for a specified region and tracks.

This method generates a plot of the genomic signal for the specified region and tracks. If savefig is provided, it saves the plot to the specified file; otherwise, it displays the plot.

Parameters:
  • region (str) – The genomic region to plot, in the format ‘chr:start-end’.

  • tracks (list[str]) – A list of track names to plot.

  • savefig (Optional[PathBuf]) – If provided, saves the plot to this file instead of displaying it.

Return type:

None