draw_graph
Visualize single-cell RNA sequencing data using force-directed graph drawing. Customize layouts (fa, fr, kk), define node positions, and ensure reproducibility for clear, interpretable representations.
Instructions
Force-directed graph drawing for visualization
Input Schema
Name | Required | Description | Default |
---|---|---|---|
init_pos | No | Initial position for nodes ('paga'/True, False, or .obsm key) | |
key_added_ext | No | Suffix for storing results in .obsm | |
layout | No | Graph layout algorithm ('fa', 'fr', 'kk', etc.) | fa |
n_jobs | No | Number of jobs for parallel computation | |
neighbors_key | No | Key for neighbors settings in .uns | |
obsp | No | Key for adjacency matrix in .obsp | |
random_state | No | Random seed for reproducibility | |
root | No | Root node for tree layouts |
Input Schema (JSON Schema)
{
"description": "Input schema for the force-directed graph drawing tool.",
"properties": {
"init_pos": {
"anyOf": [
{
"type": "string"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"description": "Initial position for nodes ('paga'/True, False, or .obsm key)",
"title": "Init Pos"
},
"key_added_ext": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Suffix for storing results in .obsm",
"title": "Key Added Ext"
},
"layout": {
"default": "fa",
"description": "Graph layout algorithm ('fa', 'fr', 'kk', etc.)",
"title": "Layout",
"type": "string"
},
"n_jobs": {
"anyOf": [
{
"exclusiveMinimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Number of jobs for parallel computation",
"title": "N Jobs"
},
"neighbors_key": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Key for neighbors settings in .uns",
"title": "Neighbors Key"
},
"obsp": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Key for adjacency matrix in .obsp",
"title": "Obsp"
},
"random_state": {
"default": 0,
"description": "Random seed for reproducibility",
"title": "Random State",
"type": "integer"
},
"root": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Root node for tree layouts",
"title": "Root"
}
},
"title": "DrawGraphModel",
"type": "object"
}