tracts.driver_utils.SamplesConfig#
- class SamplesConfig(**data)#
Bases:
BaseModelConfiguration for the samples used in the inference. This includes information about the directory where the sample files are located, the names of the individuals and populations, and the format of the filenames. The configuration also specifies which chromosomes to include in the analysis and any allosomes to consider.
- directory(str)#
- Type:
The directory where the sample files are located.
- individual_names(List[str])#
- Type:
A list of individual names corresponding to the sample files.
- male_names(List[str] | str)#
- Type:
A list of individual names corresponding to male individuals, or “auto” to automatically determine based on the presence of allosomes.
- filename_format(str)#
- Type:
The format of the sample filenames, which should include placeholders for the individual name and chromosome (e.g. “{individual}_{chromosome}.txt”).
- labels(List[str])#
- Type:
A list of population labels corresponding to the sample files. Defaults to [“A”, “B”].
- chromosomes(str)#
- Type:
A string specifying which chromosomes to include in the analysis.
- allosomes(List[str])#
- Type:
A list of allosome chromosome names. Currenly only supporting “X”.