plot_haplotype_network 's parameter color is defined as a plotly_params.color i.e. Annotated[Optional[Union[str, Mapping]], "Name of variable to use to color the markers.",] but the code uses it as a column identifier on the haplotypes' dataframe. The function is also in anopheles.py and not in the anoph folder which may have caused it not be tested as extensively.