/batch-analysis
Guide for multi-experiment batch operations: QC screening, batch download, comparison, and report generation across many ENCODE experiments simultaneously. Use when users need to process 5+ experiments together, create experiment comparison tables, perform batch quality checks,
$ npx -y skills add ammawla/encode-toolkit --skill batch-analysis --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/batch-analysis
Context preview
The summary Claude sees to decide when to auto-load this skill.
Guide for multi-experiment batch operations: QC screening, batch download, comparison, and report generation across many ENCODE experiments simultaneously. Use when users need to process 5+ experiments together, create experiment comparison tables, perform batch quality checks,
SKILL.md
batch-analysis.SKILL.mdname: batch-analysis
description: "Guide for multi-experiment batch operations: QC screening, batch download, comparison, and report generation across many ENCODE experiments simultaneously. Use when users need to process 5+ experiments together, create experiment comparison tables, perform batch quality checks, or generate summary reports. Trigger on: batch analysis, multiple experiments, bulk processing, experiment comparison, batch QC, multi-sample, batch download, experiment table, summary report, collection analysis."
Batch Analysis of ENCODE Experiments
When to Use
- User wants to process, compare, or QC multiple ENCODE experiments simultaneously
- User asks about "batch analysis", "bulk processing", "experiment comparison table", or "multi-sample QC"
- User needs to screen 5+ experiments for quality before analysis
- User wants a summary report or comparison table across many experiments
- Example queries: "QC all H3K27ac experiments in liver", "compare quality across 10 ChIP-seq datasets", "batch download and summarize my experiment collection"
Help the user perform systematic batch operations across multiple ENCODE experiments. When working with 5 or more experiments -- common in cross-tissue comparisons, multi-mark epigenomic profiling, or large-scale data collection -- individual experiment-by-experiment workflows become impractical and error-prone. This skill covers batch discovery, quality screening, download management, pairwise comparison, and report generation using the ENCODE MCP tools.
Literature Foundation
| Reference | Journal | Key Contribution | DOI | Citations | |-----------|---------|-----------------|-----|-----------| | ENCODE Project Consortium (2020) | Nature | Expanded encyclopedia of 926,535 candidate cis-regulatory elements across 1,698 cell types; framework for large-scale integrative analysis | [10.1038/s41586-020-2493-4](https://doi.org/10.1038/s41586-020-2493-4) | ~2,000 | | Hitz et al. (2023) | Nucleic Acids Research | The ENCODE Uniform Processing Pipelines: standardized processing enables large-scale batch comparisons | [10.1093/nar/gkac1067](https://doi.org/10.1093/nar/gkac1067) | ~50 | | Landt et al. (2012) | Genome Research | ChIP-seq guidelines of ENCODE/modENCODE: QC metrics (FRiP, NSC, RSC, NRF) for batch quality assessment | [10.1101/gr.136184.111](https://doi.org/10.1101/gr.136184.111) | ~4,000 | | Leek et al. (2010) | Nature Reviews Genetics | Tackling batch effects: detection via PCA, correction via ComBat/SVA; essential for multi-lab analyses | [10.1038/nrg2825](https://doi.org/10.1038/nrg2825) | ~1,200 | | Amemiya et al. (2019) | Scientific Reports | ENCODE Blacklist: artifact regions to exclude across all experiments in batch analyses | [10.1038/s41598-019-45839-z](https://doi.org/10.1038/s41598-019-45839-z) | ~1,372 |
Part 1: Batch Discovery and QC Screening
1a. Systematic Experiment Discovery
Start with `encode_get_facets` to understand the scope of available data before committing to a batch:
encode_get_facets(
assay_title="Histone ChIP-seq",
organ="pancreas"
)This returns counts by target, biosample type, lab, and status. Use facets to estimate how many experiments match your criteria and identify potential batch variables (multiple labs, multiple biosample types).
Then search for all candidate experiments:
results = encode_search_experiments(
assay_title="Histone ChIP-seq",
target="H3K27ac",
biosample_type="tissue",
organism="Homo sapiens",
limit=100
)1b. Building the Experiment Table
Create a structured table of all candidate experiments for review:
For each experiment in search results:
encode_get_experiment(accession="ENCSR...")
Collect into table:
| Accession | Target | Biosample | Lab | Replicates | Audit Status | Date Released |Key fields to extract:
- Accession
- Assay title
- Target (for ChIP-seq)
- Biosample term name
- Biosample type (tissue, cell line, primary cell)
- Lab
- Number of biological replicates
- Audit level (ERROR, NOT_COMPLIANT, WARNING)
- Assembly
- Date released
- Pipeline version
1c. Quality Screening Criteria
Apply the ENCODE quality standards (Landt et al. 2012) to filter experiments:
**Mandatory exclusion** (remove from batch):
| Criterion | Threshold | Rationale | |-----------|-----------|-----------| | Audit level = ERROR | Exclude | Fundamental data quality failure | | Assembly mismatch | Exclude if mixed | Cannot combine GRCh38 with hg19 | | 0 replicates | Exclude | No biological replication |
**Quality flags** (include with notation):
| Criterion | Threshold | Action | |-----------|-----------|--------| | Audit level = NOT_COMPLIANT | Flag | Include but note in report | | Single replicate | Flag | Reduced statistical power; note | | FRiP < 1% (ChIP-seq) | Flag | Low enrichment; may lack signal | | NRF < 0.8 | Flag | Low library complexity | | NSC < 1.05 | Flag | Low signal-to-noise | | RSC < 0.8 | Flag | Low relative strand correlation |
**Quality tiers for batch analysis**:
| Tier | Criteria | Use Case | |------|----------|----------| | Tier 1 | No audits, 2+ replicates, all QC pass | Gold standard; use for primary analysis | | Tier 2 | WARNING audits only, 2+ replicates | Acceptable; include with documentation | | Tier 3 | NOT_COMPLIANT audits or 1 replicate | Use only if Tier 1/2 insufficient; flag heavily | | Exclude | ERROR audits or 0 replicates | Never include |
1d. Identifying Batch Variables
Before proceeding, identify potential confounders across the experiment collection:
Group experiments by:
- Lab (different labs = potential batch effect)
- Date released (>1 year gap = potential processing differences)
- Pipeline version (different versions = different peak calls)
- Sequencing platform (Illumina vs other)
- Library prep methodIf all experiments of one condition come from one lab and all experiments of another condition come from a diff
Read more
name: batch-analysis description: "Guide for multi-experiment batch operations: QC screening, batch download, comparison, and report generation across many ENCODE experiments simultaneously. Use when users need to process 5+ experiments together, create experiment comparison tables, perform batch quality checks, or generate summary reports. Trigger on: batch analysis, multiple experiments, bulk processing, experiment comparison, batch QC, multi-sample, batch download, experiment table, summary report, collection analysis."
Batch Analysis of ENCODE Experiments
When to Use
- User wants to process, compare, or QC multiple ENCODE experiments simultaneously
- User asks about "batch analysis", "bulk processing", "experiment comparison table", or "multi-sample QC"
- User needs to screen 5+ experiments for quality before analysis
- User wants a summary report or comparison table across many experiments
- Example queries: "QC all H3K27ac experiments in liver", "compare quality across 10 ChIP-seq datasets", "batch download and summarize my experiment collection"
Help the user perform systematic batch operations across multiple ENCODE experiments. When working with 5 or more experiments -- common in cross-tissue comparisons, multi-mark epigenomic profiling, or large-scale data collection -- individual experiment-by-experiment workflows become impractical and error-prone. This skill covers batch discovery, quality screening, download management, pairwise comparison, and report generation using the ENCODE MCP tools.
Literature Foundation
| Reference | Journal | Key Contribution | DOI | Citations | |-----------|---------|-----------------|-----|-----------| | ENCODE Project Consortium (2020) | Nature | Expanded encyclopedia of 926,535 candidate cis-regulatory elements across 1,698 cell types; framework for large-scale integrative analysis | [10.1038/s41586-020-2493-4](https://doi.org/10.1038/s41586-020-2493-4) | ~2,000 | | Hitz et al. (2023) | Nucleic Acids Research | The ENCODE Uniform Processing Pipelines: standardized processing enables large-scale batch comparisons | [10.1093/nar/gkac1067](https://doi.org/10.1093/nar/gkac1067) | ~50 | | Landt et al. (2012) | Genome Research | ChIP-seq guidelines of ENCODE/modENCODE: QC metrics (FRiP, NSC, RSC, NRF) for batch quality assessment | [10.1101/gr.136184.111](https://doi.org/10.1101/gr.136184.111) | ~4,000 | | Leek et al. (2010) | Nature Reviews Genetics | Tackling batch effects: detection via PCA, correction via ComBat/SVA; essential for multi-lab analyses | [10.1038/nrg2825](https://doi.org/10.1038/nrg2825) | ~1,200 | | Amemiya et al. (2019) | Scientific Reports | ENCODE Blacklist: artifact regions to exclude across all experiments in batch analyses | [10.1038/s41598-019-45839-z](https://doi.org/10.1038/s41598-019-45839-z) | ~1,372 |
Part 1: Batch Discovery and QC Screening
1a. Systematic Experiment Discovery
Start with `encode_get_facets` to understand the scope of available data before committing to a batch:
encode_get_facets(
assay_title="Histone ChIP-seq",
organ="pancreas"
)This returns counts by target, biosample type, lab, and status. Use facets to estimate how many experiments match your criteria and identify potential batch variables (multiple labs, multiple biosample types).
Then search for all candidate experiments:
results = encode_search_experiments(
assay_title="Histone ChIP-seq",
target="H3K27ac",
biosample_type="tissue",
organism="Homo sapiens",
limit=100
)1b. Building the Experiment Table
Create a structured table of all candidate experiments for review:
For each experiment in search results:
encode_get_experiment(accession="ENCSR...")
Collect into table:
| Accession | Target | Biosample | Lab | Replicates | Audit Status | Date Released |Key fields to extract:
- Accession
- Assay title
- Target (for ChIP-seq)
- Biosample term name
- Biosample type (tissue, cell line, primary cell)
- Lab
- Number of biological replicates
- Audit level (ERROR, NOT_COMPLIANT, WARNING)
- Assembly
- Date released
- Pipeline version
1c. Quality Screening Criteria
Apply the ENCODE quality standards (Landt et al. 2012) to filter experiments:
**Mandatory exclusion** (remove from batch):
| Criterion | Threshold | Rationale | |-----------|-----------|-----------| | Audit level = ERROR | Exclude | Fundamental data quality failure | | Assembly mismatch | Exclude if mixed | Cannot combine GRCh38 with hg19 | | 0 replicates | Exclude | No biological replication |
**Quality flags** (include with notation):
| Criterion | Threshold | Action | |-----------|-----------|--------| | Audit level = NOT_COMPLIANT | Flag | Include but note in report | | Single replicate | Flag | Reduced statistical power; note | | FRiP < 1% (ChIP-seq) | Flag | Low enrichment; may lack signal | | NRF < 0.8 | Flag | Low library complexity | | NSC < 1.05 | Flag | Low signal-to-noise | | RSC < 0.8 | Flag | Low relative strand correlation |
**Quality tiers for batch analysis**:
| Tier | Criteria | Use Case | |------|----------|----------| | Tier 1 | No audits, 2+ replicates, all QC pass | Gold standard; use for primary analysis | | Tier 2 | WARNING audits only, 2+ replicates | Acceptable; include with documentation | | Tier 3 | NOT_COMPLIANT audits or 1 replicate | Use only if Tier 1/2 insufficient; flag heavily | | Exclude | ERROR audits or 0 replicates | Never include |
1d. Identifying Batch Variables
Before proceeding, identify potential confounders across the experiment collection:
Group experiments by:
- Lab (different labs = potential batch effect)
- Date released (>1 year gap = potential processing differences)
- Pipeline version (different versions = different peak calls)
- Sequencing platform (Illumina vs other)
- Library prep methodIf all experiments of one condition come from one lab and all experiments of another condition come from a diff
Showing the first part of this file.
Search ENCODE, cross-reference 14 databases, run 7 analysis pipelines, and generate publication-ready methods — all from natural language in Claude Code.
Repo: ammawla/encode-toolkit
Other skills on encode-toolkit.
- /accessibility-aggregation
Build comprehensive chromatin accessibility maps by aggregating ATAC-seq and DNase-seq narrowPeak data across multiple ENCODE experiments, donors, and labs. Use when the user wants to answer "where is chromatin accessible in my tissue?" by combining peak calls into a union peak
Open skill - /bioinformatics-installer
Install bioinformatics tools for ENCODE data analysis. Covers CLI tools (BWA, STAR, samtools, MACS2), R/Bioconductor packages (DESeq2, Seurat, ChIPseeker), Python packages (Scanpy, deeptools), and Nextflow pipeline infrastructure. Generates conda environments, R install scripts,
Open skill - /cellxgene-context
Guide for integrating CellxGene Census single-cell data with ENCODE bulk experiments. Use when users need cell-type-specific expression context for ENCODE regulatory data, want to deconvolve bulk ENCODE signals, or validate regulatory elements at single-cell resolution. Trigger
Open skill - /cite-encode
Generate proper ENCODE citations for publications, grants, and presentations. Use when the user needs to cite ENCODE data, create bibliography entries, write acknowledgment sections, or ensure compliance with ENCODE data use policy.
Open skill - /clinvar-annotation
Guide for annotating ENCODE regulatory variants with ClinVar clinical significance. Use when users need to check if variants in ENCODE peaks have clinical associations, find pathogenic variants in regulatory regions, or assess variant clinical impact. Trigger on: ClinVar,
Open skill - /compare-biosamples
Compare ENCODE experiments across different biosamples, tissues, or cell lines to identify tissue-specific regulatory patterns. Use when the user wants cross-tissue comparison, cell-type comparison, tissue-specific elements, differential chromatin, biosample matching, disease vs
Open skill

