local-methylation-profile

This skill analyzes the local DNA methylation profiles around target genomic regions provide by user. Use this skill when you want to vasulize the average methylation profile around target regions (e.g. TSS, CTCF peak or other target regions).

181 stars

Best use case

local-methylation-profile is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

This skill analyzes the local DNA methylation profiles around target genomic regions provide by user. Use this skill when you want to vasulize the average methylation profile around target regions (e.g. TSS, CTCF peak or other target regions).

Teams using local-methylation-profile 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/22-local-methylation-profile/SKILL.md --create-dirs "https://raw.githubusercontent.com/majiayu000/claude-skill-registry/main/skills/data/22-local-methylation-profile/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/22-local-methylation-profile/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How local-methylation-profile Compares

Feature / Agentlocal-methylation-profileStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

This skill analyzes the local DNA methylation profiles around target genomic regions provide by user. Use this skill when you want to vasulize the average methylation profile around target regions (e.g. TSS, CTCF peak or other target regions).

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

# Local Methylation Profile Analysis

## Overview
- **Always prompt user** for which columns in the BED files are methylation fraction/percent. Never decide by yourself.
- Generat profile: Bin methylation around regions (±flank, fixed bin size), aggregate mean±SE.
- Visualize: Plot mean profile with ribbon and center line.

---

## Inputs & Outputs

### Inputs
```bash
methylation.bed
target_regions.bed
```

### Outputs
```bash
local_methyl_profile/
  stats/
    CpG_around_target.tsv
  plots/
    CpG_around_target.pdf
  temp/
    ... # other temp file generated
```

---

## Decision Tree

### Step 1: Preprocess input → 5-column BED (for methylKit), and 3-column BED (for target regions)
```bash
awk -F'\t' 'BEGIN {OFS="\t"} {print $1, $2, $3, $<i_methylation>}, $<i_coverage>}' methylation.bed # n is provide by user, *100 if is fraction 
awk -F'\t' 'BEGIN {OFS="\t"} {print $1, $2, $3}' target_regions.bed
```
---

### Step 2: Build methylation profiles around regions

Call:
- `mcp__methyl-tools__build_local_methylation_profile`

with:

 - `methyl_bed_path`: 5-column BED-like file from preprocess_methylation.
 - `regions_bed_path`: 3-column BED-like file from preprocess_regions.
 - `output_profile_tsv_path`: path for aggregated profile table (TSV).
 - `flank_size`: flank size in bp around region center (default 2000).
 - `bin_size`: bin size in bp (default 50).
 - `min_coverage`: minimum coverage threshold for CpGs (default 10).

---

### Step 3: Visualization
Call: 
- `mcp__methyl-tools__plot_profile`

with: 

- `profile_tsv_path`: TSV from build_methylation_profile.
- `output_plot_path`: output figure path (PNG/PDF; format inferred from extension).
- `title`: plot title (optional).

---

## Parameter Guidelines

| Context   | Flank | Bin  | Min cov |
|-----------|-------|------|---------|
| TF peaks  | ±2 kb | 50bp | 10x     |
| Promoters | ±1 kb | 50bp | 10x     |
| Enhancers | ±5 kb | 100bp| 5x      |
| Motifs    | ±0.5kb| 10–20| 10x     |

## Notes
- Snippets are *usage hints* and must be adapted to your paths and column indices.

Related Skills

adding-localizable-strings

181
from majiayu000/claude-skill-registry

Adds new human-readable strings that are translated into users' languages.

act-local-testing

181
from majiayu000/claude-skill-registry

Use when testing GitHub Actions workflows locally with act. Covers act CLI usage, Docker configuration, debugging workflows, and troubleshooting common issues when running workflows on your local machine.

correlation-methylation-epiFeatures

181
from majiayu000/claude-skill-registry

This skill provides a complete pipeline for integrating CpG methylation data with chromatin features such as ATAC-seq signal, H3K27ac, H3K4me3, or other histone marks/TF signals.

methylation-variability-analysis

181
from majiayu000/claude-skill-registry

This skill provides a complete and streamlined workflow for performing methylation variability and epigenetic heterogeneity analysis from whole-genome bisulfite sequencing (WGBS) data. It is designed for researchers who want to quantify CpG-level variability across biological samples or conditions, identify highly variable CpGs (HVCs), and explore epigenetic heterogeneity.

global-methylation-profile

181
from majiayu000/claude-skill-registry

This skill performs genome-wide DNA methylation profiling. It supports single-sample and multi-sample workflows to compute methylation density distributions, genomic feature distribution of the methylation profile, and sample-level clustering/PCA. Use it when you want to systematically characterize global methylation patterns from WGBS or similar per-CpG methylation call files.

differential-methylation

181
from majiayu000/claude-skill-registry

This skill performs differential DNA methylation analysis (DMRs and DMCs) between experimental conditions using WGBS methylation tracks (BED/BedGraph). It standardizes input files into per-sample four-column Metilene tables, constructs a merged methylation matrix, runs Metilene for DMR detection, filters the results, and generates quick visualizations.

add-mouse-profile

174
from majiayu000/claude-skill-registry

Create a new mouse profile for a mouse model not yet supported

tech-blog

159
from majiayu000/claude-skill-registry

Generates comprehensive technical blog posts, offering detailed explanations of system internals, architecture, and implementation, either through source code analysis or document-driven research.

Content & DocumentationClaude

modal-deployment

159
from majiayu000/claude-skill-registry

Run Python code in the cloud with serverless containers, GPUs, and autoscaling using Modal. This skill enables agents to generate code for deploying ML models, running batch jobs, serving APIs, and scaling compute-intensive workloads.

DevOps & Infrastructure

astro

159
from majiayu000/claude-skill-registry

This skill provides essential Astro framework patterns, focusing on server-side rendering (SSR), static site generation (SSG), middleware, and TypeScript best practices. It helps AI agents implement secure authentication, manage API routes, and debug rendering behaviors within Astro projects.

Coding & Development

whisper-transcribe

159
from majiayu000/claude-skill-registry

Transcribes audio and video files to text using OpenAI's Whisper CLI, enhanced with contextual grounding from local markdown files for improved accuracy.

Media Processing

chrome-debug

159
from majiayu000/claude-skill-registry

This skill empowers AI agents to debug web applications and inspect browser behavior using the Chrome DevTools Protocol (CDP), offering both collaborative (headful) and automated (headless) modes.

Coding & DevelopmentClaude