mkt.databases.plot_config.RegionGapViolinConfig
- class mkt.databases.plot_config.RegionGapViolinConfig(figsize: list[float] = <factory>, height_ratios: list[float] = <factory>, width_ratios: list[float] = <factory>, hspace: float = 0.12, wspace: float = 0.06, left_adjust: float = 0.05, right_adjust: float = 0.985, top_adjust: float = 0.97, bottom_adjust: float = 0.085, use_ribbon: bool = False, inter_color: str = '#cfcfcf', intra_color: str = '#8c8c8c', ribbon_alpha: float = 0.3, map_name_fontsize: int = 21, map_range_fontsize: int = 17, map_track_fontsize: int = 25, map_region_fontsize: int = 12, map_ellipsis_fontsize: int = 32, map_legend_fontsize: int = 17, violin_fontsize: int = 22, fill_alpha: float = 0.3, violin_width: float = 0.85, violin_linewidth: float = 1.0, violin_edgecolor: str = '#333333', jitter_size: float = 7.0, jitter_std: float = 0.06, jitter_alpha: float = 0.8, jitter_edgecolor: str = 'black', jitter_linewidth: float = 0.25, jitter_mixed_color: str = 'orange', grid_alpha: float = 0.3, text_color: str = '#333333', ylabel_text: str = 'Number of residues', filename: str = 'region_gap_violin')[source]
Bases:
objectAesthetics for the combined UniProt->KLIFS map + region-gap violin figure.
The figure stacks the UniProt-to-KLIFS residue map (top, spanning the full width) over two grouped violin panels (inter- and intra-region gaps) on separate log-scaled axes. All statistics are computed on the fly.
- __init__(figsize: list[float] = <factory>, height_ratios: list[float] = <factory>, width_ratios: list[float] = <factory>, hspace: float = 0.12, wspace: float = 0.06, left_adjust: float = 0.05, right_adjust: float = 0.985, top_adjust: float = 0.97, bottom_adjust: float = 0.085, use_ribbon: bool = False, inter_color: str = '#cfcfcf', intra_color: str = '#8c8c8c', ribbon_alpha: float = 0.3, map_name_fontsize: int = 21, map_range_fontsize: int = 17, map_track_fontsize: int = 25, map_region_fontsize: int = 12, map_ellipsis_fontsize: int = 32, map_legend_fontsize: int = 17, violin_fontsize: int = 22, fill_alpha: float = 0.3, violin_width: float = 0.85, violin_linewidth: float = 1.0, violin_edgecolor: str = '#333333', jitter_size: float = 7.0, jitter_std: float = 0.06, jitter_alpha: float = 0.8, jitter_edgecolor: str = 'black', jitter_linewidth: float = 0.25, jitter_mixed_color: str = 'orange', grid_alpha: float = 0.3, text_color: str = '#333333', ylabel_text: str = 'Number of residues', filename: str = 'region_gap_violin') None
Methods
__eq__(other)Return self==value.
__init__([figsize, height_ratios, ...])Preset used by the 2026 preprint figures (current defaults).
Attributes
__dataclass_fields____dataclass_params____match_args__- __init__(figsize: list[float] = <factory>, height_ratios: list[float] = <factory>, width_ratios: list[float] = <factory>, hspace: float = 0.12, wspace: float = 0.06, left_adjust: float = 0.05, right_adjust: float = 0.985, top_adjust: float = 0.97, bottom_adjust: float = 0.085, use_ribbon: bool = False, inter_color: str = '#cfcfcf', intra_color: str = '#8c8c8c', ribbon_alpha: float = 0.3, map_name_fontsize: int = 21, map_range_fontsize: int = 17, map_track_fontsize: int = 25, map_region_fontsize: int = 12, map_ellipsis_fontsize: int = 32, map_legend_fontsize: int = 17, violin_fontsize: int = 22, fill_alpha: float = 0.3, violin_width: float = 0.85, violin_linewidth: float = 1.0, violin_edgecolor: str = '#333333', jitter_size: float = 7.0, jitter_std: float = 0.06, jitter_alpha: float = 0.8, jitter_edgecolor: str = 'black', jitter_linewidth: float = 0.25, jitter_mixed_color: str = 'orange', grid_alpha: float = 0.3, text_color: str = '#333333', ylabel_text: str = 'Number of residues', filename: str = 'region_gap_violin') None
- bottom_adjust: float = 0.085
- figsize: list[float]
- filename: str = 'region_gap_violin'
- fill_alpha: float = 0.3
- grid_alpha: float = 0.3
- height_ratios: list[float]
- hspace: float = 0.12
- inter_color: str = '#cfcfcf'
- intra_color: str = '#8c8c8c'
- jitter_alpha: float = 0.8
- jitter_edgecolor: str = 'black'
- jitter_linewidth: float = 0.25
- jitter_mixed_color: str = 'orange'
- jitter_size: float = 7.0
- jitter_std: float = 0.06
- left_adjust: float = 0.05
- map_ellipsis_fontsize: int = 32
- map_legend_fontsize: int = 17
- map_name_fontsize: int = 21
- map_range_fontsize: int = 17
- map_region_fontsize: int = 12
- map_track_fontsize: int = 25
- classmethod preprint_2026() RegionGapViolinConfig[source]
Preset used by the 2026 preprint figures (current defaults).
- ribbon_alpha: float = 0.3
- right_adjust: float = 0.985
- text_color: str = '#333333'
- top_adjust: float = 0.97
- use_ribbon: bool = False
- violin_edgecolor: str = '#333333'
- violin_fontsize: int = 22
- violin_linewidth: float = 1.0
- violin_width: float = 0.85
- width_ratios: list[float]
- wspace: float = 0.06
- ylabel_text: str = 'Number of residues'