tracts.driver_utils.setup_fixed_parameters#

setup_fixed_parameters(driver_spec, demographic_model, allosome_label, autosome_proportions, allosome_proportions, print_details=True)#

Sets up fixed parameters in the demographic model based on the specifications in the driver file.

Parameters:
  • driver_spec (InferenceConfig) – The configuration for the inference process, as specified in the driver file.

  • demographic_model (ParametrizedDemography | ParametrizedDemographySexBiased) – The demographic model for which to set up fixed parameters.

  • allosome_label (str) – The label for the allosome to use when setting up fixed parameters. Only used if allosomes are specified in the driver file.

  • autosome_proportions (list[float]) – The ancestry proportions calculated from autosomal data, averaged across all individuals in the population.

  • allosome_proportions (list[float]) – The ancestry proportions calculated from allosomal data, averaged across all individuals in the population. Only used if allosomes are specified in the driver file.

  • print_details (bool) – Whether to print the model parameters list and which parameters were fixed (from ancestry proportions or by value), and the boundary-value warning. The corresponding log messages are always emitted regardless. Defaults to True; set to False for the quieter boundary re-optimization, where this has already been reported once for the original model.