Back to Skills

bulk-rna-seq-deseq2-analysis-with-omicverse

Walk Claude through PyDESeq2-based differential expression, including ID mapping, DE testing, fold-change thresholding, and enrichment visualisation.

834stars98forksUpdated 2/10/2026

Security Assessment

Safe(100/100)
Security Score100/100

About bulk-rna-seq-deseq2-analysis-with-omicverse

The bulk-rna-seq-deseq2-analysis-with-omicverse skill guides users through reproducing a DESeq2-based differential expression workflow using omicverse and PyDESeq2. It is designed for bulk RNA-seq analyses starting from raw featureCounts output and walks through the complete process of preparing count matrices, mapping gene identifiers, running differential expression testing, and exploring enriched biological pathways. By following the structure demonstrated in the referenced tutorial notebook, users can execute a consistent and reproducible workflow for treated versus control comparisons.

Core capabilities include importing and formatting tab-separated featureCounts matrices, standardising plots, and cleaning sample names. The skill supports mapping Ensembl gene IDs to gene symbols using downloadable annotation pairs, then constructing a differential expression object via `ov.bulk.pyDEG`. It enables duplicate gene resolution, contrast definition between treatment and control groups, and DE testing through `dds.deg_analysis` with method='DEseq2'. Users can inspect and filter results (for example by `log2(BaseMean)`), automatically determine fold-change cutoffs with `dds.foldchange_set`, and visualise results using volcano plots and gene-level boxplots. Optional downstream enrichment analysis is supported by downloading pathway databases, preparing gene sets, ranking genes for GSEA, running enrichment with `ov.bulk.pyGSEA`, and generating enrichment bubble plots and GSEA curves.

This skill is intended for researchers, bioinformaticians, and computational biologists performing bulk RNA-seq analysis in Python. It is especially useful for users who want to replicate a structured DESeq2 workflow in omicverse, explore enriched pathways such as WikiPathways, and generate publication-ready visualisations. It also provides practical troubleshooting guidance for common issues such as incorrect input formats or species-specific gene ID mismatches.

FAQ

What type of input data is required for this workflow?

The workflow requires raw count matrices generated by featureCounts in tab-separated format. The data should not be log-transformed, as PyDESeq2 expects raw counts when estimating size factors.

How are gene identifiers handled in this analysis?

Gene identifiers are mapped from Ensembl IDs to gene symbols using downloadable gene ID annotation pairs. Users must ensure the correct genome-specific mapping file is available before running `ov.bulk.Matrix_ID_mapping`.

How are treatment and control groups defined?

Users must manually define `treatment_groups` and `control_groups` as lists that exactly match the column names of the count matrix before calling `dds.deg_analysis` with method='DEseq2'.

Can this workflow perform pathway enrichment analysis?

Yes. Users can download pathway databases, prepare gene sets, rank genes using `dds.ranking2gsea`, run enrichment with `ov.bulk.pyGSEA`, and visualise results with enrichment bubble plots and GSEA curves.

What common issues should users be aware of?

Errors related to size factors often indicate that the input data are not raw counts. Sparse or unexpected mapping results may suggest that the wrong genome-specific gene ID pair was used. Large pathway libraries may require filtering or adjusting recursion limits before plotting.

All Files

2 files
reference.md1.8 KB
View
SKILL.md3.6 KB
View

Install bulk-rna-seq-deseq2-analysis-with-omicverse

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill