sushie.io.read_triplet(path: str) Tuple[DataFrame, DataFrame, Array][source]
Read in genotype data in plink 1 format.

pandas_plink package is used to read in the plink file.

Parameters:
path: str

The path for plink genotype data (suffix only).

Returns:

A tuple of
  1. SNP information (bim; pd.DataFrame),

  2. individuals information (fam; pd.DataFrame),

  3. genotype matrix (bed; Array).

Return type:

Tuple[pd.DataFrame, pd.DataFrame, Array]


Last update: Oct 27, 2024