zaoqu-liu/scienceclaw/tooluniverse-epigenomics
Claude Code and agent skill by zaoqu-liu/scienceclaw
- community
Checking that the SKILL.md file is still in the repository.
Production-ready genomics and epigenomics data processing for BixBench questions. Handles methylation array analysis (CpG filtering, differential methylation, age-related CpG detection, chromosome-level density), ChIP-seq peak analysis (peak calling, motif enrichment, coverage stats), ATAC-seq chromatin accessibility, multi-omics integration (expression + methylation correlation), and genome-wide statistics. Pure Python computation (pandas, scipy, numpy, pysam, statsmodels) plus ToolUniverse an…
Install
npx vskill@latest install zaoqu-liu/scienceclaw/tooluniverse-epigenomicsSKILL.md
Genomics and Epigenomics Data Processing
Production-ready computational skill for processing and analyzing epigenomics data. Combines local Python computation (pandas, scipy, numpy, pysam, statsmodels) with ToolUniverse annotation tools for regulatory context. Designed to solve BixBench-style questions about methylation, ChIP-seq, ATAC-seq, and multi-omics integration.
When to Use This Skill
Triggers:
- User provides methylation data (beta-value matrices, Illumina arrays) and asks about CpG sites
- Questions about differential methylation analysis
- Age-related CpG detection or epigenetic clock questions
- Chromosome-level methylation density or statistics
- ChIP-seq peak files (BED format) with analysis questions
- ATAC-seq chromatin accessibility questions
- Multi-omics integration (expression + methylation, expression + ChIP-seq)
- Genome-wide epigenomic statistics
- Questions mentioning "methylation", "CpG", "ChIP-seq", "ATAC-seq", "histone", "chromatin", "epigenetic"
- Questions about missing data across clinical/genomic/epigenomic modalities
- Regulatory element annotation for processed epigenomic data
NOT for (use other skills instead):
- Gene regulation lookup without data files -> Use existing epigenomics annotation pattern
- RNA-seq differential expression -> Use
tooluniverse-rnaseq-deseq2 - Variant calling/annotation from VCF -> Use
tooluniverse-variant-analysis - Gene enrichment analysis -> Use
tooluniverse-gene-enrichment
Required Python Packages
KEY PRINCIPLES
- Data-first approach - Load and inspect data files BEFORE any analysis
- Question-driven - Parse what the user is actually asking and extract the specific numeric answer
- File format detection - Automatically detect methylation arrays, BED files, BigWig, clinical data
- Coordinate system awareness - Track genome build (hg19, hg38, mm10), handle chr prefix differences
- Statistical rigor - Proper multiple testing correction, effect size filtering, sample size awareness
- Missing data handling - Explicitly report and handle NaN/missing values
- Chromosome normalization - Always normalize chromosome names (chr1 vs 1, chrX vs X)
- Report-first - Create output file first, populate progressively
- English-first queries - Use English in all tool calls
Complete Workflow
Phase 0: Question Parsing and Data Discovery
CRITICAL FIRST STEP: Before writing ANY code, parse the question to identify what is being asked and what data files are available.
Extract parameters from question:
| Parameter | Default | Example | |||
|---|---|---|---|---|---|
| Significance threshold | 0.05 | "padj < 0.05", "FDR < 0.01" | |||
| Beta difference threshold | 0 | " | delta_beta | > 0.2" | |
| Variance filter | None | "variance > 0.01", "top 5000 most variable" | |||
| Chromosome filter | All | "chromosome 17", "autosomes only" | |||
| Genome build | hg38 | "hg19", "GRCh37", "mm10" |
Decision Tree:
Phase 1: Methylation Data Processing
Core functions (copy-paste ready):
Genome chromosome lengths (hg38/hg19/mm10): see get_chromosome_lengths() in REFERENCE.md.
Phase 2-3: ChIP-seq / ATAC-seq (summary)
Full implementations with all edge cases are in REFERENCE.md.
Phase 4-5: Multi-Omics & Clinical Integration (summary)
Full implementations in REFERENCE.md.
Phase 6: ToolUniverse Annotation Tools
| Tool | Key Parameters | Returns | |
|---|---|---|---|
ensembl_lookup_gene | id, species='homo_sapiens' (REQUIRED) | gene coords, biotype | |
ensembl_get_regulatory_features | region (NO "chr" prefix!), feature, species | regulatory features | |
SCREEN_get_regulatory_elements | gene_name, element_type, limit | cCREs (enhancers, promoters) | |
ChIPAtlas_get_experiments | operation='get_experiment_list' (REQUIRED), genome, antigen | experiment list | |
ReMap_get_transcription_factor_binding | gene_name, cell_type, limit | TF binding sites | |
RegulomeDB_query_variant | rsid | regulatory score | |
jaspar_search_matrices | search, collection, species | TF matrices | |
ENCODE_search_experiments | assay_title, target, organism, limit | experiment metadata |
CRITICAL: Ensembl region format is "17:start-end" (NO "chr" prefix). ChIPAtlas/FourDN ALL require operation parameter.
Common Use Patterns
Methylation array: Load beta matrix + manifest → filter CpGs → define groups → differential_methylation() → apply thresholds → report DMPs
Age-related CpG density: Load beta + ages → correlate per probe → filter significant → map to chromosomes → chromosome_cpg_density() → compute ratios
Multi-omics missing data: Load clinical + expression + methylation → extract sample IDs → find intersection → check NaN in clinical vars → report complete cases
ChIP-seq annotation: Load BED → load gene annotation → annotate_peaks_to_genes() → classify_peak_regions() → report fractions
Methylation-expression: Load both matrices → build probe-gene map → align samples → correlate_methylation_expression() → report anti-correlations
Fallback Strategies
| Scenario | Fallback | |
|---|---|---|
| No manifest file | Build minimal from Ensembl lookup | |
| No pybedtools | Pure Python overlap (pandas intervals) | |
| Low sample count | Non-parametric test (Wilcoxon) | |
| Large dataset (>500K probes) | Pre-filter by variance, chunk processing | |
| Sample ID mismatches | Try truncating TCGA barcodes, partial matching |
Extended Reference: Full code implementations for all phases (includingget_chromosome_lengths(),load_bed_file(), peak overlap, multi-omics integration, edge cases, and limitations) are inREFERENCE.md.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tooluniverse-epigenomics/SKILL.md
Popularity
- Repository stars
- 60
- Repository forks
- 15
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zaoqu-liu/scienceclaw/tooluniverse-epigenomics)