pyproteonet.imputation.r.impute_lcmd.min_prob_impute

pyproteonet.imputation.r.impute_lcmd.min_prob_impute(dataset: Dataset, molecule: str, column: str, q: float = 0.01, tune_sigma: float = 1, result_column: str | None = None, **kwargs)

Impute using the minProb method as implemented by the imputeLCMD package which replaces missing values with a value drawn from a distribution of low values.

Parameters:
  • dataset (Dataset) – Dataset to impute.

  • molecule (str) – Molecule type to impute (e.g. protein, peptide etc.).

  • column (str) – Name of the value column to impute.

  • result_column (Optional[str], optional) – If given, name of the value column to store the imputed values in. Defaults to None.

Returns:

The imputed values.

Return type:

pd.Series