Skip to main content
Glama

write_tool

Save AnnData objects to files in formats like h5, csv, txt, or npz. Specify file paths, extensions, and compression options for efficient data storage.

Instructions

Write AnnData objects to file.

Input Schema

NameRequiredDescriptionDefault
compressionNoCompression format for h5 files.gzip
compression_optsNoCompression options for h5 files.
extNoFile extension to infer file format. If None, defaults to scanpy's settings.file_format_data.
filenameYesPath to save the file. If no extension is provided, the default format will be used.

Input Schema (JSON Schema)

{ "description": "Input schema for the write tool.", "properties": { "compression": { "anyOf": [ { "enum": [ "gzip", "lzf" ], "type": "string" }, { "type": "null" } ], "default": "gzip", "description": "Compression format for h5 files.", "title": "Compression" }, "compression_opts": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Compression options for h5 files.", "title": "Compression Opts" }, "ext": { "anyOf": [ { "enum": [ "h5", "csv", "txt", "npz" ], "type": "string" }, { "type": "null" } ], "default": null, "description": "File extension to infer file format. If None, defaults to scanpy's settings.file_format_data.", "title": "Ext" }, "filename": { "description": "Path to save the file. If no extension is provided, the default format will be used.", "title": "Filename", "type": "string" } }, "required": [ "filename" ], "title": "WriteModel", "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