preprocess_data
Run quality control, filtering, normalization, and highly variable gene selection on spatial transcriptomics data. Prepares datasets for downstream embedding and clustering workflows.
Instructions
Run QC, filtering, normalization, and highly variable gene selection.
This tool does not compute PCA, UMAP, clustering, or neighbor graphs. Run
compute_embeddings() afterward when downstream tools require those artifacts.
Args:
data_id: Dataset ID
params: Preprocessing parameters (all have sensible defaults)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| data_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n_hvgs | Yes | ||
| data_id | Yes | ||
| n_cells | Yes | ||
| n_genes | Yes | ||
| clusters | Yes | Clusters computed during preprocessing. This is zero because clustering is performed by compute_embeddings. | |
| warnings | No | Non-fatal conditions that may affect result interpretation. | |
| qc_metrics | No |