regulatory-community-analysis-ChIA-PET

This skill performs protein-mediated regulatory community analysis from ChIA-PET datasets and provide a way for visualizing the communities. Use this skill when you have a annotated peak file (in BED format) from ChIA-PET experiment and you want to identify the protein-mediated regulatory community according to the BED and BEDPE file from ChIA-PET.

181 stars

Best use case

regulatory-community-analysis-ChIA-PET is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

This skill performs protein-mediated regulatory community analysis from ChIA-PET datasets and provide a way for visualizing the communities. Use this skill when you have a annotated peak file (in BED format) from ChIA-PET experiment and you want to identify the protein-mediated regulatory community according to the BED and BEDPE file from ChIA-PET.

Teams using regulatory-community-analysis-ChIA-PET should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/29-regulatory-community-chia-pet/SKILL.md --create-dirs "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/data/29-regulatory-community-chia-pet/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/29-regulatory-community-chia-pet/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How regulatory-community-analysis-ChIA-PET Compares

Feature / Agentregulatory-community-analysis-ChIA-PETStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

This skill performs protein-mediated regulatory community analysis from ChIA-PET datasets and provide a way for visualizing the communities. Use this skill when you have a annotated peak file (in BED format) from ChIA-PET experiment and you want to identify the protein-mediated regulatory community according to the BED and BEDPE file from ChIA-PET.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Protein-Mediated Regulatory Community Analysis from ChIA-PET

## 1. Overview

Main steps include:

- Refer to the **Inputs & Outputs** section to check available inputs and design the output structure.
- Standardize the information contained in the BED format peak file.
- Build a chromatin interaction network where:
   - nodes = protein binding sites (peaks)
   - edges = protein-mediated loops.
- Detect regulatory communities (3D modules) using graph clustering.
- Prioritize hub anchors using network centrality.
- Visualize the largest regulatory communities.

Tools called in this skill:

- `mcp__igraph-tools__build_chromatin_network`
- `mcp__igraph-tools__analyze_chromatin_network`
- `mcp__igraph-tools__plot_chromatin_communities`

---

## 2. When to use this skill

Use this skill when you have ChIA-PET data in BEDPE and BED format and you want to:

- Reveal **regulatory communities** (3D modules) formed by:
  - promoters
  - enhancers
  - other regulatory elements
- Identify **hub anchors** (peaks involved in many interactions) for a particular protein.
- Study **protein-mediated rewiring** of chromatin structure between conditions by comparing networks.
- Generate interpretable **network visualizations** for specific communities or loci.

Typical biological questions:

- Which promoters act as 3D regulatory hubs for my ChIA-PET factor (e.g., RNAPII, CTCF)?
- Which enhancers cluster with a given gene in 3D?
- Do disease-associated loci participate in specific regulatory communities?
- How does the chromatin interaction network structure change under perturbation (e.g., KO, treatment)?

---

## Inputs & Outputs

### Inputs

```bash
<sample>.bedpe # ChIA-PET loops: chr1  start1  end1  chr2  start2  end2  PET_count  [optional extra fields...]
<sample>.bed # Tab-delimited file with at least 3 columns: chr, start, end
```

### Outputs

```bash
ChIA_PET_community/
  communities/
    ${sample}_communities_membership.tsv # Network membership table
    ${sample}.graphml
  plots/
    ${sample}_communities.pdf # Community network plots
  temp/
    ... # other temp files
```

---

## Decision tree

### Step 1: Standardize the information contained in the BED format peak file

- Check whether the <peak_id> and <type> (e.g. promoter or other annotations) information if provided in the BED file.
- If not provided, assign "peak_${i}" as the <peak_id> column and "others" as the <type> column.
- Make sure that order of the information in the BED file is:
  - 'chr' 'start' 'end' 'peak_id' 'type'

### Step 2: Build the Chromatin Interaction Network
Call:

- `mcp__igraph-tools__build_chromatin_network`

with:

- `loops_file`: path to BEDPE-like loops file.
- `peaks_file`: path to annotated peaks BED file.
- `proj_dir`: project directory (e.g. `ChIA_PET_community`).
- `graph_name` (optional): output GraphML filename.
- `min_pet` (optional): filter on PET counts (default `1`).

This tool will:

- Reads the loops and peaks files.
- Builds an **undirected igraph**:
- Saves the graph as:
   - `${sample}.graphml` (GraphML)

---

### Step 2: Detect Communities and Compute Network Centrality

Call:

- `mcp__igraph-tools__analyze_chromatin_network`

with:

- `graph_path`: GraphML file from Step 1 (e.g. `${sample}.graphml`).
- `proj_dir`: same project directory.
- `membership_name` (optional): output TSV name, (e.g. `${sample}_communities_membership.tsv`).
- `weight_attr` (optional): edge weight attribute, default `"weight"`.
- `seed` (optional): random seed for community detection, default `1`.

This tool will:

- Load the GraphML network.
- Run **Louvain (multilevel)** community detection
- Compute centralities
- Export a **membership table**:
  `${sample}_communities_membership.tsv` with columns

- Update the GraphML file with the new vertex attributes (community & centralities).

### Step 3 — Visualize Top Regulatory Communities

Call:

- `mcp__igraph-tools__plot_chromatin_communities`

with:

- `graph_path`: GraphML file with community attributes (from Step 2).
- `proj_dir`: project directory.
- `pdf_name` (optional): output PDF filename (e.g. `${sample}_communities.pdf`).
- `top_n` (optional): number of largest communities to plot, default `12`.
- `size_attr` (optional): vertex attribute for node size, default `"degree"`.
- `community_attr` (optional): vertex attribute containing community IDs, default `"community"`.

This tool will:

- Load the graph and verify that `community_attr` is present.
- Compute **plot aesthetics**
- Identify the **largest communities** (by vertex count), up to `top_n`.
- For each community:
   - Create an induced subgraph.
   - Compute a **Fruchterman–Reingold** layout.
   - Draw nodes + edges + labels into a separate page of a multi-page PDF.
- Save the PDF as:
   - `${sample}_communities.pdf`

Related Skills

Advanced RE Analysis

181
from majiayu000/claude-skill-registry

Specialized reverse engineering analysis workflows for binary analysis, pattern recognition, and vulnerability assessment

adaptive-temporal-analysis-integration

181
from majiayu000/claude-skill-registry

Integrate adaptive temporal analysis for drift detection.

abaqus-thermal-analysis

181
from majiayu000/claude-skill-registry

Complete workflow for heat transfer analysis - steady-state and transient thermal. Use when user asks about temperature distribution, conduction, convection, or heat flow.

abaqus-static-analysis

181
from majiayu000/claude-skill-registry

Complete workflow for static structural analysis. Use when analyzing stress, displacement, or reaction forces under constant loads. For strength and stiffness evaluation.

abaqus-modal-analysis

181
from majiayu000/claude-skill-registry

Complete workflow for modal/frequency analysis - extract natural frequencies and mode shapes. Use for vibration analysis and resonance avoidance.

abaqus-fatigue-analysis

181
from majiayu000/claude-skill-registry

Workflow for fatigue and durability analysis - cycle counting, damage accumulation, and fatigue life prediction.

abaqus-dynamic-analysis

181
from majiayu000/claude-skill-registry

Complete workflow for dynamic analysis. Use when user mentions impact, crash, drop test, transient, or time-varying response. Handles explicit and implicit dynamics.

abaqus-coupled-analysis

181
from majiayu000/claude-skill-registry

Complete workflow for coupled thermomechanical analysis. Use when user mentions thermal stress, thermal expansion, or temperature causing deformation.

abaqus-contact-analysis

181
from majiayu000/claude-skill-registry

Analyze multi-body contact. Use when user mentions parts touching, friction between surfaces, bolt-plate contact, press fit, or assembly with contact.

A/B Test Analysis

181
from majiayu000/claude-skill-registry

Design and analyze A/B tests, calculate statistical significance, and determine sample sizes for conversion optimization and experiment validation

a-share-analysis

181
from majiayu000/claude-skill-registry

Comprehensive China A-share stock analysis covering fundamental analysis, technical analysis, policy impact assessment, and market-specific features (T+1 trading, price limits, northbound capital flow). Use when user asks about A股分析, Chinese mainland stocks, Shanghai/Shenzhen listed stocks, or needs analysis considering China market characteristics.

differential-region-analysis

181
from majiayu000/claude-skill-registry

The differential-region-analysis pipeline identifies genomic regions exhibiting significant differences in signal intensity between experimental conditions using a count-based framework and DESeq2. It supports detection of both differentially accessible regions (DARs) from open-chromatin assays (e.g., ATAC-seq, DNase-seq) and differential transcription factor (TF) binding regions from TF-centric assays (e.g., ChIP-seq, CUT&RUN, CUT&Tag). The pipeline can start from aligned BAM files or a precomputed count matrix and is suitable whenever genomic signal can be summarized as read counts per region.