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.

16 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/regulatory-community-analysis-chia-pet/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/development/regulatory-community-analysis-chia-pet/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/regulatory-community-analysis-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

stride-analysis-patterns

16
from diegosouzapw/awesome-omni-skill

Apply STRIDE methodology to systematically identify threats. Use when analyzing system security, conducting threat modeling sessions, or creating security documentation.

statistical-analysis-spa

16
from diegosouzapw/awesome-omni-skill

웹 기반 통계 분석 SPA 개발 스킬. 이상치 탐지(Outlier Detection)와 행별 통계 분석(Row Statistics)을 수행하는 React 애플리케이션 구현. Z-Score, IQR, MAD, Grubbs, Winsorize 이상치 탐지와 T-test, ANOVA 통계 분석 지원. Copy & Paste 또는 CSV/TXT 파일 드래그 앤 드롭으로 데이터 입력, Recharts를 활용한 시각화 기능 포함. 모든 데이터는 로컬에서만 처리되며 네트워크 전송 없음.

smiles_comprehensive_analysis

16
from diegosouzapw/awesome-omni-skill

SMILES Comprehensive Analysis - Comprehensive SMILES analysis: validate, convert name, compute all molecular descriptors, and predict ADMET. Use this skill for cheminformatics tasks involving is valid smiles ChemicalStructureAnalyzer calculate mol basic info pred molecule admet. Combines 4 tools from 3 SCP server(s).

root-cause-analysis

16
from diegosouzapw/awesome-omni-skill

Find the true source, not symptoms — systematic debugging from observation to permanent fix

rhetorical-analysis

16
from diegosouzapw/awesome-omni-skill

Analyse rhétorique et épistémologique d'articles, discours et textes argumentatifs. Utiliser ce skill quand l'utilisateur demande d'analyser la qualité argumentative d'un texte, d'identifier des sophismes ou biais, d'évaluer la fiabilité des sources citées, de déconstruire la logique d'un raisonnement, ou de produire une réécriture critique structurée d'un document.

project-analysis

16
from diegosouzapw/awesome-omni-skill

Analyzes any project to understand its structure, tech stack, patterns, and conventions. Use when starting work on a new codebase, onboarding, or when asked "how does this project work?" or "what's the architecture?"

prd-analysis

16
from diegosouzapw/awesome-omni-skill

PRD parsing and task decomposition patterns for intake workflows.

manifold-analysis

16
from diegosouzapw/awesome-omni-skill

Analyze Manifold Markets prediction market data. Use when processing HTML exports or trade history from manifold.markets to create visualizations of trading volume, trader leaderboards, probability movements, and market dynamics. Triggers on requests involving Manifold Markets data, prediction market analysis, or when user uploads Manifold HTML files.

error-diagnostics-error-analysis

16
from diegosouzapw/awesome-omni-skill

You are an expert error analysis specialist with deep expertise in debugging distributed systems, analyzing production incidents, and implementing comprehensive observability solutions.

error-debugging-error-analysis

16
from diegosouzapw/awesome-omni-skill

You are an expert error analysis specialist with deep expertise in debugging distributed systems, analyzing production incidents, and implementing comprehensive observability solutions.

codebase-analysis

16
from diegosouzapw/awesome-omni-skill

Systematically analyze codebase structure, complexity, dependencies, and architectural patterns to understand project organization

code-analysis

16
from diegosouzapw/awesome-omni-skill

Analyze code quality, detect code smells, identify bugs, and provide improvement recommendations. Use when reviewing code, checking quality, analyzing complexity, or when user mentions code review, refactoring suggestions, or quality assessment.