Skip to content
regulatory-community-analysis-ChIA-PET logo

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 communi...

SKILL.md

Full skill instructions

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

<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

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

More skills from diegosouzapw

accessibility logo
diegosouzapw/awesome-omni-skill

accessibility

Accessibility guidelines for VS Code features — covers accessibility help dialogs, accessible views, verbosity settings, accessibility signals, ARIA alerts/status announcements, keyboard navigation, and ARIA labels/roles. Applies to both new interactive UI surfaces and updates to existing feature...

62 1
View
mermaid-diagrams logo
diegosouzapw/awesome-omni-skill

mermaid-diagrams

Mermaid diagram creation for flowcharts, sequences, ERDs, and more. Generate diagrams from text in markdown files. Use for documentation, architecture diagrams, and visual representations. Triggers on mermaid, flowchart, sequence diagram, ERD, entity relationship, gantt chart, pie chart, class di...

62 1
View
tauri2-react-rust logo
diegosouzapw/awesome-omni-skill

tauri2-react-rust

Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built...

62 1
View
fp-ts-errors logo
diegosouzapw/awesome-omni-skill

fp-ts-errors

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

62 0
View
ring:pre-dev-research logo
diegosouzapw/awesome-omni-skill

ring:pre-dev-research

Gate 0 research phase for pre-dev workflow. Dispatches 3 parallel research agents to gather codebase patterns, external best practices, and framework documentation BEFORE creating PRD/TRD. Outputs research.md with file:line references.

62 0
View
create-assistant logo
diegosouzapw/awesome-omni-skill

create-assistant

Create and configure Vapi voice AI assistants with models, voices, transcribers, tools, hooks, and advanced settings. Use when building voice agents, phone bots, customer support assistants, or any conversational AI that handles phone or web calls.

62 0
View
codex-headless logo
diegosouzapw/awesome-omni-skill

codex-headless

Delegiere Aufgaben an OpenAI Codex CLI im Headless-Mode. Nutzt ChatGPT Subscription (KEIN API Key). Nur Workspace-Zugriff, KEIN System-Zugriff. Auto-Accept mit --full-auto. Web-Recherche mit --search.

62 0
View
social-media-scheduler logo
diegosouzapw/awesome-omni-skill

social-media-scheduler

Generate a full week of social media content for any topic. Outputs platform-optimized posts for Twitter/X, LinkedIn, and Instagram with hashtags and posting times.

62 0
View
Data Privacy Compliance logo
diegosouzapw/awesome-omni-skill

Data Privacy Compliance

Data privacy and regulatory compliance specialist for GDPR, CCPA, HIPAA, and international data protection laws. Use when implementing privacy controls, conducting data protection impact assessments, ensuring regulatory compliance, or managing data subject rights. Expert in consent management, da...

62 0
View
triple-review logo
diegosouzapw/awesome-omni-skill

triple-review

Reviews a task using the TRIPLE protocol, as the review agent.

62 0
View
Tech Stack & Architecture Decision logo
diegosouzapw/awesome-omni-skill

Tech Stack & Architecture Decision

Define and document the technology stack and architecture decisions for a project. Use when the user needs to choose a tech stack, make architecture decisions, define infrastructure choices, or document technology selections. Triggers on requests like "define the tech stack", "choose technologies...

62 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View