Single-cell clustering / 单细胞分析
scrna_clusterSingle-cell clustering / 单细胞分析 | USE WHEN: cluster and embed single-cell data (UMAP) | ALIASES: 单细胞, scRNA, 聚类降维, UMAP, Seurat, single cell | RETURNS: 聚类结果与 UMAP
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": {
"data_json": "<data_json>"
},
"name": "scrna_cluster"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n_pcs | No | 主成分数 | |
| data_json | Yes | 单细胞表达矩阵,**JSON 字符串**(把下面这个对象序列化后作为字符串传;本层也直接接受对象)。对象结构:{细胞名: {基因名: 计数}} —— 外层必须是细胞。例:"{\"cell_1\": {\"CD3D\": 5, \"NKG7\": 12}, \"cell_2\": {\"CD3D\": 7}}"。不接受 {cells:[], genes:[], matrix:[[]]} 三段式——外层只有 3 个键,会被判成「不足 10 个细胞」并回 Need at least 10 cells。细胞数需 ≥10,且每个细胞通过 QC 的基因数需 ≥ min_genes。也可以改用 file_i | |
| min_genes | No | 每个细胞至少检出多少个基因才保留该细胞,**默认 200**。小矩阵(如只有 6 个基因的演示数据)不传此参数会全部细胞被 QC 滤掉,报 Too few cells pass QC —— 此时把它设成 ≤ 每细胞基因数。 | |
| max_mito_pct | No | 线粒体比例上限 |