tracts.driver_utils.get_admixture_models#
- get_admixture_models(driver_spec)#
Validates the admixture models specified in the driver file and returns the models for autosomes and allosomes.
- Parameters:
driver_spec (
InferenceConfig) – The configuration for the inference process, as specified in the driver file.- Returns:
A tuple containing the admixture model for autosomes, the admixture model for allosomes (or None if no allosomes are specified), and the allosome label (or None if no allosomes are specified).
- Return type:
tuple[str, str | None, str | None]