tracts.plot#

Re-plots the output figures produced by output_simulation_data_sex_biased() (i.e. by run_tracts()) directly from a previously produced output directory, without re-running the optimization. This is useful to reformat plots for a given analysis, or to batch-produce plots for a list of different runs (different models, populations, etc.), by calling the relevant function below once per output directory.

Functions

plot_admixture_from_output(output_dir[, ...])

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.

plot_all_from_output_directories(output_dirs)

Convenience wrapper around plot_admixture_from_output(), plot_migration_matrices_from_output() and plot_tract_length_distributions_from_output(), to re-produce all three sets of plots for a list of output directories (e.g. corresponding to different models or populations) in a single call.

plot_migration_matrices_from_output(output_dir)

Re-produces the _migration_matrices plot (mean migration matrix and sex-bias values per generation), directly from the _female_migration_matrix/_male_migration_matrix output files saved in output_dir by a previous run_tracts() run, without re-running the inference.

plot_tract_length_distributions_from_output(...)

Re-produces the autosomal and (if present) allosomal tract length distribution plots (observed counts against the predicted distribution), directly from the tract length distribution output files saved in output_dir by a previous run_tracts() run, without re-running the inference.