domains / families / data / knn-imputation

knn-imputation

separate

Use when filtering genes with high missingness and then imputing missing values in a bulk expression matrix with group-aware KNN through DMwR2, where donor samples are restricted by one annotation column before imputation. For strata with 10 or fewer samples, the script falls back to row-wise direct filling with mean or median. NOT for: single-cell data, multi-column stratification, non-tabular inputs, network access, or interactive workflows.

When to use

When not to use

Skill page

Source

RepositoryPath
aipoch/medical-research-skillsawesome-med-research-skills/Data Analysis/knn-imputation/SKILL.md