malariagen_data.ag3.Ag3.plot_frequencies_interactive_map#

Ag3.plot_frequencies_interactive_map(ds: Dataset, center: Tuple[int, int] = (-2, 20), zoom: int = 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, int], optional, default: (-2, 20)

Location to center the map.

zoomint, 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.