pydeseq2

Perform DESeq2 differential expression analysis on RNA-seq count data.

Updated May 8, 2026
One-click install
npx skills add https://github.com/Zeyuyang-0420/bio-ai-research-skills --skill pydeseq2-zeyuyang-0420
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pydeseq2
Source: https://github.com/Zeyuyang-0420/bio-ai-research-skills/tree/main/categories/bioinformatics-genomics/pydeseq2
Command: npx skills add https://github.com/Zeyuyang-0420/bio-ai-research-skills --skill pydeseq2-zeyuyang-0420

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, numpy, scipy, scikit-learn, annadata, matplotlib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps analyze differential expression in RNA-seq data using the Python implementation of DESeq2, enabling users to identify differentially expressed genes and compare gene expression between experimental conditions.

Core Features & Use Cases

  • DESeq2 Implementation: Python version of DESeq2 for bulk RNA-seq analysis.
  • Data Preparation: Filters low-count genes, handles batch effects, and allows for multi-factor designs.
  • Statistical Testing: Wald tests with FDR correction, LFC shrinkage for visualization, and volcano/MA plots.
  • Use Case: Ideal for users seeking to perform differential expression analysis on RNA-seq datasets, integrating into Python-based pipelines or analyzing specific experimental conditions.

Quick Start

Analyze the differential expression of a gene set from the data file 'counts.csv' using the metadata 'metadata.csv' with the condition 'condition'.

Frequently Asked Questions about pydeseq2

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

FAQPage Schema
How do I perform bulk RNA-seq differential expression analysis in Python?

Bulk RNA-seq differential expression analysis in Python can be performed using the DESeq2 algorithm to normalize count data, fit dispersions, and estimate log fold changes. This workflow supports multi-factor designs and batch effects to identify differentially expressed genes.

Can I use Python for DESeq2 analysis instead of R?

Yes, you can use Python for DESeq2 analysis instead of R. This implementation provides the core DESeq2 algorithm within a Python environment, leveraging pandas, numpy, scipy, scikit-learn, and anndata for standard bulk RNA-seq differential expression tasks.

What is the best way to handle batch effects in RNA-seq differential expression?

Handling batch effects in RNA-seq differential expression is best managed by incorporating batch variables into a multi-factor experimental design. The DESeq2 algorithm can then account for these confounding factors during dispersion fitting and statistical testing.

How do I generate volcano and MA plots from RNA-seq count data?

Generating volcano and MA plots from RNA-seq count data requires performing statistical testing and log fold change shrinkage first. Using matplotlib in Python, you can visualize the results of your differential expression analysis to identify significant genes.

Do I need anndata to run DESeq2 for differential expression?

Yes, you need anndata along with pandas, numpy, scipy, scikit-learn, and matplotlib to run this Python-based DESeq2 implementation. These libraries provide the necessary data structures and statistical functions required for the differential expression workflow.

When should I apply Wald tests and FDR correction in RNA-seq analysis?

Apply Wald tests with FDR correction in RNA-seq analysis after estimating log fold changes to statistically validate differentially expressed genes. This step controls the false discovery rate when comparing gene expression across multiple experimental conditions.