INNER CODE UNIT · Python
set_custom_color_func
moshi4/pyMSAviz · src/pymsaviz/msaviz.py:265
def set_custom_color_func(
self,
custom_color_func: Callable[[int, int, str, MSA], str | None],
):
"""Set user-defined custom color func (Overwrite all other color setting)
User can change the color of each residue specified
by the row and column position of the MSA.
Parameters
----------
custom_color_func : Callable[[int, int, str, MSA], str | None]
Custom color function.
`Callable[[int, int, str, MSA], str | None]` means
`Callable[[row_pos, col_pos, seq_char, msa], hexcolor | None]`
"""
self._custom_color_func = custom_color_func