pydeseq2

Perform differential gene expression analysis on bulk RNA-seq count data with PyDESeq2.

557|98|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/jimmc414/Kosmos --skill pydeseq2-jimmc414
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pydeseq2
Source: https://github.com/jimmc414/Kosmos/tree/main/kosmos-claude-scientific-skills/scientific-skills/pydeseq2
Command: npx skills add https://github.com/jimmc414/Kosmos --skill pydeseq2-jimmc414

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the complex process of identifying differentially expressed genes from bulk RNA-sequencing count data, a critical step in understanding biological responses to experimental conditions.

Core Features & Use Cases

  • Differential Expression Analysis: Perform statistical tests (Wald tests) to find genes with significant expression changes between groups.
  • RNA-seq Data Handling: Processes count matrices and metadata, applies normalization, and fits statistical models.
  • Use Case: A researcher wants to compare gene expression between cancer cells treated with a drug and control cells. This Skill can identify which genes are significantly upregulated or downregulated in the treated group.

Quick Start

Use the pydeseq2 skill to analyze differential gene expression from 'counts.csv' and 'metadata.csv' with the design '~condition', comparing 'treated' against 'control'.

Frequently Asked Questions about pydeseq2

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

FAQPage Schema
How do I identify differentially expressed genes from RNA-seq count data?

To identify differentially expressed genes from RNA-seq count data, this Skill applies normalization, dispersion estimation, and Wald tests with FDR correction to count matrices and metadata to output significant expression changes.

Can I perform differential gene expression analysis with multi-factor experimental designs and batch effects?

Yes, differential gene expression analysis supports single-factor and multi-factor experimental designs, including batch effect correction and interaction terms, allowing you to isolate specific biological variables from confounding technical noise.

What do I need to run bulk RNA-seq differential expression analysis using PyDESeq2?

You need bulk RNA-seq count data formatted as a CSV count matrix, a corresponding metadata CSV file, and a specified design formula like '~condition' to compare expression levels across your experimental groups.

How does PyDESeq2 handle normalization and statistical testing for gene expression?

PyDESeq2 handles normalization and statistical testing by estimating dispersions from count matrices, fitting statistical models to the metadata, and applying Wald tests with FDR correction to pinpoint significant gene expression changes.

What is the best way to compare gene expression between treated and control cells?

The best way to compare gene expression between treated and control cells is to input your RNA-seq count matrix and metadata with a design formula, allowing the statistical model to identify significantly upregulated or downregulated genes.

Are there limitations when using PyDESeq2 for RNA-seq differential expression?

A limitation is that this approach is designed specifically for bulk RNA-seq count data and relies on dependencies like pandas, numpy, scipy, and anndata, making it unsuitable for single-cell RNA-seq workflows.