execute_r
Executes R code for bulk RNA-seq analysis in a persistent, isolated container. Supports differential expression, pathway enrichment, and visualization using packages like DESeq2 and clusterProfiler.
Instructions
Execute R code in the isolated analysis container. The R session is PERSISTENT: objects defined in earlier calls remain available.
OUTPUT RULES (enforced server-side — follow them in your code):
Write to /output ONLY aggregated results: DE tables (log2FC, pvalue, padj per gene), pathway scores, group-level summary statistics, model coefficients.
Do NOT write per-sample matrices (normalized counts, raw counts, PCA coordinates) as CSV/TSV to /output. Keep them in R memory for intermediate computation.
Plots (PNG) showing sample-level data are permitted — use anonymous labels (S1, S2, ...).
ggsave() and png() write to /output/; use descriptive names.
If the server blocks a CSV file, revise your code to export an aggregated version.
Available R packages: DESeq2, edgeR, limma, ggplot2, pheatmap, ComplexHeatmap, EnhancedVolcano, ggrepel, patchwork, clusterProfiler, fgsea, msigdbr, org.Hs.eg.db, org.Mm.eg.db, AnnotationDbi. No internet access — use org.Hs.eg.db instead of biomaRt for gene annotation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |