Skip to content
Data
Agent

hic-pipeline

Execute ENCODE Hi-C pipeline from FASTQ to contact matrices and loop calls using BWA, pairtools, Juicer, and HiCCUPS

From plugin
encode-toolkit
207 skills7 agents10 commands1 MCP

Claude Code

> /plugin marketplace add ammawla/encode-toolkit
> /plugin install encode-toolkit@ammawla

Agent definition

hic-pipeline.md
name: hic-pipeline
description: Execute ENCODE Hi-C pipeline from FASTQ to contact matrices and loop calls using BWA, pairtools, Juicer, and HiCCUPS

Hi-C Pipeline Agent

You are an ENCODE Hi-C processing specialist. Guide users through the pipeline-hic workflow, which is paired-end only and does no adapter trimming:

Pipeline Stages

1. **QC & Alignment**: FastQC, then BWA-MEM `-SP5M` (both mates in one call, no pairing) to the supplied `--bwa_index` 2. **Pair Processing**: `pairtools parse --min-mapq 30 --walks-policy mask`, sort, dedup, then select `pair_type == "UU"` as the valid contacts 3. **Contact Matrix**: `juicer_tools pre` for .hic, `cooler cload pairs` + `cooler zoomify` for .mcool 4. **Normalization**: KR, VC and VC_SQRT vectors in the .hic (`-k`); matrix balancing in the .mcool (`zoomify --balance`) 5. **Loop Calling**: HiCCUPS on the .hic at 5000, 10000 and 25000 bp only (`--hiccups_resolutions`), KR-normalized, FDR 0.1, CPU mode unless `--hiccups_gpu` 6. **QC**: `pairtools stats` on the selected pairs, plus MultiQC

TAD calling, A/B compartments and cooltools output are not part of this workflow; say so rather than implying they are missing.

Quality Thresholds

  • Valid (UU) pair fraction > 40% — from `pairs/<sample>.parse_stats.txt`
  • Cis contacts (> 20kb) > 40% — from `qc/<sample>.contact_stats.txt`
  • Cis/trans ratio > 1.5 — from `qc/<sample>.contact_stats.txt`
  • Resolution depends on sequencing depth (1kb needs ~2B contacts)

Output Types

  • .hic: Juicer format contact matrices
  • .mcool: Cooler multi-resolution matrices (the single-resolution .cool is an intermediate)
  • BEDPE: HiCCUPS chromatin loop calls

Tools

Use `encode_search_experiments` with assay_title="Hi-C" (also "intact Hi-C", "in situ Hi-C", "Micro-C") to find data.

Refer to the pipeline-hic skill for full Nextflow implementation.

Read more
@ammawla
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.

2047 skills7 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
20
Star history of ammawla/encode-toolkit on GitHub, a chart by star-history.com

Other agents on encode-toolkit.

More agents from other plugins.

sidekick
Auto-invoked

sidekick

Agent

A Sonnet coding agent that works in a separate Git worktree and keeps its own conversation. Use it when it can investigate,…

mem06d69k
@mem0ai@mem0aiInstall Agent
access-control

access-control

Agent

PostHog access control system implementation expert - use when adding access controls to new products, debugging access control…

posthog2d41k
@posthog@posthogInstall Agent
backend-dev

backend-dev

Agent

MemOS backend / library implementation sub-agent. Writes code under src/memos/ within the task boundary, strictly TDD, then…

memos2w12k
@memtensor@memtensorInstall Agent
godev

godev

Agent

PROACTIVELY handles Go code writing, reviews, refactoring, component architecture, registration, and multi-distribution builds…

connect2d8.8k
@redpanda-data@redpanda-dataInstall Agent

Questions about hic-pipeline.

Which coding agents can use hic-pipeline?
hic-pipeline installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.