admix.plot.lanc#

admix.plot.lanc(dset: Dataset | None = None, lanc: ndarray | None = None, ax=None, max_indiv: int | None = None) None[source]#

Plot local ancestry.

Parameters:
  • dset (xarray.Dataset) – A dataset containing the local ancestry matrix.

  • lanc (np.ndarray) – A numpy array of shape (n_snp, n_indiv, 2)

  • ax (matplotlib.Axes) – A matplotlib axes object to plot on. If None, will create a new one.

  • max_indiv (int) – The maximum number of individuals to plot. If None, will plot the first 10 individuals

Returns:

ax (matplotlib.Axes)