batch-analysis
Guide for multi-experiment batch operations: QC screening, batch download, comparison, and report generation across many ENCODE…
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
Claude Code
$ npx -y skills add ammawla/encode-toolkit --skill accessibility-aggregation --agent claude-code
Codex
$ npx skills add ammawla/encode-toolkit --skill accessibility-aggregation -a codex -y
Cursor
$ npx skills add ammawla/encode-toolkit --skill accessibility-aggregation -a cursor -y
Gemini CLI
$ npx skills add ammawla/encode-toolkit --skill accessibility-aggregation -a gemini-cli -y
GitHub Copilot
$ npx skills add ammawla/encode-toolkit --skill accessibility-aggregation -a github-copilot -y
OpenCode
$ npx skills add ammawla/encode-toolkit --skill accessibility-aggregation -a opencode -y
Windsurf
$ npx skills add ammawla/encode-toolkit --skill accessibility-aggregation -a windsurf -y
name: accessibility-aggregation description: 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 set. Handles cross-lab variation, ATAC vs DNase platform differences, and ENCODE blocklist filtering.
Build a comprehensive map of open chromatin for a tissue/cell type by merging ATAC-seq and/or DNase-seq narrowPeak files from multiple ENCODE experiments.
**The question**: "Where is chromatin accessible in my tissue?"
Like histone marks, chromatin accessibility is a **detection question**. An open chromatin region detected in one donor but not another is still a real accessible site — individual variation, sequencing depth, and technical factors explain absence. We want the **union of all detections**.
Both measure open chromatin but with different biases:
| Property | ATAC-seq | DNase-seq | |----------|----------|-----------| | Method | Tn5 transposase insertion | DNase I hypersensitivity | | Input required | ~50K cells | ~1M cells | | Resolution | High | High | | GC bias | Moderate (Tn5 preference) | Low | | Mitochondrial reads | High (filter needed) | None | | ENCODE availability | Newer experiments | Extensive historical catalog | | Comparability | Generally comparable at open regions | |
**Recommendation**: If combining ATAC-seq and DNase-seq peaks, treat them as equivalent signal sources for accessibility. The union is appropriate because both detect the same biological signal (open chromatin) through different enzymatic mechanisms.
# ATAC-seq
encode_search_experiments(
assay_title="ATAC-seq",
organ="pancreas",
biosample_type="tissue",
limit=100
)
# DNase-seq
encode_search_experiments(
assay_title="DNase-seq",
organ="pancreas",
biosample_type="tissue",
limit=100
)Present a summary to the user:
Ask the user:
For a comprehensive accessibility catalog, combining both is scientifically justified.
encode_get_experiment(accession="ENCSR...")
Track all included experiments:
encode_track_experiment(accession="ENCSR...")
For each experiment:
# ATAC-seq — IDR thresholded peaks
encode_list_files(
experiment_accession="ENCSR...",
file_format="bed",
output_type="IDR thresholded peaks",
assembly="GRCh38"
)
# DNase-seq — may use different output types
encode_list_files(
experiment_accession="ENCSR...",
file_format="bed",
output_type="peaks",
assembly="GRCh38"
)Prefer `preferred_default=True` files.
encode_download_files(
file_accessions=["ENCFF...", ...],
download_dir="/path/to/data/accessibility",
organize_by="flat"
)Validate the downloaded files before filtering. Pass `--assay` so the peak-width and Tn5 checks match the assay; gzipped inputs are read directly.
python3 scripts/validate_peaks.py sample.narrowPeak [--assay atac|dnase|unknown] [--blacklist hg38-blacklist.v2.bed]
# Download from: https://github.com/Boyle-Lab/Blacklist/blob/master/lists/hg38-blacklist.v2.bed.gz gunzip -k hg38-blacklist.v2.bed.gz bedtools intersect -a sample.narrowPeak -b hg38-blacklist.v2.bed -v > sample.filtered.narrowPeak
Same logic as histone aggregation — filter per-sample to top 75% by signalValue (column 7):
# Per-sample: remove bottom 25% by signalValue (true distribution quantile)
TOTAL=$(wc -l < sample.filtered.narrowPeak)
LINE_25=$(echo "$TOTAL" | awk '{printf "%dSearch ENCODE, cross-reference 14 databases, run 7 analysis pipelines, and generate publication-ready methods — all from natural language in Claude Code.
Guide for multi-experiment batch operations: QC screening, batch download, comparison, and report generation across many ENCODE…
Install bioinformatics tools for ENCODE data analysis. Covers CLI tools (BWA, STAR, samtools, MACS2), R/Bioconductor packages…
Guide for integrating CellxGene Census single-cell data with ENCODE bulk experiments. Use when users need cell-type-specific…
Generate proper ENCODE citations for publications, grants, and presentations. Use when the user needs to cite ENCODE data, create…
Guide for annotating ENCODE regulatory variants with ClinVar clinical significance. Use when users need to check if variants in…
Compare ENCODE experiments across different biosamples, tissues, or cell lines to identify tissue-specific regulatory patterns.…
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…