Low-variance gene filtering / 低变异基因筛选(CV / 方差 / 最小表达量)
preprocess_filterLow-variance gene filtering / 低变异基因筛选(CV / 方差 / 最小表达量) | USE WHEN: the user wants to drop near-constant genes before dimensionality reduction or clustering | ALIASES: 基因筛选, 低变异, 变异系数, 方差, 过滤, gene filtering, low variance, CV, feature selection, drop genes | RETURNS: 保留的基因、n_kept/n_removed、每个基因的 mean/sd/cv/max 统计、筛选规则原文
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_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matrix | Yes | 表达矩阵(二维数值数组,**行 = 基因、列 = 样本**)。含缺失值会 400;按行内变异系数(CV)筛掉低变异基因。 | |
| method | No | cv(变异系数 SD/mean)/ variance / mean,默认 cv | |
| params | No | 筛选参数对象 {"threshold": 0.3}(CV 阈值,默认 0.3)。阈值越大筛得越狠;传成字符串会 422。 |