Skip to main content
Glama

pl_scatter

Generate scatter plots to visualize relationships between two variables in single-cell RNA sequencing data. Customize plots with color maps, annotations, and layout adjustments for clear data insights.

Instructions

Plot a scatter plot of two variables, Scatter plot along observations or variables axes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
alphaNoAlpha value for the plot.
basisNoBasis to use for embedding.
colorNoKeys for annotations of observations/cells or variables/genes, or a hex color specification.
color_mapNoColor map to use for continuous variables.
componentsNoFor instance, ['1,2', '2,3']. To plot all available components use components='all'.
figsizeNoFigure size. Format is (width, height).
groupsNoRestrict to a few categories in categorical observation annotation.
layersNoUse the layers attribute of adata if present: specify the layer for x, y and color.
left_marginNoAdjust the width of the left margin.
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
paletteNoColors to use for plotting categorical annotation groups.
projectionNoProjection of plot.2d
right_marginNoAdjust the width of the right margin.
sort_orderNoFor continuous annotations used as color parameter, plot data points with higher values on top of others.
use_rawNoWhether to use raw attribute of adata. Defaults to True if .raw is present.
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.
xNox coordinate.
yNoy coordinate.

Latest Blog Posts

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