← LeaderboardThe Skill Leaderboard

bio-experimental-design-multiple-testing

Skill file skills/bio-experimental-design-multiple-testing/SKILL.md in FreedomIntelligence/OpenClaw-Medical-Skills. Read the publisher’s upstream source.

Description awaits a fresh source check.

Published by FreedomIntelligence ↗FreedomIntelligence/OpenClaw-Medical-Skills

Try your first task

bio-experimental-design-multiple-testing

Start a fresh conversation. Replace the highlighted placeholders.

Use bio-experimental-design-multiple-testing to Draft a conceptual analysis plan to apply multiple testing correction (FDR, Bonferroni, or q-value) to [input_genomics_data] based on the study scenario (e.g., genome-wide DE vs validation). Please ensure current documentation and permissions are reviewed before any future execution. Keep this to a sanitized or synthetic research intake/readiness plan grounded in the cited historical source version. Check current documentation, permissions and prerequisites before any later execution, and wait for my explicit confirmation before any external action, live data access, tool execution, installation, file changes or deployment. Do not diagnose, recommend treatment, generate biological sequences or provide experimental protocols.

Required inputs

  • [input_genomics_data]

User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗

SKILL.md


name: bio-experimental-design-multiple-testing description: Applies multiple testing correction methods including FDR, Bonferroni, and q-value for genomics data. Use when filtering differential expression results, setting significance thresholds, or choosing between correction methods for different study designs. tool_type: r primary_tool: qvalue measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes. allowed-tools:

  • read_file
  • run_shell_command

Multiple Testing Correction

The Problem

Testing 20,000 genes at p < 0.05 yields ~1,000 false positives by chance. Correction is essential.

Common Methods

Bonferroni (Most Conservative)

# Strict family-wise error rate control
p_adj <- p.adjust(pvalues, method = 'bonferroni')
# Threshold: alpha / n_tests
# Use for: small gene sets, confirmatory studies

Benjamini-Hochberg FDR (Standard)

# Controls false discovery rate
p_adj <- p.adjust(pvalues, method = 'BH')
# Most common for genomics
# FDR 0.05 = expect 5% of significant results to be false

q-value (Recommended for Large-Scale)

library(qvalue)
qobj <- qvalue(pvalues)
qvalues <- qobj$qvalues
pi0 <- qobj$pi0  # Estimated proportion of true nulls

# q-value directly estimates FDR for each gene
# More powerful than BH when many true positives exist

Method Selection Guide

ScenarioRecommended MethodThreshold
Genome-wide DEBH or q-valueFDR < 0.05
Candidate genesBonferronip < 0.05/n
ExploratoryBHFDR < 0.10
Validation studyBonferronip < 0.05/n
GWASBonferronip < 5e-8

Python Equivalent

from statsmodels.stats.multitest import multipletests

# Benjamini-Hochberg
rejected, pvals_corrected, _, _ = multipletests(pvalues, method='fdr_bh')

# Bonferroni
rejected, pvals_corrected, _, _ = multipletests(pvalues, method='bonferroni')

Interpreting Results

  • FDR 0.05: Among genes called significant, ~5% are false positives
  • FDR 0.01: More stringent, fewer false positives but more false negatives
  • padj vs qvalue: Both estimate FDR; q-value is slightly more powerful

Related Skills

  • differential-expression/de-results - Applying corrections to DE output
  • population-genetics/association-testing - GWAS significance thresholds
  • pathway-analysis/go-enrichment - Correcting enrichment p-values