sushie.io.read_bgen(path: str) Tuple[DataFrame, DataFrame, Array][source]
Read in genotype data in bgen 1.3 format.

bgen-reader package is used to read in the bgen file.

Parameters:
path: str

The path for bgen genotype data (full file name).

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