Understand the bigSNP data object
masterThe core data structure in bigsnpr is the bigSNP class, which represents SNP data as a list containing:
$genotypes: AnFBM.code256object where rows are samples and columns are variants. This stores genotype calls or dosages (rounded to 2 decimal places).$fam: Adata.framecontaining individual/sample information.$map: Adata.framecontaining variant information.
Important Note on Missing Values:
Most algorithms in this package do not handle missing values. You should either impute missing values of genotyped variants using snp_fastImpute() or snp_fastImputeSimple(), or use the bed_*() functions which are designed to work directly on .bed files with a few missing values.