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: KLIFSConfig

Configuration 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_transparency

Cartoon transparency applied to colored/highlighted residues (0 = opaque, 1 = invisible).

label_connector

Whether to draw leader/connector lines from each residue to its label.

label_min_dist

Minimum distance (angstroms) between labels for collision avoidance.

label_offset

Angstroms offset from CA for label pseudoatom placement.

label_size

Font size for residue labels.

label_spring_strength

Spring force pulling labels back toward ideal position (0 = no spring).

str_attr

'KLIFS').

list_stick_positions

List of 0-indexed positions in KLIFS sequence for stick representation (adaptive positions).

seq_align

SequenceAlignment object providing kinase info and dict_align.

list_idx

List of 1-indexed residue positions to be highlighted, generated in __post_init__.

list_color

List of colors for the residues to be highlighted, generated in __post_init__.

list_style

List of styles for the residues to be highlighted, generated in __post_init__.

list_label

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.