Skip to main content
Glama

pl_embedding

Generate scatter plots for user-specified embedding basis (e.g., UMAP, t-SNE) to visualize single-cell RNA sequencing data, with customizable parameters for color, size, and annotation.

Instructions

Scatter plot for user specified embedding basis (e.g. umap, tsne, etc).

Input Schema

NameRequiredDescriptionDefault
add_outlineNoAdd outline to scatter plot points.
arrowsNoShow arrows.
arrows_kwdsNoPassed to matplotlib's quiver function for drawing arrows.
basisYesName of the obsm basis to use.
cmapNoColor map to use for continuous variables. Overrides color_map.
colorNoKeys for annotations of observations/cells or variables/genes.
color_mapNoColor map to use for continuous variables.
colorbar_locNoLocation of the colorbar.right
componentsNoFor instance, ['1,2', '2,3']. To plot all available components use components='all'.
dimensionsNo0-indexed dimensions of the embedding to plot as integers. E.g. [(0, 1), (1, 2)].
edgesNoShow edges between nodes.
edges_colorNoColor of edges.grey
edges_widthNoWidth of edges.
figsizeNoFigure size. Format is (width, height).
frameonNoDraw a frame around the scatter plot.
gene_symbolsNoColumn name in .var DataFrame that stores gene symbols.
groupsNoRestrict to a few categories in categorical observation annotation.
hspaceNoHeight space between panels.
layerNoName of the AnnData object layer that wants to be plotted.
legend_fontoutlineNoLine width of the legend font outline in pt.
legend_fontsizeNoNumeric size in pt or string describing the size.
legend_fontweightNoLegend font weight. A numeric value in range 0-1000 or a string.bold
legend_locNoLocation of legend, either 'on data', 'right margin' or a valid keyword for the loc parameter.right margin
markerNoMatplotlib marker style for points..
mask_obsNoA boolean array or a string mask expression to subset observations.
na_colorNoColor to use for null or masked values.lightgray
na_in_legendNoWhether to include null values in the legend.
ncolsNoNumber of columns for multiple plots.
neighbors_keyNoWhere to look for neighbors connectivities.
outline_colorNoColor of the outline for highlighted points.
outline_widthNoWidth of the outline for highlighted points.
paletteNoColors to use for plotting categorical annotation groups.
projectionNoProjection of plot.2d
scale_factorNoScale factor for the plot.
sizeNoPoint size. If None, is automatically computed.
sort_orderNoFor continuous annotations used as color parameter, plot data points with higher values on top of others.
titleNoTitle for the plot.
use_rawNoUse .raw attribute of adata for coloring with gene expression.
vcenterNoThe value representing the center of the color scale.
vmaxNoThe value representing the upper limit of the color scale.
vminNoThe value representing the lower limit of the color scale.
wspaceNoWidth space between panels.

Input Schema (JSON Schema)

{ "description": "Input schema for the embedding plotting tool.", "properties": { "add_outline": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": false, "description": "Add outline to scatter plot points.", "title": "Add Outline" }, "arrows": { "default": false, "description": "Show arrows.", "title": "Arrows", "type": "boolean" }, "arrows_kwds": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "description": "Passed to matplotlib's quiver function for drawing arrows.", "title": "Arrows Kwds" }, "basis": { "description": "Name of the obsm basis to use.", "title": "Basis", "type": "string" }, "cmap": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Color map to use for continuous variables. Overrides color_map.", "title": "Cmap" }, "color": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "string" }, { "type": "null" } ], "default": null, "description": "Keys for annotations of observations/cells or variables/genes.", "title": "Color" }, "color_map": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Color map to use for continuous variables.", "title": "Color Map" }, "colorbar_loc": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": "right", "description": "Location of the colorbar.", "title": "Colorbar Loc" }, "components": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "string" }, { "type": "null" } ], "default": null, "description": "For instance, ['1,2', '2,3']. To plot all available components use components='all'.", "title": "Components" }, "dimensions": { "anyOf": [ { "maxItems": 2, "minItems": 2, "prefixItems": [ { "type": "integer" }, { "type": "integer" } ], "type": "array" }, { "items": { "maxItems": 2, "minItems": 2, "prefixItems": [ { "type": "integer" }, { "type": "integer" } ], "type": "array" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "0-indexed dimensions of the embedding to plot as integers. E.g. [(0, 1), (1, 2)].", "title": "Dimensions" }, "edges": { "default": false, "description": "Show edges between nodes.", "title": "Edges", "type": "boolean" }, "edges_color": { "anyOf": [ { "type": "string" }, { "items": { "type": "number" }, "type": "array" }, { "items": { "type": "string" }, "type": "array" } ], "default": "grey", "description": "Color of edges.", "title": "Edges Color" }, "edges_width": { "default": 0.1, "description": "Width of edges.", "title": "Edges Width", "type": "number" }, "figsize": { "anyOf": [ { "maxItems": 2, "minItems": 2, "prefixItems": [ { "type": "number" }, { "type": "number" } ], "type": "array" }, { "type": "null" } ], "default": null, "description": "Figure size. Format is (width, height).", "title": "Figsize" }, "frameon": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "description": "Draw a frame around the scatter plot.", "title": "Frameon" }, "gene_symbols": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Column name in .var DataFrame that stores gene symbols.", "title": "Gene Symbols" }, "groups": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "string" }, { "type": "null" } ], "default": null, "description": "Restrict to a few categories in categorical observation annotation.", "title": "Groups" }, "hspace": { "default": 0.25, "description": "Height space between panels.", "title": "Hspace", "type": "number" }, "layer": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Name of the AnnData object layer that wants to be plotted.", "title": "Layer" }, "legend_fontoutline": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "description": "Line width of the legend font outline in pt.", "title": "Legend Fontoutline" }, "legend_fontsize": { "anyOf": [ { "type": "integer" }, { "type": "number" }, { "type": "string" }, { "type": "null" } ], "default": null, "description": "Numeric size in pt or string describing the size.", "title": "Legend Fontsize" }, "legend_fontweight": { "anyOf": [ { "type": "integer" }, { "type": "string" } ], "default": "bold", "description": "Legend font weight. A numeric value in range 0-1000 or a string.", "title": "Legend Fontweight" }, "legend_loc": { "default": "right margin", "description": "Location of legend, either 'on data', 'right margin' or a valid keyword for the loc parameter.", "title": "Legend Loc", "type": "string" }, "marker": { "anyOf": [ { "type": "string" }, { "items": { "type": "string" }, "type": "array" } ], "default": ".", "description": "Matplotlib marker style for points.", "title": "Marker" }, "mask_obs": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "A boolean array or a string mask expression to subset observations.", "title": "Mask Obs" }, "na_color": { "default": "lightgray", "description": "Color to use for null or masked values.", "title": "Na Color", "type": "string" }, "na_in_legend": { "default": true, "description": "Whether to include null values in the legend.", "title": "Na In Legend", "type": "boolean" }, "ncols": { "default": 4, "description": "Number of columns for multiple plots.", "title": "Ncols", "type": "integer" }, "neighbors_key": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Where to look for neighbors connectivities.", "title": "Neighbors Key" }, "outline_color": { "default": [ "black", "white" ], "description": "Color of the outline for highlighted points.", "maxItems": 2, "minItems": 2, "prefixItems": [ { "type": "string" }, { "type": "string" } ], "title": "Outline Color", "type": "array" }, "outline_width": { "default": [ 0.3, 0.05 ], "description": "Width of the outline for highlighted points.", "maxItems": 2, "minItems": 2, "prefixItems": [ { "type": "number" }, { "type": "number" } ], "title": "Outline Width", "type": "array" }, "palette": { "anyOf": [ { "type": "string" }, { "items": { "type": "string" }, "type": "array" }, { "additionalProperties": { "type": "string" }, "type": "object" }, { "type": "null" } ], "default": null, "description": "Colors to use for plotting categorical annotation groups.", "title": "Palette" }, "projection": { "default": "2d", "description": "Projection of plot.", "enum": [ "2d", "3d" ], "title": "Projection", "type": "string" }, "scale_factor": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Scale factor for the plot.", "title": "Scale Factor" }, "size": { "anyOf": [ { "type": "number" }, { "items": { "type": "number" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "Point size. If None, is automatically computed.", "title": "Size" }, "sort_order": { "default": true, "description": "For continuous annotations used as color parameter, plot data points with higher values on top of others.", "title": "Sort Order", "type": "boolean" }, "title": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "string" }, { "type": "null" } ], "default": null, "description": "Title for the plot.", "title": "Title" }, "use_raw": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "description": "Use .raw attribute of adata for coloring with gene expression.", "title": "Use Raw" }, "vcenter": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] }, "type": "array" }, { "type": "null" } ], "default": null, "description": "The value representing the center of the color scale.", "title": "Vcenter" }, "vmax": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] }, "type": "array" }, { "type": "null" } ], "default": null, "description": "The value representing the upper limit of the color scale.", "title": "Vmax" }, "vmin": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "items": { "anyOf": [ { "type": "string" }, { "type": "number" } ] }, "type": "array" }, { "type": "null" } ], "default": null, "description": "The value representing the lower limit of the color scale.", "title": "Vmin" }, "wspace": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "description": "Width space between panels.", "title": "Wspace" } }, "required": [ "basis" ], "title": "EmbeddingModel", "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