Missing value imputation / 缺失值填补(均值/中位数/KNN)
preprocess_imputeMissing value imputation / 缺失值填补(均值/中位数/KNN) | USE WHEN: the user's expression matrix has missing values (null/NaN) that must be imputed before normalization or differential analysis | ALIASES: 缺失值, 填补, 插补, KNN, imputation, missing value, NA, NaN, mean, median | RETURNS: 填补后矩阵、n_missing、missing_pct、engine;完全没有缺失时 n_missing=0 并明说「未做填补」
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"matrix": "<matrix>"
},
"name": "preprocess_impute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matrix | Yes | 表达矩阵:行 = 基因,列 = 样本。缺失值用 null 表示(不要填 0——那会静默改变分布) | |
| method | No | mean / median / knn,默认 mean | |
| params | No | 附加参数:{「axis」: 「gene」|「sample」} 指定按行还是按列填补(默认 gene) |