Agent skill · Audited from source
Pydeseq2
skill · foryourhealth111-pixel/Vibe-SkillsApache-2.0 licenceAudited 8 Oct 2026 · source 5ff3ca429e5b
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 5ff3ca429e5b and found no filesystem, network or shell access and no hard-coded secrets. What it does: Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.
Cite
Cite this page
ModelsAtlas. “Pydeseq2 (foryourhealth111-pixel/Vibe-Skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/foryourhealth111-pixel/pydeseq2
4 skills are called “Pydeseq2”. You are viewing foryourhealth111-pixel/Vibe-Skills.
- foryourhealth111-pixel/Vibe-Skills★ 3.6k✓SAFE
- FreedomIntelligence/OpenClaw-Medical-Skills★ 3.1k✓SAFE
- paperclipai/companies★ 919!CAUTION
- jimmc414/Kosmos★ 595✓SAFE
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 5ff3ca429e5b · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherforyourhealth111-pixel GitHub userOwner of the repository this skill is read from
- Source folderforyourhealth111-pixel/Vibe-Skills/bundled/skills/pydeseq2The exact folder we audited
- LicenceApache-2.0As the repository states it
- Commit pinned for this verdict5ff3ca429e5bA new audit runs when the source changes
- Repository statusNot archivedLast push 37 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.
---
name: pydeseq2
description: "Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis."
---
# 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:
```python
import pandas as pd
from pydeseq2.dds import DeseqDataSet
from pydeseq2.ds import DeseqStats
# 1. Load data
counts_df = pd.read_csv("counts.csv", index_col=0).T # Transpose to samples × genes
metadata = pd.read_csv("metadata.csv", index_col=0)
# 2. Filter low-count genes
genes_to_keep = counts_df.columns[counts_df.sum(axis=0) >= 10]
counts_df = counts_df[genes_to_keep]
# 3. Initialize and fit DESeq2
dds = DeseqDataSet(
counts=counts_df,
metadata=metadata,
design="~condition",
refit_cooks=True
)
dds.deseq2()
# 4. Perform statistical testing
ds = DeseqStats(dds, contrast=["condition", "treated", "control"])
ds.summary()
# 5. Access results
results = ds.results_df
significant = results[results.padj < 0.05]
print(f"Found {len(significant)} significant genes")
```
## Core Workflow Steps
### Step 1: Data Preparation
**Input requirements:**
- **Count matrix:** Samples × genes DataFrame with non-negative integer read counts
- **Metadata:** Samples × variables DataFrame with experimental factors
**Common data loading patterns:**
```python
# From CSV (typical format: genes × samples, needs transpose)
counts_df = pd.read_csv("counts.csv", index_col=0).T
metadata = pd.read_csv("metadata.csv", index_col=0)
# From TSV
counts_df = pd.read_csv("counts.tsv", sep="\t", index_col=0).T
# From AnnData
import anndata as ad
adata = ad.read_h5ad("data.h5ad")
counts_df = pd.DataFrame(adata.X, index=adata.obs_names, columns=adata.var_names)
metadata = adata.obs
```
**Data filtering:**
```python
# Remove low-count genes
genes_to_keep = counts_df.columns[counts_df.sum(axis=0) >= 10]
counts_df = counts_df[genes_to_keep]
# Remove samples with missing metadata
samples_to_keep = ~metadata.condition.isna()
counts_df = counts_df.loc[samples_to_keep]
metadata = metadata.loc[samples_to_keep]
```
### Step 2: Design Specification
The design formula specifies how gene expression is modeled.
**Single-factor designs:**
```python
design = "~condition" # Simple two-group comparison
```
**Multi-factor designs:**
```python
design = "~batch + condition" # Control for batch effects
design = "~age + condition" # Include continuous covariate
design = "~group + condition + group:condition" # Interaction effects
```
**Design formula guidelines:**
- Use Wilkinson formula notation (R-style)
- Put adjustment variables (e.g., batch) before the main variable of interest
- Ensure variables exist as columns in the metadata DataFrame
- Use appropriate data types (categorical for discrete variables)
### Step 3: DESeq2 Fitting
Initialize the DeseqDataSet and run the complete pipeline:
```python
from pydeseq2.dds import DeseqDataSet
dds = DeseqDataSet(
counts=counts_df,
metadata=metadata,
design="~condition",
refit_cooks=True, # Refit after removing outliers
n_cpus=1 # Parallel processing (adjust as needed)
)
# Run the complete DESeq2 pipeline
dds.deseq2()
```
**What `deseq2()` does:**
1. Computes size factors (normalization)
2. Fits genewise dispersions
3. Fits dispersion trend curve
4. Computes dispersion priors
5. Fits MAP dispersions (shrinkage)
6. Fits log fold changes
7. Calculates Cook's distances (outlier detection)
8. Refits if outliers detected (optional)
### Step 4: Statistical Testing
Perform Wald tests to identify differentially expressed genes:
```python
from pydeseq2.ds import DeseqStats
ds = DeseqStats(
dds,
contrast=["condition", "treated", "control"], # Test treated vs control
alpha=0.05, # Significance threshold
cooks_filter=True, # Filter outliers
independent_filter=True # Filter low-power tests
)
ds.summary()
```
**Contrast specification:**
- Format: `[variable, test_level, reference_level]`
- Example: `["condition", "treated", "control"]` tests treated vs control
- If `None`, uses the last coefficient in the design
**Result DataFrame columns:**
- `baseMean`: Mean normalized count across samples
- `log2FoldChange`: Log2 fold change between conditions
- `lfcSE`: Standard error of LFC
- `stat`: Wald test statistic
- `pvalue`: Raw p-value
- `padj`: Adjusted p-value (FDR-corrected via Benjamini-Hochberg)
### Step 5: Optional LFC Shrinkage
Apply shrinkage to reduce noise in fold change estimates:
```python
ds.lfc_shrink() # Applies apeGLM shrinkage
```
**When to use LFC shrinkage:**
- For visualization (volcano plots, heatmaps)
- For ranking genes by effect size
- When prioritizing genes for follow-up experiments
**Important:** Shrinkage affects only the log2FoldChange values, not the statistical test results (p-values remain unchanged). Use shrunk values for visualization but report unshrunken p-values for significance.
### Step 6: Result Export
Save results and intermediate objects:
```python
import pickle
# ExporExcerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 5ff3ca4
uv pip install pydeseq2
git clone https://github.com/foryourhealth111-pixel/Vibe-Skills git -C Vibe-Skills checkout 5ff3ca429e5b
Commands as the repository documents them: shown, never run by us. Our verdict covers commit 5ff3ca429e5b only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
5ff3ca429e5b
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/foryourhealth111-pixel/pydeseq2/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All coding & review skills →foryourhealth111-pixel/Vibe-Skills
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.…
foryourhealth111-pixel/Vibe-Skills
Assists in writing high-quality content by conducting research, adding citations, improving hooks, iterating on outlines, and providing real-time feedback on each section. Transforms your writing process from solo…
foryourhealth111-pixel/Vibe-Skills
Write documentation following Metabase's conversational, clear, and user-focused style. Use when creating or editing documentation files (markdown, MDX, etc.).
foryourhealth111-pixel/Vibe-Skills
Foundational plotting library. Create line plots, scatter, bar, histograms, heatmaps, 3D, subplots, export PNG/PDF/SVG, for scientific visualization and publication figures.
foryourhealth111-pixel/Vibe-Skills
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", "connect external service", mentions "${CLAUDE_PLUGIN_ROOT}…
foryourhealth111-pixel/Vibe-Skills
Python interface to OpenMS for mass spectrometry data analysis. Use for LC-MS/MS proteomics and metabolomics workflows including file handling (mzML, mzXML, mzTab, FASTA, pepXML, protXML, mzIdentML), signal processing,…
Add this badge to your README
[](https://modelsatlas.com/skills/foryourhealth111-pixel/pydeseq2/)
<a href="https://modelsatlas.com/skills/foryourhealth111-pixel/pydeseq2/"><img src="https://modelsatlas.com/skills/foryourhealth111-pixel/pydeseq2/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Pydeseq2
What does the Pydeseq2 skill do?
Is Pydeseq2 safe to install?
What can Pydeseq2 access on my machine?
How current is this page?
Sources
- github.com/foryourhealth111-pixel/Vibe-Skills/tree/main/bundled/ — the audited source at commit 5ff3ca429e5b and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Pydeseq2 skill do?
- Is Pydeseq2 safe to install?
- What can Pydeseq2 access on my machine?