pydeseq2

Perform differential expression analysis on RNA-seq count data with pydeseq2.

18|2|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/omar-A-hassan/medsci-agent --skill pydeseq2-omar-a-hassan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pydeseq2
Source: https://github.com/omar-A-hassan/medsci-agent/tree/main/.opencode/skills/pydeseq2
Command: npx skills add https://github.com/omar-A-hassan/medsci-agent --skill pydeseq2-omar-a-hassan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PyDESeq2 provides a Python implementation of DESeq2-style differential expression analysis for RNA-seq count data, enabling robust identification of condition-associated gene expression changes.

Core Features & Use Cases

  • End-to-end differential expression analysis: from raw counts to statistics, including dispersion estimation and log fold-change shrinkage.
  • Python-native workflow: integrates with pandas DataFrames and common bioinformatics tooling for seamless pipelines.
  • Use Case: compare treated vs control samples to detect genes with differential expression in an RNA-seq experiment.

Quick Start

Load your counts and metadata as DataFrames, create a DeseqDataSet, run the differential expression analysis, and inspect the results for significant genes.

Frequently Asked Questions about pydeseq2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform differential expression analysis on RNA-seq count data in Python?

Differential expression analysis on RNA-seq count data in Python requires a genes-by-samples matrix of raw integer counts and a metadata DataFrame. Using DeseqDataSet and DeseqStats, the analysis estimates dispersion, applies log-fold-change shrinkage, and outputs a statistics DataFrame.

What is log-fold-change shrinkage in RNA-seq differential expression?

Log-fold-change shrinkage in RNA-seq differential expression is a statistical technique that stabilizes variance estimates for genes with low counts. It prevents extreme fold-change values from low-expression genes, ensuring more robust identification of condition-associated expression changes.

Can I use pandas DataFrames for RNA-seq differential expression metadata and counts?

Yes, you can use pandas DataFrames for RNA-seq differential expression metadata and counts. The workflow requires raw integer counts in a genes-by-samples matrix and a metadata DataFrame with sample annotations, integrating natively with common Python bioinformatics pipelines.

Do I need raw integer counts or normalized data for differential expression analysis?

You need raw integer counts for differential expression analysis. The process performs its own dispersion estimation and normalization internally, so providing pre-normalized data instead of the required genes-by-samples matrix of raw integer counts will produce inaccurate statistical results.

What's the best way to compare treated vs control samples in an RNA-seq experiment?

The best way to compare treated vs control samples in an RNA-seq experiment is to model the condition-associated changes using robust dispersion estimation. This approach detects genes with statistically significant differential expression while accounting for biological variance.

Are there limitations when estimating dispersion for low-replicate RNA-seq experiments?

Estimating dispersion for low-replicate RNA-seq experiments can be challenging because robust variance estimation relies on sufficient sample sizes. While the method uses shrinkage to stabilize estimates, having very few biological replicates limits the statistical power to detect condition-associated gene expression changes.