pl_pca
Visualize PCA components in scatter plots to analyze single-cell RNA sequencing data, with customizable figure size, color mapping, and annotations for easy interpretation.
Instructions
Scatter plot in PCA coordinates. default figure for PCA plot
Input Schema
Name | Required | Description | Default |
---|---|---|---|
add_outline | No | Add outline to scatter plot points. | |
annotate_var_explained | No | Annotate the explained variance. | |
arrows | No | Show arrows. | |
color | No | Keys for annotations of observations/cells or variables/genes. | |
color_map | No | Color map to use for continuous variables. | |
components | No | For instance, ['1,2', '2,3']. To plot all available components use components='all'. | |
dimensions | No | 0-indexed dimensions of the embedding to plot as integers. E.g. [(0, 1), (1, 2)]. | |
edges | No | Show edges between nodes. | |
edges_color | No | Color of edges. | grey |
edges_width | No | Width of edges. | |
figsize | No | Figure size. Format is (width, height). | |
frameon | No | Draw a frame around the scatter plot. | |
gene_symbols | No | Column name in .var DataFrame that stores gene symbols. | |
groups | No | Restrict to a few categories in categorical observation annotation. | |
layer | No | Name of the AnnData object layer that wants to be plotted. | |
legend_fontoutline | No | Line width of the legend font outline in pt. | |
legend_fontsize | No | Numeric size in pt or string describing the size. | |
legend_fontweight | No | Legend font weight. A numeric value in range 0-1000 or a string. | bold |
legend_loc | No | Location of legend, either 'on data', 'right margin' or a valid keyword for the loc parameter. | right margin |
marker | No | Matplotlib marker style for points. | . |
ncols | No | Number of columns for multiple plots. | |
neighbors_key | No | Where to look for neighbors connectivities. | |
palette | No | Colors to use for plotting categorical annotation groups. | |
projection | No | Projection of plot. | 2d |
size | No | Point size. If None, is automatically computed. | |
sort_order | No | For continuous annotations used as color parameter, plot data points with higher values on top of others. | |
use_raw | No | Use .raw attribute of adata for coloring with gene expression. | |
vcenter | No | The value representing the center of the color scale. | |
vmax | No | The value representing the upper limit of the color scale. | |
vmin | No | The value representing the lower limit of the color scale. |
Input Schema (JSON Schema)
{
"description": "Input schema for the PCA plotting tool.",
"properties": {
"add_outline": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": false,
"description": "Add outline to scatter plot points.",
"title": "Add Outline"
},
"annotate_var_explained": {
"default": false,
"description": "Annotate the explained variance.",
"title": "Annotate Var Explained",
"type": "boolean"
},
"arrows": {
"default": false,
"description": "Show arrows.",
"title": "Arrows",
"type": "boolean"
},
"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"
},
"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"
},
"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"
},
"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"
},
"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"
},
"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"
},
"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"
}
},
"title": "PCAModel",
"type": "object"
}