eugene.plot.multiseq_track

eugene.plot.multiseq_track(sdata, seq_ids, attrs_vars, id_var='id', ylabs=None, width=None, height=None, return_axes=False, save=None, **kwargs)

Plot the saliency tracks for multiple sequences across multiple importance scores in one plot.

Wraps the seq_track function to plot multiple sequences at once across multiple importance scores.

Attempts to make each sequence width proportional to its length and multiply by the number of sequences if no width is passed in.

Attempts to make each sequence height proportional to the number of attr_vars passed in (the number of different importance scores to plot) if no height is passed in.

Parameters:
  • sdata (xr.Dataset) – The SeqData object with sequences and importances to plot a logo for

  • seq_ids (list) – The sequence ids to plot

  • attr_vars (list) – The keys in the sdata.uns dictionary that contain the importance scores to plot

  • ylabs (list) – The ylabs to use for each importance score

  • width (int) – The width of the figure to plot

  • height (int) – The height of the figure to plot

  • return_axes (bool) – Whether to return the matplotlib axes objects

  • save (str) – The path to save the figure to

  • **kwargs (dict) – Additional keyword arguments to pass to the seq_track function

Returns:

axes – The axes objects if return_axes is True

Return type:

list