INNER CODE UNIT · Python
set_highlight_pos
moshi4/pyMSAviz · src/pymsaviz/msaviz.py:283
def set_highlight_pos(self, positions: list[tuple[int, int] | int]) -> None:
"""Set user-defined highlight MSA positions
Parameters
----------
positions : list[tuple[int, int] | int]
Highlight positions. int and tuple range mixture positions can be specified.
(e.g. If `[1, 5, (10, 13), 18]` is set, `1, 5, 10, 11, 12, 13, 18`
positions are highlighted)
"""
self._highlight_positions = self._parse_positions(positions)
def set_highlight_pos_by_ident_thr(
self, min_thr: float = 0, max_thr: float = 100
) -> None:
"""Set highlight MSA positions by consensus identity threshold
Parameters