Note

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_average#

biolearn.imputation.impute_from_average(dnam, cpgs_to_impute=None)#

Impute all missing values in a DNA methylation dataset using the average from the dataset itself.

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

  • cpgs_to_impute (list of str, optional) – List of CpG sites to impute.

Returns:

DataFrame with missing values filled.

Return type:

pd.DataFrame