accessibility-aggregat…
Build comprehensive chromatin accessibility maps by aggregating ATAC-seq and DNase-seq narrowPeak data across multiple ENCODE…
Execute ENCODE Whole Genome Bisulfite Sequencing (WGBS) pipeline from FASTQ to methylation calls. Child of pipeline-guide. Provides Nextflow execution with Docker and cloud deployment. Use when processing WGBS/bisulfite-seq data, calling methylation levels, generating bedMethyl
Claude Code
$ npx -y skills add ammawla/encode-toolkit --skill pipeline-wgbs --agent claude-code
Codex
$ npx skills add ammawla/encode-toolkit --skill pipeline-wgbs -a codex -y
Cursor
$ npx skills add ammawla/encode-toolkit --skill pipeline-wgbs -a cursor -y
Gemini CLI
$ npx skills add ammawla/encode-toolkit --skill pipeline-wgbs -a gemini-cli -y
GitHub Copilot
$ npx skills add ammawla/encode-toolkit --skill pipeline-wgbs -a github-copilot -y
OpenCode
$ npx skills add ammawla/encode-toolkit --skill pipeline-wgbs -a opencode -y
Windsurf
$ npx skills add ammawla/encode-toolkit --skill pipeline-wgbs -a windsurf -y
name: pipeline-wgbs description: "Execute ENCODE Whole Genome Bisulfite Sequencing (WGBS) pipeline from FASTQ to methylation calls. Child of pipeline-guide. Provides Nextflow execution with Docker and cloud deployment. Use when processing WGBS/bisulfite-seq data, calling methylation levels, generating bedMethyl files. Trigger on: WGBS pipeline, bisulfite sequencing, methylation calling, DNA methylation pipeline, bismark, bwa-meth, bedMethyl."
Execute the ENCODE DNA methylation pipeline for Whole Genome Bisulfite Sequencing data, producing per-CpG methylation levels in bedMethyl format.
FASTQ -> Trim adapters -> Bismark align -> Deduplicate -> sort + index -> MethylDackel -> bedMethyl
| | | | | | |
FastQC Trim Galore Bismark (Bowtie2) deduplicate_ samtools mbias + coverage
bismark extract statsPaired-end only: `TRIM_GALORE` and `BISMARK_ALIGN` both take two mates, and `--reads` must match pairs.
These are the versions in `scripts/Dockerfile`, which is what the workflow runs.
| Tool | Version | Purpose | Citation | |------|---------|---------|----------| | Trim Galore | 0.6.10 | Adapter + quality trimming (bisulfite-aware) | Krueger (Babraham) | | Bismark | 0.24.2 | Bisulfite-aware alignment + deduplication | Krueger & Andrews 2011 | | Bowtie2 | 2.5.4 | Backend aligner used by Bismark | Langmead & Salzberg 2012 | | MethylDackel | 0.6.1 | Methylation extraction from BAM | Ryan (GitHub) | | samtools | 1.19 | BAM sorting and indexing | Li et al. 2009 | | htslib | 1.19 | `bgzip` and `tabix` for the bedMethyl files | Bonfield et al. 2021 | | FastQC | 0.12.1 | Read quality assessment | Andrews (Babraham) | | MultiQC | 1.21 | Aggregated QC reporting | Ewels et al. 2016 |
The conda environment in `bioinformatics-installer` (`environments/wgbs-env.yml`) is a separate manual route pinned to the same versions of these tools; it also carries bedtools, which is not in the image.
1. **Krueger & Andrews 2011** - "Bismark: a flexible aligner and methylation caller for Bisulfite-Seq applications" (Bioinformatics, ~4,000 citations) DOI: 10.1093/bioinformatics/btr167
2. **Lister et al. 2009** - "Human DNA methylomes at base resolution show widespread epigenomic differences" (Nature, ~5,000 citations) DOI: 10.1038/nature08514
3. **Schultz et al. 2015** - "Human body epigenome maps reveal noncanonical DNA methylation variation" (Nature, ~1,500 citations) DOI: 10.1038/nature14248
4. **Pedersen et al. 2014** - "Fast and accurate alignment of long bisulfite-seq reads" arXiv:1401.1129 (bwa-meth)
5. **Amemiya et al. 2019** - "The ENCODE Blacklist" (Scientific Reports, ~1,372 citations) DOI: 10.1038/s41598-019-45839-z
`--reads` and `--genome_dir` are both required; the workflow stops before the first task if either is missing. `--genome_dir` is a Bismark genome folder — the output of `bismark_genome_preparation`, which must still contain the genome `.fa`, because MethylDackel reads it from there.
nextflow run scripts/main.nf -profile local \
--reads '/data/fastq/*_R{1,2}.fastq.gz' \
--genome_dir /ref/bismark_index \
--min_coverage 5 \
--outdir results/ \
-resumenextflow run scripts/main.nf -profile slurm \
--container /path/to/pipeline-wgbs.sif \
--slurm_queue normal \
--reads '/data/fastq/*_R{1,2}.fastq.gz' \
--genome_dir /ref/bismark_index \
--outdir results/ \
-resume# Google Cloud Batch
nextflow run scripts/main.nf -profile gcp \
--container us-docker.pkg.dev/<project>/<repo>/pipeline-wgbs:1.0.0 \
--gcp_project <project> \
--gcp_workdir gs://<bucket>/work \
--reads 'gs://<bucket>/fastq/*_R{1,2}.fastq.gz' \
--genome_dir gs://<bucket>/ref/bismark_index \
--outdir gs://<bucket>/results
# AWS Batch
nextflow run scripts/main.nf -profile aws \
--container <account>.dkr.ecr.<region>.amazonaws.com/pipeline-wgbs:1.0.0 \
--aws_queue <job-queue> \
--aws_workdir s3://<bucket>/work \
--reads 's3://<bucket>/fastq/*_R{1,2}.fastq.gz' \
--genome_dir s3://<bucket>/ref/bismark_index \
--outdir s3://<bucket>/results`--outdir` only sets where results are published; Google Batch and AWS Batch stage every task through the work directory, and the workflow stops with an error if it or the project/queue is missing.
| Step | CPUs | RAM | Time (30x human) | |------|------|-----|-------------------| | FastQC | 2 | 4 GB | <1 hour | | Trim Galore | 4 | 4 GB | 1-2 hours | | Bismark align | 8 | 48 GB | 8-16 hours | | Deduplication | 2 | 16 GB | 1-2 hours | | Sort + index | 4 | 8 GB | 1-2 hours | | MethylDackel (mbias, extract) | 2, 4 | 8 GB | 1-2 hours | | **Total** | **8** | **48 GB** | **12-24 hours** |
Every process asks for `memory { N.GB * task.attempt }`, so a task killed for running out of memory is retried with more: the
Search ENCODE, cross-reference 14 databases, run 7 analysis pipelines, and generate publication-ready methods — all from natural language in Claude Code.
Build comprehensive chromatin accessibility maps by aggregating ATAC-seq and DNase-seq narrowPeak data across multiple ENCODE…
Guide for multi-experiment batch operations: QC screening, batch download, comparison, and report generation across many ENCODE…
Install bioinformatics tools for ENCODE data analysis. Covers CLI tools (BWA, STAR, samtools, MACS2), R/Bioconductor packages…
Guide for integrating CellxGene Census single-cell data with ENCODE bulk experiments. Use when users need cell-type-specific…
Generate proper ENCODE citations for publications, grants, and presentations. Use when the user needs to cite ENCODE data, create…
Guide for annotating ENCODE regulatory variants with ClinVar clinical significance. Use when users need to check if variants in…
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…