mkt.databases.plot.plot_region_gap_violin

mkt.databases.plot.plot_region_gap_violin(dict_in: dict[str, Any], path_save: str, cfg: RegionGapViolinConfig | None = None, rc: MatplotlibRCConfig | None = None) None[source]

Plot the combined UniProt->KLIFS residue map over region-gap violins.

The top panel maps the KLIFS-region span of the UniProt sequence (inter fillers sized to the median gap, intra fillers length 1, ellipses for the rest of the sequence) onto the contiguous KLIFS pocket residues via colored connectors (bands by default, ribbons when cfg.use_ribbon). The two bottom panels show the inter- and intra-region gap-length distributions as violins with jittered points on separate log-scaled axes. Only kinases with a KLIFS pocket annotation are included; all statistics are computed on the fly.

Parameters:
  • dict_in (dict[str, Any]) – Dictionary of KinaseInfo objects.

  • path_save (str) – Directory in which to save the plot.

  • cfg (RegionGapViolinConfig | None) – Plot aesthetics config; uses defaults when None.

  • rc (MatplotlibRCConfig | None) – Matplotlib rcParams config; uses defaults when None.

Return type:

None