一键导入
pydeseq2
PyDESeq2 for differential gene expression analysis of RNA-seq count data
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
PyDESeq2 for differential gene expression analysis of RNA-seq count data
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Shared operational contract for all MedSci agents: sequential execution, planning phase, retry limits, evidence standards.
Isolated exploratory code execution with medsci-sandbox tools. Use when analysis requires custom code beyond existing domain MCP tools.
AlphaFold DB for predicted protein structures and pLDDT confidence scores
Molecular biology toolkit. Use for FASTA parsing, sequence analysis, and translation.
ChEMBL database access for bioactivity data and target search
Datamol for molecular manipulation, SMILES processing, and cheminformatics
| name | pydeseq2 |
| description | PyDESeq2 for differential gene expression analysis of RNA-seq count data |
PyDESeq2 is a Python implementation of the DESeq2 method for differential expression analysis of RNA-seq count data. It uses negative binomial generalized linear models with shrinkage estimation.
import pandas as pd
from pydeseq2.dds import DeseqDataSet
from pydeseq2.ds import DeseqStats
# counts: genes x samples DataFrame of raw counts (integers, unnormalized)
# metadata: samples DataFrame with condition column
counts = pd.read_csv("counts.csv", index_col=0)
metadata = pd.read_csv("metadata.csv", index_col=0)
# Create dataset
dds = DeseqDataSet(counts=counts, metadata=metadata, design="~condition")
# Run DESeq2 pipeline (size factors, dispersion, GLM fitting)
dds.deseq2()
# Statistical testing
stat_res = DeseqStats(dds, contrast=["condition", "treated", "control"])
stat_res.summary()
# Results DataFrame
results_df = stat_res.results_df
sig = results_df[results_df["padj"] < 0.05].sort_values("log2FoldChange")
contrast=["condition", "treated", "control"] means treated vs control.stat_res.lfc_shrink(coeff="condition_treated_vs_control").pip install pydeseq2.