Skip to main content
Glama

score_genes

Analyze gene expression data by scoring a set of genes based on their average expression levels, using configurable parameters like reference gene sampling and expression bins for accurate results.

Instructions

Score a set of genes based on their average expression

Input Schema

NameRequiredDescriptionDefault
ctrl_sizeNoNumber of reference genes to be sampled from each bin.
gene_poolNoGenes for sampling the reference set. Default is all genes.
n_binsNoNumber of expression level bins for sampling.
random_stateNoThe random seed for sampling.
score_nameNoName of the field to be added in .obs.score
use_rawNoWhether to use raw attribute of adata. Defaults to True if .raw is present.

Input Schema (JSON Schema)

{ "description": "Input schema for the score_genes tool that calculates gene scores based on average expression.", "properties": { "ctrl_size": { "default": 50, "description": "Number of reference genes to be sampled from each bin.", "exclusiveMinimum": 0, "title": "Ctrl Size", "type": "integer" }, "gene_pool": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "Genes for sampling the reference set. Default is all genes.", "title": "Gene Pool" }, "n_bins": { "default": 25, "description": "Number of expression level bins for sampling.", "exclusiveMinimum": 0, "title": "N Bins", "type": "integer" }, "random_state": { "default": 0, "description": "The random seed for sampling.", "title": "Random State", "type": "integer" }, "score_name": { "default": "score", "description": "Name of the field to be added in .obs.", "title": "Score Name", "type": "string" }, "use_raw": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "description": "Whether to use raw attribute of adata. Defaults to True if .raw is present.", "title": "Use Raw" } }, "title": "ScoreGenesModel", "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