Skip to content
track-generation logo

Track Generation

track-generation

This skill generates normalized BigWig (.bw) tracks (and/or fold-change tracks) from BAM files for ATAC-seq and ChIP-seq visualization. It handles normalization (RPM or fold-change) and Tn5 offset correction automatically. What's more, this skill can help user visualize the signal profiles around...

SKILL.md

Full skill instructions

Overview

This skill converts filtered BAM files into normalized signal tracks (BigWig) for genome browser visualization.
It supports both ATAC-seq and ChIP-seq datasets, automatically detecting genome assembly and chromosome size files.

Main steps include:

  • Refer to the Inputs & Outputs section to check inputs and build the output architecture. All the output file should located in ${proj_dir} in Step 0.
  • Always use filtered BAM file (*.filtered.bam) if available.
  • Normalize all tracks to 1 million mapped reads (RPM normalization).
  • Generate the chrom.size file.
  • For ATAC-seq, apply Tn5 offset correction (+4/−5) and generate normalized BigWig (RPM).
  • For ChIP-seq, generat RPM-normalized track without applying Tn5 offset correction
  • Always prompt user for whether need to visualize the signal profiles around TSS or target regions.
  • Visualize the signal profiles around TSS or target regions if users require.

Decision Tree

Step 0: Initialize Project

Call:

  • mcp__project-init-tools__project_init

with:

  • sample: all
  • task: track_generation

The tool will:

  • Create ${sample}_track_generation directory.
  • Return the full path of the ${sample}_track_generation directory, which will be used as ${proj_dir}.

Step 1: Generate Chromosome size file

Call:

  • mcp__bw-tools__generate_chrom_sizes with:
  • bam_file: Path for the BAM file for generating bigWig Tracks
  • output_path: ${proj_dir}/​temp/​${sample}.chrom.sizes

Step 2: Calculate Scaling Factor

Call:

  • mcp__bw_tools__calculate_scaling_factor with: bam_file: Path for the BAM file for generating bigWig Tracks

This step will store result as variable ${scale_factor}

Step 3: Create RPM-normalized BigWig scaled to 1M mapped reads.

  • (Option 1) For ATAC-seq data: Apply the standard Tn5 shift (+4/​-5bp)

Call:

  • mcp__bw_tools__bam_to_bigwig with: bam_file: ${bam_file} chrom_sizes: ${proj_dir}/​temp/​${sample}.chrom.sizes (from Step 2) output_bw: ${proj_dir}/​tracks/​${sample_name}.RPM.bw scale_factor: ${scale_factor} shift_tn5: True temp_dir: ${proj_dir}/​temp

  • (Option 2) For ChIP-seq data: Do Not Apply the standard Tn5 shift by setting shift_tn5 as False

Step 3: Visualize the signal profiles around TSS or target region (Optional)

Call:

  • mcp__bw_tools__visualize_signal_profile with: regions_bed: GTF (for gene tss) or BED file (for target regions), always query user for this file if not provided. signal_files: Input BigWig signal files. output_prefix: Output prefix for matrix/​plots. reference_point: use TSS for genes, and center for target regions. upstream: Upstream distance (bp). downstream: Downstream distance (bp).

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
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