Skip to content
local-methylation-profile logo

Local Methylation Profile Analysis

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

SKILL.md

Full skill instructions

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

methylation.bed
target_regions.bed

Outputs

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)

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

ContextFlankBinMin cov
TF peaks±2 kb50bp10x
Promoters±1 kb50bp10x
Enhancers±5 kb100bp5x
Motifs±0.5kb10–2010x

Notes

  • Snippets are usage hints and must be adapted to your paths and column indices.

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View