admix.io.read_rfmix#
- admix.io.read_rfmix(path: str, df_snp: DataFrame, df_indiv: DataFrame)[source]#
Assign local ancestry to a dataset. 2-way, 3-way admixture are all supported.
- Parameters:
lanc_file (str) – Path to local ancestry data.
geno (xr.DataArray) – genotype matrix
df_snp (pd.DataFrame) – SNP data frames
- Returns:
lanc (da.Array) – Local ancestry array