Processes and visualizes deep-sequencing coverage with deepTools CLI: converts BAM to bigWig, builds log2 ratio tracks, runs QC (correlation, PCA, fingerprint), applies ATAC-seq Tn5 shift, and generates TSS/peak heatmaps and profiles.
deepTools is a comprehensive suite of Python command-line tools designed for processing and analyzing high-throughput sequencing data. Use deepTools to perform quality control, normalize data, compare samples, and generate publication-quality visualizations for ChIP-seq, RNA-seq, ATAC-seq, MNase-seq, and other NGS experiments.
Core capabilities:
This skill should be used when:
| Scenario | Use Instead |
|---|---|
| Per-read access: CIGAR strings, MAPQ, pileups, read filtering in Python | alterlab-pysam |
| Interval arithmetic on BED/peak sets (overlaps, Jaccard) or region embeddings | alterlab-gtars, alterlab-geniml |
| Scanning peaks for transcription-factor motifs | alterlab-jaspar |
| Counting reads per gene for differential expression | alterlab-rnaseq-quant → alterlab-pydeseq2 |
| Variant calling from the same BAMs | alterlab-nf-core-sarek |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-pysam) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
For users new to deepTools, start with file validation and common workflows:
Before running any analysis, validate BAM, bigWig, and BED files using the validation script:
python scripts/validate_files.py --bam sample1.bam sample2.bam --bed regions.bed
This checks file existence, BAM indices, and format correctness.
For standard analyses, use the workflow generator to create customized scripts:
# List available workflows
python scripts/workflow_generator.py --list
# Generate ChIP-seq QC workflow
python scripts/workflow_generator.py chipseq_qc -o qc_workflow.sh \
--input-bam Input.bam --chip-bams "ChIP1.bam ChIP2.bam" \
--genome-size 2913022398
# Make executable and run
chmod +x qc_workflow.sh
./qc_workflow.sh
See assets/quick_reference.md for frequently used commands and parameters.
uv pip install deeptools # 4.0.0 as of 2026-09 (needs Python >= 3.12)
# or: conda install -c bioconda deeptools
bamCoverage, bamCompare, computeMatrix, alignmentSieve and multiBamSummary were
rewritten with a Rust core (rayon threading, bigtools bigWig I/O). The old Python
implementations remain for now as bamCoverage_old, bamCompare_old, computeMatrix_old,
alignmentSieve_old and multiBamSummary_old, and are slated for removal.
Flags that changed, and what to do instead:
| Gone in 4.0 | Replacement |
|---|---|
--ignoreDuplicates on bamCoverage / bamCompare | --samFlagExclude 1024 (the BAM must have duplicates marked, e.g. by samtools markdup). The flag is still valid on alignmentSieve, plotFingerprint, plotCoverage, multiBamSummary and estimateReadFiltering. |
--exactScaling | removed — the new backend always scales exactly |
--plotFileFormat plotly and the plotly backend | matplotlib output only; --ggplot offers a ggplot-like theme |
Also new: gzipped GTF/BED region and blacklist files are accepted by the Rust-backed tools,
and plotPCA now uses a scipy/numpy SVD with correct --transpose, --log2/--rowCenter
and --ntop handling.
deepTools workflows typically follow this pattern: QC → Normalization → Comparison/Visualization
When users request ChIP-seq QC or quality assessment:
scripts/workflow_generator.py chipseq_qcInterpreting results:
Full workflow details in references/workflows.md → "ChIP-seq Quality Control Workflow"
For full ChIP-seq analysis from BAM to visualizations:
Use scripts/workflow_generator.py chipseq_analysis to generate template.
Complete command sequences in references/workflows.md → "ChIP-seq Analysis Workflow"
For strand-specific RNA-seq coverage tracks:
Use bamCoverage with --filterRNAstrand to separate forward and reverse strands.
Important: do not use --extendReads for RNA-seq — extension runs straight over splice
junctions and invents coverage in introns.
Use normalization: CPM for fixed bins, RPKM for gene-level analysis.
Template available: scripts/workflow_generator.py rnaseq_coverage
Details in references/workflows.md → "RNA-seq Coverage Workflow"
ATAC-seq requires Tn5 offset correction:
--ATACshiftTemplate: scripts/workflow_generator.py atacseq
Full workflow in references/workflows.md → "ATAC-seq Workflow"
deepTools commands group into three categories. Quick command examples for each
live in references/usage_playbook.md → "Inline Command Examples by Category";
full parameter documentation is in references/tools_reference.md.
tools_reference.md → "BAM and bigWig File Processing Tools")tools_reference.md → "Quality Control Tools")tools_reference.md → "Visualization Tools")Choosing the correct normalization is critical for valid comparisons. Consult references/normalization_methods.md for comprehensive guidance.
Quick selection guide:
Normalization methods:
Full explanation: references/normalization_methods.md
RPGC normalization requires effective genome size. Common values:
| Organism | Assembly | Size | Usage |
|---|---|---|---|
| Human | GRCh38/hg38 | 2,913,022,398 | --effectiveGenomeSize 2913022398 |
| Mouse | GRCm38/mm10 | 2,652,783,500 | --effectiveGenomeSize 2652783500 |
| Zebrafish | GRCz11 | 1,368,780,147 | --effectiveGenomeSize 1368780147 |
| Drosophila | dm6 | 142,573,017 | --effectiveGenomeSize 142573017 |
| C. elegans | ce10/ce11 | 100,286,401 | --effectiveGenomeSize 100286401 |
Complete table with read-length-specific values: references/effective_genome_sizes.md
Many deepTools commands share these options:
Performance:
--numberOfProcessors, -p: Enable parallel processing (always use available cores)--region: Process specific regions for testing (e.g., chr1:1-1000000)Read Filtering:
--ignoreDuplicates: skip reads flagged as PCR duplicates. Not available on
bamCoverage/bamCompare in 4.0 — use --samFlagExclude 1024 there--minMappingQuality: Filter by alignment quality (e.g., --minMappingQuality 10)--minFragmentLength / --maxFragmentLength: Fragment length bounds--samFlagInclude / --samFlagExclude: SAM flag filteringRead Processing:
--extendReads: Extend to fragment length (ChIP-seq: YES, RNA-seq: NO)--centerReads: Center at fragment midpoint for sharper signalsAlways validate files first using scripts/validate_files.py to check:
--region chr1:1-10000000 for parameter testing--extendReads 200--samFlagExclude 1024 (4.0 dropped
--ignoreDuplicates there); --ignoreDuplicates still works on the QC toolscorrectGCBias adds reads to under-represented regions, so duplicate removal
on a corrected BAM discards exactly those synthetic reads and re-introduces the bias--filterRNAstrand forward/reverse for stranded libraries--ATACshift--numberOfProcessors 8 (or available cores)BAM index missing:
samtools index input.bam
Out of memory:
Process chromosomes individually using --region:
bamCoverage --bam input.bam -o chr1.bw --region chr1
Slow processing:
Increase --numberOfProcessors and/or increase --binSize
bigWig files too large:
Increase bin size: --binSize 50 or larger
Run validation script to identify issues:
python scripts/validate_files.py --bam *.bam --bed regions.bed
Common errors and solutions explained in script output.
Load the matching reference on demand:
| Reference | Load when |
|---|---|
references/tools_reference.md | User asks about a specific tool, parameter, or detailed usage. All commands by category (BAM/bigWig 9, QC 6, visualization 3, misc 2) with parameters, examples, and notes. |
references/workflows.md | User needs a complete analysis pipeline. ChIP-seq QC, ChIP-seq analysis, RNA-seq coverage, ATAC-seq, multi-sample comparison, peak region analysis, performance tips. |
references/normalization_methods.md | User asks about normalization, comparing samples, or which method to use. Per-method detail (RPGC/CPM/RPKM/BPM…), formulas, selection guide, pitfalls. |
references/effective_genome_sizes.md | User needs a genome size for RPGC normalization or GC-bias correction. Per-organism and read-length-specific values, custom-genome calculation. |
references/usage_playbook.md | Driving the skill: per-request playbooks, example interactions, quick command examples by category, and grep recipes for searching the references above. |
Validates BAM, bigWig, and BED files for deepTools analysis. Checks file existence, indices, and format.
Usage:
python scripts/validate_files.py --bam sample1.bam sample2.bam \
--bed peaks.bed --bigwig signal.bw
When to use: Before starting any analysis, or when troubleshooting errors.
Generates customizable bash script templates for common deepTools workflows.
Available workflows:
chipseq_qc: ChIP-seq quality controlchipseq_analysis: Complete ChIP-seq analysisrnaseq_coverage: Strand-specific RNA-seq coverageatacseq: ATAC-seq with Tn5 correctionUsage:
# List workflows
python scripts/workflow_generator.py --list
# Generate workflow
python scripts/workflow_generator.py chipseq_qc -o qc.sh \
--input-bam Input.bam --chip-bams "ChIP1.bam ChIP2.bam" \
--genome-size 2913022398 --threads 8
# Run generated workflow
chmod +x qc.sh
./qc.sh
When to use: Users request standard workflows or need template scripts to customize.
Quick reference card with most common commands, effective genome sizes, and typical workflow pattern.
When to use: Users need quick command examples without detailed documentation.
Per-request playbooks (new vs experienced users, task-specific responses for
"convert BAM to bigWig" / "check ChIP quality" / "create heatmap" /
"compare samples"), example interactions, and grep recipes for searching the
references all live in references/usage_playbook.md. The common thread:
validate files first → pick the right workflow/normalization → generate or run
the command → explain the result.
--ignoreDuplicates/--exactScaling are gone from bamCoverage and
bamCompare — filter duplicates with --samFlagExclude 1024--extendReads YES for ChIP-seq, NO for RNA-seq (would span splice junctions)--normalizeUsing value; --scaleFactorsMethod only takes readCount/SES/None--effectiveGenomeSize; verify the assembly matches your BAM/BED genome build--regionPart of the AlterLab Academic Skills suite.
assets/quick_reference.md (opens in a new tab)evals/evals.json (opens in a new tab)references/effective_genome_sizes.md (opens in a new tab)references/normalization_methods.md (opens in a new tab)references/tools_reference.md (opens in a new tab)references/usage_playbook.md (opens in a new tab)references/workflows.md (opens in a new tab)scripts/validate_files.py (opens in a new tab)scripts/workflow_generator.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from alterlab-writing-tools
Claude Code won't load this skill
It ships in alterlab-writing-tools at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Generated from the plugin's indexed repository (alterlab-ieu/alterlab-academic-skills) — no native marketplace selected
npx claudepluginhub p/alterlab-ieu-alterlab-writing-tools241 skills in this plugin
/alterlab-abm-mesaBuilds agent-based models of social systems with Mesa 3 — the current AgentSet API (model.agents.shuffle_do('step'), auto-assigned unique_id, mandatory super().__init__(rng=...)), cell spaces (mesa.discrete_space OrthogonalMooreGrid / classic mesa.space grids), the DataCollector, batch_run parameter sweeps, and SolaraViz — for emergence, segregation, diffusion, opinion dynamics, and cooperation models. It uses the Mesa 3.x API (the old mesa.time schedulers like RandomActivation are removed) and treats the model as a generative theory to be validated, not just run. Use when the request mentions an agent-based model, Mesa, simulating interacting agents, or emergent macro behavior from micro rules. For discrete-event (queueing/process) simulation prefer alterlab-simpy; for reinforcement learning prefer alterlab-stable-baselines3. Part of the AlterLab Academic Skills suite./alterlab-academic-careerPrepares academic career documents and professional-development materials for faculty and researchers. Use when drafting academic CVs, research statements, teaching philosophies, diversity statements, faculty-position cover letters, tenure dossiers, promotion narratives, academic portfolios, or mentorship statements, and when planning conference-networking strategy, building academic web presence, setting up ORCID profiles, or understanding impact metrics. Part of the AlterLab Academic Skills suite.2 plugins in one repository ship this exact skill · first indexed Nov 9, 2026
Other plugins' skills for the same job