-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbbknn.json
More file actions
39 lines (39 loc) · 1.31 KB
/
bbknn.json
File metadata and controls
39 lines (39 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"tool_id": "bbknn",
"name": "BBKNN (Batch-Balanced KNN)",
"category": "integration",
"framework": "bbknn",
"function": "sc.external.pp.bbknn",
"status": "optional",
"valid_after": ["pca"],
"valid_before": ["clustering"],
"paradigms": ["all"],
"parameters": {
"batch_key": {
"type": "string",
"required": true,
"guidance": "The obs column containing batch labels."
},
"neighbors_within_batch": {
"type": "int",
"default": 3,
"range": [1, 10],
"guidance": "Number of nearest neighbors to find within each batch. Lower values enforce more mixing."
},
"n_pcs": {
"type": "int",
"default": 50,
"range": [10, 100],
"guidance": "Number of PCs to use."
}
},
"outputs": {
"connectivities": "adata.obsp['connectivities'] (modified in place)",
"distances": "adata.obsp['distances'] (modified in place)"
},
"validation": {
"check": "Batch mixing should improve. BBKNN replaces the neighbor graph entirely."
},
"notes": "BBKNN replaces the sc.pp.neighbors step. Do NOT run sc.pp.neighbors after BBKNN — proceed directly to clustering and UMAP. Fast and simple but less powerful than Harmony or scVI for complex batch effects.",
"provenance_captures": ["batch_key", "neighbors_within_batch", "n_pcs", "n_batches"]
}