execute_python
Execute Python code in an isolated container for bulk RNA-seq data analysis. Leverage pre-installed packages like pydeseq2 to compute aggregated results and save plots to /output.
Instructions
Execute Python code in the isolated analysis container. The Python namespace is PERSISTENT across calls.
OUTPUT RULES (same as execute_r):
Write to /output ONLY aggregated results (gene/pathway level).
Do NOT write per-sample matrices as CSV.
Plots saved with matplotlib/seaborn: plt.savefig("/output/.png").
If the server blocks a CSV, produce an aggregated equivalent instead.
Available packages: pydeseq2, pandas, numpy, matplotlib, seaborn, scipy, statsmodels.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "execute_python"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |