runchuan-bu/bioclaw/differential-expression
- community
Checking that the SKILL.md file is still in the repository.
Bulk transcriptomics differential expression with count-aware modeling, design validation, contrast handling, thresholded exports, and publication-ready DE figures.
Install
npx vskill@latest install runchuan-bu/bioclaw/differential-expressionSKILL.md
Differential Expression
Version Compatibility
Reference examples assume:
pydeseq20.4+pandas2.2+numpy1.26+matplotlib3.8+
Verify before use:
- Python:
python -c "import pydeseq2, pandas; print(pydeseq2.__version__, pandas.__version__)"
Overview
Use this skill for count-based DE from bulk RNA-seq or similar count matrices when the user needs:
- robust model fitting
- explicit contrasts
- ranked gene tables
- volcano and MA plots
- pathway-ready output tables
When To Use This Skill
- raw count matrix and sample metadata are available
- the task is condition, treatment, or genotype comparison
- batch or pairing terms may need explicit modeling
Quick Route
- no replicates: do not pretend formal DE is robust
- 2 replicates per group: possible but conservative interpretation
- 3 or more replicates per group: standard starting point
Progressive Disclosure
- Read technical_reference.md for design formulas, confounding checks, and contrast logic.
- Read commands_and_thresholds.md for PyDESeq2 code, recommended filters, and output file conventions.
Prerequisites
| Requirement | Recommendation | |
|---|---|---|
| minimum replicates per group | >= 2 | |
| preferred replicates per group | >= 3 | |
| input values | raw integer counts |
Expected Inputs
- raw count matrix
- sample metadata
- explicit contrast such as treated vs control
Expected Outputs
results/de_results.tsvresults/de_ranked_genes.tsvfigures/volcano.pdffigures/ma_plot.pdfqc/sample_pca.pdf
Starter Pattern
Workflow
1. Validate the design
Check:
- replicate counts
- factor levels
- batch balance
- paired structure
- confounded variables
2. Fit a count-aware model
Use raw counts, not TPM or log-normalized expression, for count-based DE frameworks.
3. Apply explicit filtering and ranking
Common reporting thresholds:
padj < 0.05abs(log2FoldChange) >= 1
Export both the full table and a thresholded table.
4. Visualize results
At minimum:
- sample PCA
- volcano plot
- MA plot
5. Export pathway-ready artifacts
Produce a ranked gene list sorted by signed effect or Wald statistic for enrichment workflows.
Output Artifacts
Quality Review
- raw counts only for model fitting
- no fully confounded batch and condition
- outlier samples reviewed before publication claims
- all final tables should include
baseMean,log2FoldChange,pvalue, andpadj
Anti-Patterns
- running DE on TPM as if it were count-based
- omitting batch or pairing terms that clearly exist
- showing only thresholded genes and hiding the full table
- using p-value alone without effect size
Related Skills
- Bulk RNA Expression
- RNA Quantification
- Pathway Analysis
Optional Supplements
pydeseq2
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcontainer/skills/differential-expression/SKILL.md
Popularity
- Repository stars
- 384
- Repository forks
- 48
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/runchuan-bu/bioclaw/differential-expression)