This skill covers extracting, filtering, annotating, and exporting differential expression results for downstream analysis. Works with both DESeq2 and edgeR output.
# For annotation
BiocManager::install(c('org.Hs.eg.db', 'biomaRt'))
# For Excel export
install.packages('openxlsx')
Tell your AI agent what you want to do: - "Extract significant genes with padj < 0.05 and |log2FC| > 1" - "Add gene symbols to my DESeq2 results" - "Export results to Excel with separate sheets for up and down genes"
"Get the top 100 most significant genes"
"Filter for up-regulated genes with at least 2-fold change"
"Find genes significant in both DESeq2 and edgeR"
"Add gene symbols and descriptions from Ensembl"
"Convert Ensembl IDs to gene symbols"
"Annotate results with my custom annotation file"
"Save significant genes to CSV"
"Create an Excel file with all results and significant genes"
"Prepare a ranked gene list for GSEA"
| Filter | Typical Value | Description |
|---|---|---|
| padj | < 0.05 | Standard significance |
| padj | < 0.01 | Stringent |
| |log2FC| | > 1 | 2-fold change |
| |log2FC| | > 0.585 | 1.5-fold change |
| baseMean | > 10 | Minimum expression |