This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.


biolearn.imputation.impute_from_standard(dnam, cpg_averages, cpgs_to_impute=None)#

Impute all missing values in a DNA methylation dataset using the averages from an external dataset.

  • dnam (pd.DataFrame) – DataFrame with samples as columns and CpG sites as rows.

  • cpg_averages (pd.Series) – Series containing reference averages for CpG sites.

  • cpgs_to_impute (list of str, optional) – List of CpG sites to impute. Missing cpgs will only be imputed if in this list.


DataFrame with missing values filled.

Return type:


Examples using biolearn.imputation.impute_from_standard#

Performing custom imputations

Performing custom imputations