Skip to content

/download-encode

Download ENCODE genomics files (BED, FASTQ, BAM, bigWig, etc.) to the user's machine. Use when the user wants to download data files from ENCODE experiments.

From plugin
2994 skills7 agents10 commands
shell
$ npx -y skills add ammawla/encode-toolkit --skill download-encode --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/download-encode
How auto-invocation works

Context preview

The summary Claude sees to decide when to auto-load this skill.

Download ENCODE genomics files (BED, FASTQ, BAM, bigWig, etc.) to the user's machine. Use when the user wants to download data files from ENCODE experiments.

SKILL.md

download-encode.SKILL.md
name: download-encode
description: Download ENCODE genomics files (BED, FASTQ, BAM, bigWig, etc.) to the user's machine. Use when the user wants to download data files from ENCODE experiments.

Download ENCODE Files

When to Use

  • User wants to download ENCODE data files to their local machine
  • User asks to "download", "get", or "fetch" ENCODE files
  • User needs specific file formats (BED, FASTQ, BAM, bigWig) from experiments
  • User wants to batch download files matching search criteria
  • User needs to verify file integrity after download (MD5 checksums)
  • User asks about organizing downloaded files by experiment or format

Help the user download ENCODE data files to their local machine.

Download Strategy

1. **Specific files by accession**: Use `encode_download_files` with file accession IDs (e.g., "ENCFF635JIA").

2. **Batch download by criteria**: Use `encode_batch_download` to search and download in one step.

  • Always start with `dry_run=True` (default) to preview what will be downloaded
  • Show the user the file count, total size, and file list
  • Only proceed with `dry_run=False` after user confirms

3. **Download organization options**:

  • `"flat"`: All files in one directory
  • `"experiment"`: Organized by experiment accession (recommended)
  • `"format"`: Organized by file format
  • `"experiment_format"`: Organized by experiment, then format

Important Notes

  • All downloads include MD5 verification by default (`verify_md5=True`)
  • Ask the user for a download directory if not specified
  • Warn about large downloads (>1GB total or >50 files)
  • Files already downloaded will be skipped (idempotent)
  • For restricted files, credentials must be configured first via `encode_manage_credentials`

Pitfalls & Edge Cases

1. **Disk space**: BAM files can be 5-50GB each; FASTQ files 1-20GB. Before any batch download, warn the user about estimated total size from the dry_run preview. A single ChIP-seq experiment can produce 10-30GB of raw data files. 2. **MD5 verification failures**: If MD5 verification fails, the file may be corrupted or incompletely downloaded. Always re-download rather than skipping verification. Never set `verify_md5=False` unless the user explicitly requests it and understands the risk. 3. **Downloading too much data**: Users often request BAM files when they only need peak calls or signal tracks. Suggest `preferred_default=True` to get ENCODE's recommended files, or filter by `output_type` (e.g., "IDR thresholded peaks", "fold change over control") to avoid downloading raw data unnecessarily. 4. **Restricted/unreleased data**: Files with status other than "released" may require ENCODE credentials. Use `encode_manage_credentials(action="check")` to verify credentials are configured before attempting to download restricted data. 5. **Mixed assemblies in batch download**: Always specify the `assembly` filter (e.g., "GRCh38") in batch downloads. Without it, you may download files aligned to different genome assemblies (hg19, GRCh38, mm10), making downstream analysis impossible. 6. **Timeout on large files**: For downloading many files or very large files, `encode_batch_download` handles retries and concurrent downloads better than individual `encode_download_files` calls. The default limit of 100 files provides a safety cap.

File Type Guide

When users request "files" without specifying a type, use this priority to suggest the right output_type:

  • **Peak analysis**: `output_type="IDR thresholded peaks"` (most stringent, recommended for ChIP-seq/ATAC-seq)
  • **Signal visualization**: `file_format="bigWig"`, `output_type="fold change over control"` (for genome browser tracks)
  • **Gene expression**: `output_type="gene quantifications"` (for RNA-seq TPM/FPKM tables)
  • **Raw data reprocessing**: `file_format="fastq"` (only when user needs to run their own pipeline)
  • **Quick defaults**: `preferred_default=True` (ENCODE's recommended files for any experiment)

What to Download for Each Analysis

| Analysis Goal | File Format | Output Type | Why This File | |---|---|---|---| | Peak locations (ChIP/ATAC) | bed narrowPeak | IDR thresholded peaks | Gold-standard replicated peaks passing irreproducibility threshold | | Broad domain marks (H3K27me3) | bed broadPeak | replicated peaks | Broad marks need broadPeak format, not narrowPeak | | Signal visualization | bigWig | fold change over control | Normalized signal track for genome browser display | | Signal statistics | bigWig | signal p-value | Statistical significance of signal over background | | Raw data reprocessing | fastq | reads | Starting from scratch with your own pipeline | | Alignment inspection | bam | alignments | Check read mapping quality, fragment sizes, duplicates | | Browser-compatible peaks | bigBed | peaks | UCSC/IGV-compatible binary peak format | | Gene expression levels | tsv | gene quantifications | TPM/FPKM tables for RNA-seq differential expression | | Transcript isoforms | tsv | transcript quantifications | Isoform-level expression for splicing analysis | | 3D genome contacts | hic | contact matrix | Hi-C interaction matrices for loop/TAD calling | | Methylation levels | bed | methylation state at CpG | Per-CpG methylation fractions for WGBS |

Assay-Specific Recommendations

| Assay | Primary Download | Secondary Download | |---|---|---| | Histone ChIP-seq | IDR thresholded peaks (bed) | fold change over control (bigWig) | | TF ChIP-seq | IDR thresholded peaks (bed) | fold change over control (bigWig) | | ATAC-seq | IDR thresholded peaks (bed) | fold change over control (bigWig) | | DNase-seq | peaks (bed) | signal of unique reads (bigWig) | | RNA-seq | gene quantifications (tsv) | signal of unique reads (bigWig) | | WGBS | methylation state at CpG (bed) | signal (bigWig) | | Hi-C | contact matrix (hic) | contact domains (bed) | | CUT&RUN | peaks (bed) | fold change over control (bigWig) | | CUT&Tag | peaks (bed) | fold change over control (bigWig) | | eCLIP

Read more
Read it on GitHub ↗

Showing the first part of this file.

Ships withencode-toolkit

Search ENCODE, cross-reference 14 databases, run 7 analysis pipelines, and generate publication-ready methods — all from natural language in Claude Code.

Get the whole plugin, auto-invoked
Stats
29
Stars
0
Views
5
Forks
Active
Maintenance
Python
Language
AGPL-3.0
License
8d ago
Last commit
4mo ago
Created

Repo: ammawla/encode-toolkit

Other skills on encode-toolkit.