Perform peak calling for ChIP-seq or ATAC-seq data using MACS3, with intelligent parameter detection from user feedback. Use it when you want to call peaks for ChIP-seq data or ATAC-seq data.
This skill automatically performs core peak calling with MACS2 for ChIP-seq and ATAC-seq data, based on the BAM files in the current directory. It includes automatic experiment recognition and parameter selection.
Main steps include:
${proj_dir} in Step 0.genome_size to use (e.g. hs or mm). Never decide by yourself.filtered.bam) if available.${sample}_used_parameters.txt) with justification for each chosen option.${sample}.bam # filtered bam files
all_peak_calling/
peaks/
${sample}.narrowPeak # or ${sample}.broadPeak
temp/
logs/
${sample}_used_parameters.txt
Call:
mcp__project-init-tools__project_initwith:
sample: alltask: peak_callinggenome: provided by userThe tool will:
${sample}_peak_calling directory.${sample}_peak_calling directory, which will be used as ${proj_dir}.Command Example
find . -name "*.bam" | sort
CTCF, H3K27me3, ATAC).*.filtered.bam) if available.Command Example
samtools flagstat sample.bam | egrep "properly paired|singletons"
properly paired > 0 β Paired-end (-f BAMPE)singletons β total β Single-end (-f BAM)| Detected Pattern | Experiment Type | Peak Type | Parameter Key Options |
|---|---|---|---|
| TF name (CTCF, GATA1, MYC, TP53β¦) | TF ChIP-seq | Narrow | --call-summits -q 0.01 |
| Active histone marks (H3K4me3, H3K27ac, H3K9ac) | Histone (sharp) | Narrow | --call-summits -q 0.05 |
| Broad histone marks (H3K27me3, H3K9me3, H3K36me3) | Histone (broad) | Broad | --broad --broad-cutoff 0.1 -q 0.05 |
| H3K4me1 | Intermediate | Narrow | --call-summits -q 0.05 (optional --broad) |
| ATAC | ATAC-seq | Narrow | --nomodel --shift -100 --extsize 200 -q 0.05 |
Call:
with:
treatment_file: Path to treatment BAM file.control_file: Path to control/input BAM file. Required for ChIP-seq data. Prompt the user for the required file if not provided.genome_size: Always provided by user.name: Experiment name (prefix for output files).out_dir: ${proj_dir}/peaksbroad: If True, call broad peaks (for histone marks).broad_cutoff: Cutoff for broad region calling.qvalue: Q-value cutoff for peak detection. Prompt the user for the q value cutoff.format: use BAMPE for pair-end data, BAM for single-end data.nomodel: True for ATAC-seq, False for ChIP-seq.shift: Shift size in bp (e.g., -100 for ATAC-seq).extsize:"Extension size in bp (e.g., 200 for ATAC-seq).After auto-selection, the skill writes a log file:
Example content:
Genome detected:
Experiment type: H3K27me3 (broad histone)
Sequencing type: paired-end
Control used: input_control.bam
MACS3 mode: --broad --broad-cutoff 0.1 -q 0.05
Reasoning:
- Broad mark (H3K27me3) requires domain-level detection
- Control detected and applied
- Genome identified as <*>; using -g <*>
- Paired-end library; use -f BAMPE