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.
$npx -y skills add aipoch/medical-research-skills --skill knn-imputationInstalls into the current project.
Run `npx skills use "https://github.com/aipoch/medical-research-skills" --skill "aipoch/medical-research-skills/knn-imputation"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/aipoch/medical-research-skills" that are relevant to the current task. Run `npx skills add "https://github.com/aipoch/medical-research-skills"` and select the relevant skills, then follow their instructions.