This skill covers creating publication-quality visualizations for differential expression results, including MA plots, volcano plots, PCA plots, and heatmaps. Works with both DESeq2 and edgeR output.
install.packages(c('ggplot2', 'pheatmap', 'RColorBrewer', 'ggrepel'))
BiocManager::install('EnhancedVolcano') # OptionalTell your AI agent what you want to do:
- "Create a volcano plot from my DESeq2 results"
- "Make a heatmap of the top 50 differentially expressed genes"
- "Generate a PCA plot colored by treatment group"
"Create an MA plot highlighting significant genes"
"Make a volcano plot with gene labels for top hits"
"Generate an EnhancedVolcano plot for my results"
"Show PCA of my samples colored by condition and shaped by batch"
"Create a sample distance heatmap"
"Plot MDS for my edgeR data"
"Make a heatmap of significant genes clustered by expression"
"Create a heatmap for my genes of interest"
"Show expression patterns across samples"
"Plot counts for gene X across conditions"
"Show expression of my candidate genes"
- Extract and format results from DESeq2/edgeR
- Apply appropriate transformations (vst, log)
- Create publication-quality figures
- Add annotations and labels
- Save in requested format (PDF, PNG)
| Plot | Shows | Use For |
|---|---|---|
| MA plot | LFC vs expression | QC, global view |
| Volcano | LFC vs significance | Identifying top genes |
| PCA | Sample relationships | Batch effects, outliers |
| Heatmap | Expression patterns | Gene clusters, validation |
- Always use variance-stabilized counts (vst) for PCA and heatmaps
- Scale heatmap rows (z-score) for comparable gene patterns
- Check p-value histogram for analysis quality
- Use colorblind-friendly palettes for publications
- Save vector formats (PDF) for publications, raster (PNG) for presentations