tracts.driver_utils.output_simulation_data_sex_biased#
- output_simulation_data_sex_biased(sample_population, optimal_params, optimal_likelihood, genetic_model, driver_spec, output_dir, driver_path=None)#
Creates output graphs to compare data and the theoretical tract length distribution inferred by the model. Also saves migration matrices, tract length distributions, and optimal parameters to output files. For details on the output files and graphs produced, see online documentation.
- Parameters:
sample_population (
Population) – The population for which to output simulation data.optimal_params (
ndarray) – The optimal parameters for the model.genetic_model (
GeneticModel) – Bundles the demographic model for which to output simulation data with the admixture model configuration (ad_model_autosomes/ad_model_allosomes) used to compute it.driver_spec (
InferenceConfig) – The driver specification containing output configuration.output_dir (
Path) – The directory to which output files will be written.driver_path (
str|None) – The path to the driver yaml file. If None, no driver file will be copied to the output directory. Defaults to None.