episcanpy.api.pp.imputation_met

episcanpy.api.pp.imputation_met(adata, number_cell_covered=10, imputation_value='mean', save=None, copy=False)

Impute missing values in methyaltion level matrices. The imputsation is based on the average methylation value of the given variable. It also filter out variables that are covered in an unsufficient number of cells in order to reduce the feature space to meaningful variables and discard potential coverage biases.

Parameters
adata : AnnData object containing 'nan'

number_cell_covered : minimum number of cells to be covered in order to retain a variable

imputation_value : imputation of the missing value can be made either on the mean or the median

Returns

Return a new AnnData object