deeptools – Marketing & SEO skill for AI agents
NGS analysis toolkit. BAM to bigWig conversion, QC (correlation, PCA, fingerprints), heatmaps/profiles (TSS, peaks), for ChIP-seq, RNA-seq, ATAC-seq visualization.
Install the deeptools skill with one command
Pick the tool you use, copy the command and paste it in your terminal. The skill lands in that tool's skills folder and is ready in your next session.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/deeptools-b17ad.tgz | tar xz -C ~/.claude/skills
Call it in Claude Code: /deeptools – then describe the task you want done.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/deeptools-b17ad.tgz | tar xz -C ~/.codex/skills
Call it in Codex: $deeptools – then describe the task you want done.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/deeptools-b17ad.tgz | tar xz -C ~/.hermes/skills
Call it in Hermes Agent: /deeptools – then describe the task you want done.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/deeptools-b17ad.tgz | tar xz -C ~/.deepcode/skills
Call it in DeepSeek: /deeptools – then describe the task you want done.
SKILL.md content
deepTools: NGS Data Analysis Toolkit
Overview
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:
- Convert BAM alignments to normalized coverage tracks (bigWig/bedGraph)
- Quality control assessment (fingerprint, correlation, coverage)
- Sample comparison and correlation analysis
- Heatmap and profile plot generation around genomic features
- Enrichment analysis and peak region visualization
When to Use This Skill
This skill should be used when:
- File conversion: "Convert BAM to bigWig", "generate coverage tracks", "normalize ChIP-seq data"
- Quality control: "check ChIP quality", "compare replicates", "assess sequencing depth", "QC analysis"
- Visualization: "create heatmap around TSS", "plot ChIP signal", "visualize enrichment", "generate profile plot"
- Sample comparison: "compare treatment vs control", "correlate samples", "PCA analysis"
- Analysis workflows: "analyze ChIP-seq data", "RNA-seq coverage", "ATAC-seq analysis", "complete workflow"
- Working with specific file types: BAM files, bigWig files, BED region files in genomics context
Quick Start
For users new to deepTools, start with file validation and common workflows:
1. Validate Input Files
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.bedThis checks local files, readable BAM/BAI/CSI structure and coordinate order, bigWig headers, and every BED row. It does not establish assembly identity or biological suitability.
2. Generate Workflow Template
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"
# Make executable and run
chmod +x qc_workflow.sh
./qc_workflow.sh3. Most Common Operations
See assets/quick_reference.md for frequently used commands and parameters.
Installation
uv venv --python 3.13 .venv-deeptools
uv pip install --python .venv-deeptools/bin/python deepTools==4.0.0
source .venv-deeptools/bin/activate
bamCoverage --versionUpstream recommends conda/bioconda for full dependency resolution, especially on shared HPC systems:
conda create -n deeptools -c conda-forge -c bioconda python=3.13 deeptools=4.0.0 samtoolsThe 4.0.0 PyPI release includes native macOS Intel/Apple Silicon and Linux wheels. Conda availability varies by platform; the PyPI workflow above was exercised on macOS.
4.0 migration: The five rewritten commands use Rust. bamCoverage, bamCompare, and multiBamSummary no longer accept --ignoreDuplicates; use --samFlagExclude 1024 only after duplicate marking. bamCompare no longer accepts SES. Its released Rust backend accepts RPGC despite a contradictory rolling-doc note; several advertised operations are incorrect (see review). --exactScaling is removed from the rewritten coverage commands because scaling now uses all reads. See [references/review.md](references/review.md) for verified contracts and remaining limits.
Core Workflows and Tool Categories
Complete command sequences for ChIP-seq QC, full ChIP-seq analysis, RNA-seq coverage, and
ATAC-seq analysis — plus the BAM/bigWig processing, quality control, and visualization
tool categories — are in [references/core_workflows.md](references/core_workflows.md) and
[references/workflows.md](references/workflows.md). Per-tool options are in
[references/tools_reference.md](references/tools_reference.md).
Normalization Methods
Choosing the correct normalization is critical for valid comparisons. Consult references/normalization_methods.md for comprehensive guidance.
Quick selection guide:
- ChIP-seq coverage: Use RPGC or CPM
- ChIP-seq comparison: Use bamCompare with log2 and readCount
- RNA-seq bins: Use CPM
- RNA-seq genes: Quantify with an annotation-aware gene/transcript workflow; bamCoverage RPKM scales genomic bins, not genes
- ATAC-seq: Use CPM for the shifted-alignment template; RPGC without extension failed on shifted BAMs in 4.0.0
Normalization methods:
- RPGC: 1× genome coverage (requires --effectiveGenomeSize)
- CPM: Counts per million mapped reads
- RPKM: Reads per kb per million (per-bin length and library-size scaling)
- BPM: The released 4.0.0 Rust implementation reduces to CPM; do not interpret it as gene TPM
- None: Raw counts (not recommended for comparisons)
Full explanation: references/normalization_methods.md
Effective Genome Sizes
RPGC normalization requires effective genome size. Examples from the 4.0.0 tagged source, not universal assembly constants (the rolling documentation differs):
| Organism | Assembly | Size | Usage |
|----------|----------|------|-------|
| Human | GRCh38/hg38 | 2,913,022,398 | --effectiveGenomeSize 2913022398 |
| Human | T2T/CHM13CAT_v2 | 3,117,292,070 | --effectiveGenomeSize 3117292070 |
| Mouse | GRCm39/mm39 | 2,654,621,783 | --effectiveGenomeSize 2654621783 |
| 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* | WBcel235/ce11 | 100,286,401 | --effectiveGenomeSize 100286401 |
Verify the exact FASTA, contig set, and mapping/filter policy before choosing a value. Details: references/effective_genome_sizes.md
Common Parameters Across Tools
Many deepTools commands share these options:
Performance:
--numberOfProcessors, -p: Use the CPU allocation allowed by your schedulermax/max/2: Supported values for--numberOfProcessors; useful under schedulers because recent deepTools releases detect CPU affinity more carefully--region: Process specific regions for testing (e.g.,chr1:1:1000000)
Read Filtering:
--samFlagExclude 1024: Exclude alignments already marked duplicate (0x400); does not identify duplicates--minMappingQuality: Filter by alignment quality (e.g.,--minMappingQuality 10)--minFragmentLength/--maxFragmentLength: Fragment length bounds--samFlagInclude/--samFlagExclude: SAM flag filtering
Read Processing:
--extendReads: Extend to fragment length (ChIP-seq: YES, RNA-seq: NO)--centerReads: Center at fragment midpoint for sharper signals
Best Practices
File Validation
Always validate files first using scripts/validate_files.py to check:
- File existence and readability
- BAM opens with pysam, coordinate order and every alignment decode, readable BAI/CSI index
- All BED rows: nonnegative, nonempty, zero-based half-open intervals; BED6 strand
- bigWig opens with pyBigWig and contains indexed signal
Analysis Strategy
1. Start with QC: Run correlation, coverage, and fingerprint analysis before proceeding
2. Test on small regions: Use --region chr1:1:10000000 for parameter testing
3. Document commands: Save full command lines for reproducibility
4. Use consistent normalization: Apply same method across samples in comparisons
5. Verify genome assembly: Ensure BAM and BED files use matching genome builds
ChIP-seq Specific
- Choose fragment handling for ChIP-seq: use paired-end fragment lengths or a measured single-end extension; 200 bp is an illustrative fallback
- Duplicate policy: mark duplicates upstream, then use
--samFlagExclude 1024when the assay warrants removal; coordinate duplication alone does not prove PCR duplication - Check enrichment first: Run plotFingerprint before detailed analysis
- GC correction: Only apply if significant bias detected; never use
--samFlagExclude 1024after GC correction
RNA-seq Specific
- Never extend reads for RNA-seq (would span splice junctions)
- Strand-specific: Use
--filterRNAstrand forward/reversefor common dUTP-style stranded libraries; confirm library orientation before interpreting strand labels - Normalization: CPM or per-bin RPKM for coverage tracks; these are not annotation-aware gene expression estimates
ATAC-seq Specific
- Choose the signal first: use
alignmentSieve --ATACshiftonce for shifted alignments; this alone does not create an insertion-site track - Use only proper pairs for shifting:
--ATACshiftis equivalent to--shift 4 -5 5 -4and filters to properly paired fragments - Fragment filtering: Set appropriate min/max fragment le
… (full content is in the download package)
Related skills
- analytics – When the user wants to set up, improve, or audit analytics tracking and measurement.
- analytics-product – Analytics de produto — PostHog, Mixpanel, eventos, funnels, cohorts, retencao, north…
- analytics-tracking – Design, audit, and improve analytics tracking systems that produce reliable…
- copywriting – When the user wants to write, rewrite, or improve marketing copy for any page, including…
- angular-migration – Master AngularJS to Angular migration, including hybrid apps, component conversion…
- business-growth-skills – Router/index for the 4 business & growth skills bundled in this plugin…
- hunt-ato – Hunt account takeover taxonomy — 9 distinct paths to ATO, plus chains. Paths: (1)…
- cro – When the user wants to optimize, improve, or increase conversions on any marketing page…