If you're doing differential gene expression analysis in Python instead of R, this handles the full DESeq2 workflow from count matrices through statistical testing. You get Wald tests with FDR correction, batch effect control through multi-factor designs, optional apeGLM shrinkage for cleaner fold changes, and straightforward pandas integration. The workflow is pretty standard: load your counts and metadata, specify a design formula, fit the model with dds.deseq2(), then run statistical tests with contrast specifications. Works well for moving R-based RNA-seq pipelines to Python or when you need differential expression as part of a larger computational biology workflow. The main thing is making sure your count matrix is in the right orientation (samples by genes) and your metadata aligns properly.

skills.sh installs
217
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill pydeseq2 --agent claude-code

Installs into .claude/skills of the current project.

Files

PyDESeq2

Overview

PyDESeq2 is a Python implementation of DESeq2 for differential expression analysis with bulk RNA-seq data. Design and execute complete workflows from data loading through result interpretation, including single-factor and multi-factor designs, Wald tests with multiple testing correction, optional apeGLM shrinkage, and integration with pandas and AnnData.

When to Use This Skill

This skill should be used when:

  • Analyzing bulk RNA-seq count data for differential expression
  • Comparing gene expression between experimental conditions (e.g., treated vs control)
  • Performing multi-factor designs accounting for batch effects or covariates
  • Converting R-based DESeq2 workflows to Python
  • Integrating differential expression analysis into Python-based pipelines
  • Users mention "DESeq2", "differential expression", "RNA-seq analysis", or "PyDESeq2"

Quick Start Workflow

For users who want to perform a standard differential expression analysis:

import pandas as pd
from pydeseq2.dds import DeseqDataSet
from pydeseq2.ds import DeseqStats

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Category
Python
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618

Recommended

More Python
1davila7 avatarpennylanedavila7/claude-code-templatesCross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Enables building and training quantum circuits with automa215skills.sh installs
2solatis avatarproblem-analysissolatis/claude-configInvoke IMMEDIATELY via python script when user requests problem analysis or root cause investigation. Do NOT explore first - the script orchestrates the investi215skills.sh installs
3davila7 avatarhubspot-integrationdavila7/claude-code-templatesExpert patterns for HubSpot CRM integration including OAuth authentication, CRM objects, associations, batch operations, webhooks, and custom objects. Covers No212skills.sh installs
4davila7 avatarazure-functionsdavila7/claude-code-templatesExpert patterns for Azure Functions development including isolated worker model, Durable Functions orchestration, cold start optimization, and production patter211skills.sh installs
5martinholovsky avatarasync-expertmartinholovsky/claude-skills-generatorExpert in asynchronous programming patterns across languages (Python asyncio, JavaScript/TypeScript promises, C# async/await, Rust futures). Use for concurrent 211skills.sh installs
6davila7 avatargtarsdavila7/claude-code-templatesHigh-performance toolkit for genomic interval analysis in Rust with Python bindings. Use when working with genomic regions, BED files, coverage tracks, overlap 210skills.sh installs