eugene.plot.multifilter_viz¶
- eugene.plot.multifilter_viz(sdata, filter_nums, pfms_var, num_rows=None, num_cols=None, titles=None, figsize=(12, 10), save=None, **kwargs)¶
Plot multiple filters in a SeqData object’s uns dictionary as PWM logos.
This function wraps filter_viz. Getting the figure to look nice it more of an art than a science. In experimenting so far, I’ve found that a 8x4 grid with a (12, 10) figure size works well.
- Parameters:
sdata (SeqData) – The SeqData object with sequences and pfms to plot a logo for
filter_nums (list) – The filter ids to plot
pfms_var (str) – The var in the xarray dataset to use to get the pfms
num_rows (int) – The number of rows to use for the figure
num_cols (int) – The number of columns to use for the figure
uns_var (str) – The key in the sdata.uns dictionary that contains the pfms to plot
figsize (tuple) – The figure size to use for the plot
save (PathLike) – The path to save the figure to
- Returns:
axes – The axes objects if return_axes is True
- Return type:
list