Skip to main content
Glama

calculate_qc_metrics

Calculate quality control metrics for AnnData, including total counts, gene numbers, and percentages of ribosomal and mitochondrial counts, to evaluate single-cell RNA sequencing data.

Instructions

Calculate quality control metrics(common metrics: total counts, gene number, percentage of counts in ribosomal and mitochondrial) for AnnData.

Input Schema

NameRequiredDescriptionDefault
expr_typeNoName of kind of values in X.counts
layerNoIf provided, use adata.layers[layer] for expression values instead of adata.X
log1pNoSet to False to skip computing log1p transformed annotations.
percent_topNoList of ranks (where genes are ranked by expression) at which the cumulative proportion of expression will be reported as a percentage.
qc_varsNoKeys for boolean columns of .var which identify variables you could want to control for mark_var tool should be called frist when you want to calculate mt, ribo, hb, and check tool output for var columns
use_rawNoIf True, use adata.raw.X for expression values instead of adata.X
var_typeNoThe kind of thing the variables are.genes

Input Schema (JSON Schema)

{ "description": "Input schema for the calculate_qc_metrics preprocessing tool.", "properties": { "expr_type": { "default": "counts", "description": "Name of kind of values in X.", "title": "Expr Type", "type": "string" }, "layer": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "If provided, use adata.layers[layer] for expression values instead of adata.X", "title": "Layer" }, "log1p": { "default": true, "description": "Set to False to skip computing log1p transformed annotations.", "title": "Log1P", "type": "boolean" }, "percent_top": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "default": [ 50, 100, 200, 500 ], "description": "List of ranks (where genes are ranked by expression) at which the cumulative proportion of expression will be reported as a percentage.", "title": "Percent Top" }, "qc_vars": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "string" }, { "type": "null" } ], "default": [], "description": "Keys for boolean columns of .var which identify variables you could want to control for mark_var tool should be called frist when you want to calculate mt, ribo, hb, and check tool output for var columns", "title": "Qc Vars" }, "use_raw": { "default": false, "description": "If True, use adata.raw.X for expression values instead of adata.X", "title": "Use Raw", "type": "boolean" }, "var_type": { "default": "genes", "description": "The kind of thing the variables are.", "title": "Var Type", "type": "string" } }, "title": "CalculateQCMetrics", "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