malariagen_data.af1.Af1.plot_frequencies_interactive_map#
- Af1.plot_frequencies_interactive_map(ds: Dataset, center: Tuple[int | float, int | float] = (-2, 20), zoom: int | float = 3, title: bool | str = True, epilogue: bool | str = True)#
Create an interactive map with markers showing variant frequencies or cohorts grouped by area (space), period (time) and taxon.
Parameters#
- dsDataset
A dataset of variant frequencies, such as returned by snp_allele_frequencies_advanced(), aa_allele_frequencies_advanced() or gene_cnv_frequencies_advanced().
- centertuple[int or float, int or float], optional, default: (-2, 20)
Location to center the map.
- zoomint or float, optional, default: 3
Initial zoom level.
- titlebool or str, optional, default: True
If True, attempt to use metadata from input dataset as a plot title. Otherwise, use supplied value as a title.
- epiloguebool or str, optional, default: True
Additional text to display below the map.
Returns#
An interactive map with widgets for selecting which variant, taxon and time period to display.