mkt.databases.app.schema.KLIFSAdaptiveConfig
- class mkt.databases.app.schema.KLIFSAdaptiveConfig(seq_align: ~mkt.databases.app.sequences.SequenceAlignment, label_offset: float = 20.0, label_min_dist: float = 6.0, label_spring_strength: float = 0.0, label_size: int = 14, label_connector: bool = True, highlight_cartoon_transparency: float = 0.0, *, str_attr: str = 'KLIFS', list_stick_positions: list[int] = <factory>)[source]
Bases:
KLIFSConfigConfiguration for highlighting adaptive KLIFS residues in PyMOL.
- __init__(seq_align: ~mkt.databases.app.sequences.SequenceAlignment, label_offset: float = 20.0, label_min_dist: float = 6.0, label_spring_strength: float = 0.0, label_size: int = 14, label_connector: bool = True, highlight_cartoon_transparency: float = 0.0, *, str_attr: str = 'KLIFS', list_stick_positions: list[int] = <factory>) None
Methods
__eq__(other)Return self==value.
__init__(seq_align[, label_offset, ...])__post_init__()_generate_list_idx_from_dict_align_with_attr()Generate list of 0-indexed attribute positions from dict_align.
_index_stick_region()Extract the indices of the residues in the KLIFS pocket region by removing gaps.
generate_labels(list_idx)Generate labels for highlighted residues.
generate_list_idx()Generate list of 0-indexed positions for KLIFS residues.
generate_style_color_lists(list_idx)Generate style and color lists for KLIFS residues.
return_list_cif_idx()Return list of 0-indexed positions corresponding to the CIF sequence.
return_list_idx_intersect()Return list of 0-indexed positions at intersection of CIF and attribute sequences.
return_list_intersect_color_style()Generate the indices, styles, and colors for highlighting.
Attributes
__dataclass_fields____dataclass_params____match_args__highlight_cartoon_transparencyCartoon transparency applied to colored/highlighted residues (0 = opaque, 1 = invisible).
label_connectorWhether to draw leader/connector lines from each residue to its label.
label_min_distMinimum distance (angstroms) between labels for collision avoidance.
label_offsetAngstroms offset from CA for label pseudoatom placement.
label_sizeFont size for residue labels.
label_spring_strengthSpring force pulling labels back toward ideal position (0 = no spring).
str_attr'KLIFS').
List of 0-indexed positions in KLIFS sequence for stick representation (adaptive positions).
SequenceAlignment object providing kinase info and dict_align.
List of 1-indexed residue positions to be highlighted, generated in __post_init__.
List of colors for the residues to be highlighted, generated in __post_init__.
List of styles for the residues to be highlighted, generated in __post_init__.
List of labels for the residues to be highlighted (None for no label).
- __init__(seq_align: ~mkt.databases.app.sequences.SequenceAlignment, label_offset: float = 20.0, label_min_dist: float = 6.0, label_spring_strength: float = 0.0, label_size: int = 14, label_connector: bool = True, highlight_cartoon_transparency: float = 0.0, *, str_attr: str = 'KLIFS', list_stick_positions: list[int] = <factory>) None
- list_color: list[str]
List of colors for the residues to be highlighted, generated in __post_init__.
- list_idx: list[int]
List of 1-indexed residue positions to be highlighted, generated in __post_init__.
- list_label: list[str | None]
List of labels for the residues to be highlighted (None for no label).
- list_stick_positions: list[int]
List of 0-indexed positions in KLIFS sequence for stick representation (adaptive positions).
- list_style: list[str]
List of styles for the residues to be highlighted, generated in __post_init__.
- seq_align: SequenceAlignment
SequenceAlignment object providing kinase info and dict_align.