- sushie.io.read_data(n_pop: int, ancestry_index: DataFrame, pheno_paths: List[str], covar_paths: List[str] | None, geno_paths: List[str], geno_func: Callable) List[RawData] [source]
Read in pheno, covar, and genotype data and convert it to raw data object.
- Parameters:
- n_pop: int¶
The int to indicate the number of ancestries.
- ancestry_index: DataFrame¶
The DataFrame that contains ancestry index.
- pheno_paths: List[str]¶
The path for phenotype data across ancestries.
- covar_paths: List[str] | None¶
The path for covariates data across ancestries.
- geno_paths: List[str]¶
The path for genotype data across ancestries.
- geno_func: Callable¶
The function to read in genotypes depending on the format.
- Returns:
A list of Raw data object (
RawData
).- Return type:
List[RawData]
Last update:
Oct 27, 2024