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_plotdirectly from the_ancestry_per_individualoutput file saved inoutput_dirby a previousrun_tracts()run, without re-running the inference.- Parameters:
output_dir (
str|Path) – The output directory (as produced byrun_tracts()) from which to read the ancestry proportions.output_filename_format (
str|None) – The output filename format used to produce the files inoutput_dir, as specified in the driver file used for the original run (or its default value, seeOutputConfig). If None, it is automatically inferred from the files present inoutput_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 tooutput_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 duringrun_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