agentleFS
zongtingweizongtingwei/Bioclaw_Skills_Hub/skills/epigenomics-and-regulation/atac-seq/SKILL.md

atac-seq

Skill27 starsChanged 8 months agoMITView on GitHub

ATAC-seq processing with assay QC, MACS3 peak calling, consensus peak matrices, differential accessibility, and motif or footprint follow-up.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify the runtime first:

    line 18
  2. Distinctive:

    Use this skill when the user needs:

    line 24
  3. Distinctive:

    call peaks without control using ATAC-specific settings

    line 41
  4. Distinctive:

    if TSS enrichment is poor, stop and flag data quality before interpretation

    line 42
  5. Distinctive:

    Read technical_reference.md for QC gates and assay-specific caveats.

    line 46
  6. Distinctive:

    Read commands_and_thresholds.md for peak-calling commands, thresholds, and output conventions.

    line 47
  7. Distinctive:

    Use fragment-aware paired-end mode and Tn5-aware shifting or equivalent settings.

    line 109
  8. Distinctive:

    Use replicate-aware statistics and report both effect size and adjusted significance.

    line 117
  9. Distinctive:

    Only after peak quality and read depth support it.

    line 121

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ATAC Seq

Version Compatibility

Reference examples assume:

  • macs3 3.0+
  • samtools 1.18+
  • deepTools 3.5+

Verify the runtime first:

  • CLI: macs3 --version, samtools --version, bamCoverage --version

Overview

Use this skill when the user needs:

  • bulk ATAC-seq QC
  • peak calling
  • accessibility counting
  • differential accessibility
  • motif deviation or footprint follow-up

When To Use This Skill

  • the task is bulk ATAC-seq rather than ChIP-seq
  • TSS enrichment, fragment periodicity, or FRiP need review
  • the output should include peaks, counts, and downstream accessibility summaries

Quick Route

  • paired-end bulk ATAC: use BAMPE
  • call peaks without control using ATAC-specific settings
  • if TSS enrichment is poor, stop and flag data quality before interpretation

Progressive Disclosure

  • Read technical_reference.md for QC gates and assay-specific caveats.
  • Read commands_and_thresholds.md for peak-calling commands, thresholds, and output conventions.

Prerequisites

CheckGuidance
uniquely mapped reads>= 20M preferred for strong bulk ATAC
TSS enrichment> 7 acceptable, > 10 strong
FRiP> 0.2 often strong for good bulk ATAC

Expected Inputs

  • paired-end ATAC BAM or FASTQ
  • reference genome
  • sample groups for comparisons

Expected Outputs

  • results/peaks/sample_peaks.narrowPeak
  • results/matrix/consensus_peak_counts.tsv
  • results/diff_accessibility.tsv
  • figures/tss_enrichment.pdf
  • figures/fragment_size_distribution.pdf

Starter Pattern

macs3 callpeak \
  -t atac.bam \
  -f BAMPE \
  -g hs \
  -n sample \
  --nomodel \
  --shift -100 \
  --extsize 200 \
  -q 0.01 \
  --outdir results/peaks

Key Parameters

ParameterTypical valueNotes
-fBAMPEpaired-end ATAC should use fragment-aware mode
--nomodelonstandard for ATAC
--shift-100common Tn5 offset convention
--extsize200common first-pass extension
-q0.01starting FDR threshold

Workflow

1. Validate assay QC

Review:

  • TSS enrichment
  • fragment size periodicity
  • duplication
  • mapped read depth

2. Call peaks with ATAC-specific settings

Use fragment-aware paired-end mode and Tn5-aware shifting or equivalent settings.

3. Build a consensus peak matrix

Merge peaks across samples, count fragments into consensus intervals, then produce a peak-by-sample matrix.

4. Test differential accessibility

Use replicate-aware statistics and report both effect size and adjusted significance.

5. Run motif or footprint follow-up

Only after peak quality and read depth support it.

Output Artifacts

results/
├── peaks/
│   ├── sample_peaks.narrowPeak
│   └── sample_summits.bed
├── matrix/
│   └── consensus_peak_counts.tsv
└── diff_accessibility.tsv
qc/
├── tss_enrichment.tsv
└── fragment_metrics.tsv
figures/
├── tss_enrichment.pdf
└── fragment_size_distribution.pdf

Quality Review

  • TSS enrichment below 7 should trigger caution.
  • Strong nucleosome periodicity supports a good bulk ATAC library.
  • FRiP below 0.1 is usually weak and needs scrutiny.
  • Footprinting should not be trusted on low-depth or poor-quality libraries.

Anti-Patterns

  • using generic ChIP peak-calling defaults for ATAC
  • running footprinting on weak libraries
  • skipping TSS enrichment review
  • merging peaks from mixed reference builds

Related Skills

  • ChIP Seq
  • Gene Regulatory Networks
  • Multiome And scATAC

Optional Supplements

  • deeptools
  • pysam

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.