Agent skill

bio-atac-seq-atac-peak-calling

Call accessible chromatin regions from ATAC-seq BAM files using MACS3, MACS2, Genrich, or HMMRATAC. Use when identifying open chromatin from aligned ATAC-seq, choosing between point-source vs HMM peak callers, applying ENCODE-style pseudoreplicate IDR, removing blacklist regions, or fixing 501bp consensus peaks for downstream differential analysis.

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeships scriptsNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill atac-peak-calling --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 20 KB
Bundled scripts: yes
Path: skills/bioskills/atac-peak-calling/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 135
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Call accessible chromatin regions from ATAC-seq BAM files using MACS3, MACS2, Genrich, or HMMRATAC. It guides choosing between point-source vs HMM peak callers, applying ENCODE-style pseudoreplicate IDR, removing blacklist regions, and fixing 501bp consensus peaks for downstream differential analysis.

How it works

Describes canonical command patterns for each tool and scenario:

  • macs2 callpeak with BAM/BAMPE inputs and ENCODE-like options (e.g., -p 0.01, -B, --SPMR, --nomodel, --shift -75, --extsize 150, -f BAM or BAMPE).
  • macs3 hmmratac invocation for single-sample HMM-based calling.
  • Genrich in joint-replicate mode with -j and -e/ -E options; guidance on down-sampling and PCR-dup removal.
  • ENCODE 4 recommendations: per-replicate calls with -p 0.01 and pooled/pseudoreplicates using samtools pseudoreplication; use IDR to derive reproducible peaks.
  • Shift-extend vs BAMPE explanations for Pattern A vs Pattern B input methods, including -f BAM --shift --extsize versus -f BAMPE.
  • Effective genome size considerations and how to parameterize -g hs/mm vs the deeper deepTools-derived values.
  • Handling of broad vs narrow peak calls, and when to use each for differential analysis or SE annotation.

When to use it

Triggered by: identifying open chromatin from ATAC-seq data, choosing between point-source vs HMM peak callers, applying ENCODE pseudoreplicate IDR, or removing blacklist regions, or adjusting peak consensus sizing for differential analysis.

What it can touch

Uses tools listed in the skill: CLI tools including macs2, macs3, Genrich, HMMRATAC; supports -t inputs, -f input format specifications, -g genome size specifiers, -e/ -E blacklist files, and IDR-related steps. The skill folder ships executable scripts that implement these patterns.

Caveats

Cites version compatibility requirements (MACS3 3.0.2+, MACS2 2.2.9+, Genrich 0.6.1+, HMMRATAC 1.2+; samtools 1.19+, bedtools 2.31+, IDR 2.0.4+), with instructions to verify versions via <tool> --version and <tool> --help. Notes potential issues with broad vs narrow modes, depth sensitivity for HMMRATAC, and ENCODE 4 vs ENCODE 3 differences. Includes handling for chromap aligners and warnings about shift behavior when using BAMPE inputs. No claims about outcomes beyond the explicit patterns and guidance provided.

From the SKILL.md

## Version Compatibility Reference examples tested with: MACS3 3.0.2+, MACS2 2.2.9+, Genrich 0.6.1+, HMMRATAC 1.2+ (now bundled in MACS3 as `macs3 hmmratac`), samtools 1.19+, bedtools 2.31+, IDR 2.0.4+. Before using code patterns, verify installed versions match. If versions differ: - CLI: `<tool> --version` then `<tool> --help` to confirm flags If code throws unexpected errors, introspect the installed binary (`<tool> -h`) and adapt the example to match the actual CLI rather than retrying. # ATAC-seq Peak Calling **"Call accessible regions from my ATAC-seq BAM"** -> Identify Tn5-hypersensitive open chromatin, treating fragments as point insertion events (not protein-bound regions as in ChIP-seq) and accounting for the lack of input control. - CLI (canonical, ENCODE 4): `macs2 callpeak -t atac.bam -f BAMPE -g hs -n sample --nomodel --shift -75 --extsize 150 --keep-dup all -B --SPMR -p 0.01` - CLI (HMM-based, single sample): `macs3 hmmratac -i atac.bam -n sample --outdir hmm_out` - CLI (joint replicates): `Genrich -j -t rep1.bam,rep2.bam -o peaks.narrowPeak -e chrM -E blacklist.bed` The `-p 0.01` (loose) plus IDR is the ENCODE pattern: low stringency increases peak overlap between r

What's inside
Steps it walks through
  1. Version Compatibility
  2. Algorithmic Taxonomy
  3. Shift-Extend vs BAMPE: The Critical Choice
  4. Effective Genome Size
  5. Effective Genome Size: When It Matters
  6. Per-Tool Failure Modes
  7. MACS2/MACS3 -- Confounded NFR + broad accessibility
  8. Genrich -- Replicate weighting and chrM exclusion
  9. MACS3 hmmratac (HMMRATAC) -- Depth and fragment-size dependence
  10. HOMER findPeaks -- Window-size sensitivity
  11. Aligner choice -- chromap vs bwa-mem2 vs bowtie2 affects peak shape
  12. Single-sample (no replicate) -- Rotation / circular-shift permutation
  13. ENCODE 3 vs ENCODE 4 Differences
  14. Super-Enhancer Detection
Ships with 2 files
  • examples/call_atac_peaks.sh
  • usage-guide.md
Commands it runs
ROSE expects H3K27ac BAM but works on ATAC narrowPeak with care
ROSE_main.py -g hg38 -i atac_peaks.gff -r atac.bam -o rose_out/ -t 2500
Per-replicate peak calling (loose threshold)
macs2 callpeak \
Pooled (all replicates)
Pseudoreplicates (split each rep BAM in half)
samtools view -b -h -s 1.5 rep1.filt.dedup.bam > rep1.psr1.bam   # seed.fraction
samtools view -b -h -s 2.5 rep1.filt.dedup.bam > rep1.psr2.bam   # different seed
Sort peaks by p-value (column 8) so IDR scores by significance
sort -k8,8nr rep1_peaks.narrowPeak > rep1.sorted.narrowPeak
More from awesome-bio-agent-skills
All skills →
About this skill
What does the bio-atac-seq-atac-peak-calling skill do?

Call accessible chromatin regions from ATAC-seq BAM files using MACS3, MACS2, Genrich, or HMMRATAC. Use when identifying open chromatin from aligned ATAC-seq, choosing between point-source vs HMM peak callers, applying ENCODE-style pseudoreplicate IDR, removing blacklist regions, or fixing 501bp consensus peaks for downstream differential analysis.

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill atac-peak-calling --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going