con un clic
bulkrna-batch-correction
// Batch effect correction for multi-cohort bulk RNA-seq data using ComBat, with PCA-based visualization before and after correction.
// Batch effect correction for multi-cohort bulk RNA-seq data using ComBat, with PCA-based visualization before and after correction.
Build and run production workloads on Amazon Bedrock with current model availability, Converse API, agents, guardrails, AgentCore, and IAM controls. Use when implementing Bedrock inference pipelines, managed agents, or provider-agnostic model routing on AWS.
Design evaluation, tracing, monitoring, scope-control, and rollback discipline for agent systems. Use when an agent workflow is becoming important enough that you need evidence, not vibes, to decide whether it is good.
Build and operate OpenAI-first coding and agent workflows using Codex app/cloud, the Responses API, current GPT and Codex models, Agents SDK, hosted tools, tool search, MCP/connectors, skills, and approval-aware tool execution. Use when you need long-horizon software agents or OpenAI-native multi-agent orchestration.
Design, evaluate, and operate agentic systems for biomedical and scientific discovery. Use when building or selecting agents for hypothesis generation, experiment planning, autonomous notebook analysis, lab-in-the-loop validation, pathology concept discovery, or multi-agent research workflows.
Implement and operate Model Context Protocol systems safely. Use when designing MCP clients or servers, selecting transports, configuring auth, onboarding remote servers, or enforcing approval and egress controls.
WGCNA-style weighted gene co-expression network analysis — module detection, soft thresholding, hub genes.
| name | bulkrna-batch-correction |
| description | Batch effect correction for multi-cohort bulk RNA-seq data using ComBat, with PCA-based visualization before and after correction. |
| version | 0.3.0 |
| author | OmicsClaw |
| license | MIT |
| tags | ["bulkrna","batch-correction","ComBat","harmonization","batch-effect"] |
| requires | ["numpy","pandas","matplotlib","scipy"] |
| metadata | {"omicsclaw":{"domain":"bulkrna","emoji":"🔧","trigger_keywords":["batch correction","ComBat","batch effect","harmonize","multi-cohort","batch removal"],"allowed_extra_flags":["--batch-info","--mode"],"legacy_aliases":["bulk-combat"],"saves_h5ad":false}} |
Remove batch effects from multi-cohort bulk RNA-seq expression matrices using the ComBat algorithm (parametric and non-parametric modes), with PCA-based visualization and quantitative assessment.
sva package, manually create model matrices, run ComBat(), and export corrected data back to Python — a multi-step cross-language workflow.| Format | Extension | Description |
|---|---|---|
| Expression matrix | .csv | Genes as rows, samples as columns; first column is gene identifiers |
| Batch metadata | .csv | Two columns: sample and batch (or auto-detected from sample names) |
python omicsclaw.py run bulkrna-batch-correction --demo
python omicsclaw.py run bulkrna-batch-correction --input expr.csv --batch-info batches.csv --output results/
python bulkrna_batch_correction.py --input expr.csv --batch-info batches.csv --output results/
python bulkrna_batch_correction.py --demo --output /tmp/batch_demo
output_directory/
├── report.md
├── result.json
├── figures/
│ ├── pca_before_correction.png
│ ├── pca_after_correction.png
│ └── batch_assessment.png
├── tables/
│ ├── corrected_expression.csv
│ └── batch_metrics.csv
└── reproducibility/
└── commands.sh
| Parameter | Default | Description |
|---|---|---|
--input | — | Path to expression matrix CSV |
--batch-info | — | Path to batch metadata CSV (sample, batch columns) |
--output | — | Output directory |
--mode | parametric | ComBat mode: parametric or non-parametric |
--demo | — | Run with auto-generated demo data |
Trigger conditions: Automatically invoked when user intent matches batch correction, ComBat, harmonization keywords.
Chaining partners:
bulkrna-qc — Upstream: count matrix QCbulkrna-de — Downstream: DE analysis on corrected databulkrna-coexpression — Downstream: co-expression on corrected dataRequired: numpy, pandas, scipy, matplotlib
bulkrna-qc — Count matrix QC upstreambulkrna-de — Differential expression on corrected data