tracts.plot.plot_admixture_from_output#

plot_admixture_from_output(output_dir, output_filename_format=None, save_dir=None, title=None, title_fontsize=14, label_fontsize=10, tick_fontsize=6, legend_fontsize=10)#

Re-produces the _admixture_plot directly from the _ancestry_per_individual output file saved in output_dir by a previous run_tracts() run, without re-running the inference.

Parameters:
  • output_dir (str | Path) – The output directory (as produced by run_tracts()) from which to read the ancestry proportions.

  • output_filename_format (str | None) – The output filename format used to produce the files in output_dir, as specified in the driver file used for the original run (or its default value, see OutputConfig). If None, it is automatically inferred from the files present in output_dir.

  • save_dir (str | Path | None) – The directory in which to save the re-produced plot (created if it does not already exist). If None, defaults to output_dir, overwriting the original plot in place.

  • title (str | None) – An optional title for the plot. Defaults to None (no title, matching the plot produced during run_tracts()).

  • title_fontsize (float) – The font size of the title, if given. Defaults to 14.

  • label_fontsize (float) – The font size of the y-axis label. Defaults to 10.

  • tick_fontsize (float) – The font size of the per-individual x-axis tick labels. Defaults to 6.

  • legend_fontsize (float) – The font size of the legend. Defaults to 10.

Return type:

None