Skip to main content
Glama

embedding_density

Analyze cell density within embeddings to identify spatial patterns in single-cell RNA sequencing data. Supports UMAP or custom embeddings, group-based density calculation, and integration into existing analysis workflows.

Instructions

Calculate the density of cells in an embedding

Input Schema

NameRequiredDescriptionDefault
basisNoThe embedding over which the density will be calculated. This embedded representation should be found in `adata.obsm['X_[basis]']`.umap
componentsNoThe embedding dimensions over which the density should be calculated. This is limited to two components.
groupbyNoKey for categorical observation/cell annotation for which densities are calculated per category.
key_addedNoName of the `.obs` covariate that will be added with the density estimates.

Input Schema (JSON Schema)

{ "description": "Input schema for the embedding density calculation tool.", "properties": { "basis": { "default": "umap", "description": "The embedding over which the density will be calculated. This embedded representation should be found in `adata.obsm['X_[basis]']`.", "title": "Basis", "type": "string" }, "components": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "string" }, { "type": "null" } ], "default": null, "description": "The embedding dimensions over which the density should be calculated. This is limited to two components.", "title": "Components" }, "groupby": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Key for categorical observation/cell annotation for which densities are calculated per category.", "title": "Groupby" }, "key_added": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Name of the `.obs` covariate that will be added with the density estimates.", "title": "Key Added" } }, "title": "EmbeddingDensityModel", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/huang-sh/scmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server