← Tutorials

How to Analyze Epigenomic Data and Gene Regulation Using AI Workflows (Step-by-Step Guide for Life Scientists)

Published Nov 1, 2026

0 0 Link copied

1. Introduction: Why Life Scientists Need AI Guidance for Epigenomics

  • The Problem: Assays like ATAC-seq and ChIP-seq need several processing steps: trimming, alignment, duplicate removal, filtering, peak calling (for example with MACS3), and motif discovery (for example with HOMER). The right settings depend on your assay and how it was sequenced, and the tools won't always warn you when a setting does nothing.
  • The Solution: An AI Skill is a set of instructions Claude loads when your question calls for it. Here, it teaches Claude to check your data's quality first, write commands that suit your experiment, and explain what the results can and can't show.

Research use only: Claude writes the commands, and you run them and judge the results. You'll need to be comfortable using a terminal and understand your assay, so review every command and test it on a small subset of your data first.

2. What You Will Achieve in This Tutorial

By the end of this guide, you will:

  1. Add a reusable epigenomics Skill to Claude.
  2. Troubleshoot mitochondrial reads and broad peaks in plain English.
  3. Get ordered filtering, quality check, and peak-calling commands with each setting explained, ready to review for your own data.

3. Prerequisites: What Is Needed

Before getting started, make sure you have:

  • A Claude account on any plan, using claude.ai or the Claude Desktop App. On Enterprise plans, an owner must turn Skills on first.
  • Code execution turned on under Settings > Capabilities. Without it, Skills are greyed out.
  • Basic familiarity with epigenomic terms such as peaks, chromatin accessibility, and transcription factor motifs.
  • 5 minutes of setup time.

To run the commands Claude gives you, you also need a terminal or HPC environment with the tools installed. The Skill can help with that too.

4. Which Setup Option Should You Choose?

Option A: Download the Skill (recommended) Option B: Build it yourself
What you do Download one zip file and upload it Create a folder and file, then zip them
Best for The quickest setup Changing the instructions before you upload
Setup time About 2 minutes About 5 minutes

Both options give Claude the same Skill. You can also paste the instructions into a Claude Project's instructions, but then they apply only inside that project.

5. Option A: Download and Upload the Skill

Prefer to watch? This 52-second video with voiceover shows the steps below, from uploading the Skill to Claude's first answer.

▶ Watch this video on YouTube

Step 1: Get the Skill

Open Epigenomics and Gene Regulation Expert in the BenchNBots skills directory.

Step 2: Open the Upload Page

In Claude, click Customize in the sidebar. On the Skills tab, click + Add, then Upload skill.

Claude's Customize page on the Skills tab, with the Add menu open and Upload skill highlighted

Step 3: Upload the Zip File

Drop in epigenomics-expert.zip. Check that the preview shows the name epigenomics-expert and its description, then click Upload. Claude runs a security scan when you upload.

The Upload a skill page with the zip file added, its preview shown, and the Upload button highlighted

Step 4: Check That the Skill Is On

The Skill's page opens with its toggle switched on. Then go to Run Your First Test Prompt.

The epigenomics-expert Skill page with its toggle switched on

6. Option B: Build the Skill Yourself

Step 1: Create the Folder and File

Create a folder named epigenomics-expert. Inside it, create a text file named SKILL.md. The folder name must match the name line in the file.

Step 2: Add the Instructions

Paste this into SKILL.md, and change anything you like. The description line matters most, because Claude uses it to decide when to load the Skill.

---
name: epigenomics-expert
description: Guides ATAC-seq, ChIP-seq and DNA methylation analysis. Use for peak calling, MACS3 settings, mitochondrial reads, FRiP or TSS QC, motif enrichment, and differential accessibility.
---

# Epigenomics and Gene Regulation Expert

Act as a careful computational biologist. Help the researcher go from aligned or raw reads to regulatory results they can reproduce and defend.

## 1. Gather the facts first

Ask only for what is missing and changes the advice:

- Assay and target (ATAC-seq, a histone mark, a transcription factor, or bisulfite sequencing)
- Paired-end or single-end, read length, organism, and genome build
- Mitochondrial chromosome name in the BAM (`chrM` or `MT`)
- Replicates and controls (input or IgG)
- What the QC actually shows

Paired-end or single-end decides the MACS3 command, so never skip it.

## 2. Check quality before tuning parameters

- ATAC-seq: fragment-size pattern (nucleosome-free and mononucleosome peaks), TSS enrichment, FRiP, duplication, and read depth left after filtering.
- ENCODE's ATAC-seq standards are a useful benchmark: 50 million non-duplicate, non-mitochondrial aligned reads per paired-end replicate, FRiP above 0.3 (above 0.2 acceptable), and TSS enrichment thresholds that depend on the genome and annotation. Say that these are benchmarks, and may not fit every sample type.
- ChIP-seq: FRiP, library complexity, cross-correlation, and a matched control.
- Poor peaks usually have a library or sample cause. Do not suggest changing peak-calling settings until the evidence has been checked.

## 3. Handle mitochondrial reads honestly

- Measure first with `samtools idxstats`.
- Filtering removes mitochondrial reads from the analysis, but it does not recover lost sequencing depth. Always check how many usable reads remain, and say when a library may need more sequencing or a protocol change, such as Omni-ATAC.

## 4. Give commands that can be reproduced

Provide exact commands in order, and explain each parameter:

- Alignment: Bowtie2 or BWA-MEM. For paired-end ATAC-seq, allow long fragments with `bowtie2 -X 2000`.
- Filtering: remove mitochondrial reads, low-mapping-quality reads, duplicates, and blacklist regions. Use the researcher's own chromosome name.
- Peak calling with MACS3:
  - Paired-end ATAC-seq: `macs3 callpeak -f BAMPE -t sample.bam -g hs -n sample -q 0.01 --keep-dup all`. Do not add `--shift` or `--extsize`: MACS3 uses the real fragments in BAMPE mode, and its documentation says a non-zero shift cannot be set. MACS3 may still accept the flags without an error, so a run finishing does not mean they did anything.
  - Single-end ATAC-seq: `-f BAM --nomodel --shift -100 --extsize 200` is a common convention. The MACS3 documentation's own example for insertion sites uses `--shift -50 --extsize 100`. Explain the choice.
  - ChIP-seq: pass the control with `-c`. Use `--broad` for broad histone marks such as H3K27me3 and H3K36me3. Use narrow peaks for transcription factors and marks such as H3K4me3.
- Signal plots: deepTools `bamCoverage`, `computeMatrix`, and `plotHeatmap`.
- Motifs: HOMER `findMotifsGenome.pl`. Check motifs against the biology, because a significant motif does not prove binding.
- Differential analysis: DiffBind or DESeq2 on a consensus peak set. These need biological replicates.
- DNA methylation: Bismark for bisulfite alignment and methylation calls, then methylKit or DSS for differential methylation.
- Whole pipelines: mention nf-core/atacseq and nf-core/chipseq, and tell the researcher to check the current release.

MACS2 commands are similar and common in older pipelines. MACS3 is the current version.

## 5. Interpret with care

- Annotate peaks as promoter or distal with a tool such as ChIPseeker or HOMER `annotatePeaks.pl`.
- An open-chromatin peak far from a promoter is a candidate regulatory element, not a proven enhancer. Say what further evidence would support the claim.

## Limits

State plainly that these commands need review by the researcher and should be tested on a small subset first. Do not invent tool flags, thresholds, or version numbers. If unsure, say so and point to the tool's current documentation. Never ask the researcher to share patient-identifiable data.

Step 3: Zip and Upload

Zip the folder itself, so the zip contains epigenomics-expert/SKILL.md, not the file on its own. Then follow Steps 2 to 4 of Option A.

7. Run Your First Test Prompt

Paste this exact prompt into a new chat. You don't have to select the Skill, because Claude loads it when the question matches.

"I am analyzing paired-end ATAC-seq data from human cells and noticed a very high percentage of mitochondrial reads (>40%), along with broad peak profiles. What filtering steps and MACS3 parameters should I use to clean up the dataset and correctly identify open chromatin regions?"

8. Expected Outcomes

When working correctly, you'll see that Claude read the Skill above its answer. The wording and the commands will vary between runs. In our run, it started with the likely cause: the library itself, not the peak-calling settings. It also said that filtering can't recover the sequencing depth lost to mitochondrial reads.

Claude's answer showing that it read the Skill, then naming the library as the likely cause

It then measured the mitochondrial share and gave commands to remove duplicates, mitochondrial reads, low-quality alignments, and improper pairs, explaining each flag.

The filtering commands, with an explanation of each samtools flag

Before calling peaks, it told us to check read depth, fragment sizes, and TSS enrichment, because those show whether the dataset can be used at all.

The three checks to run before peak calling

It also avoided a common mistake. Many guides use --nomodel --shift -100 --extsize 200 for ATAC-seq, but that setting is for single-end reads. Paired-end data uses -f BAMPE, which works from the real fragments.

The MACS3 paired-end command, with an explanation of why the shift flags are left out

What We Tested

We ran Claude's commands with samtools 1.25, Bowtie2 2.5.5, MACS3 3.1.0, and deepTools 3.5.6 on one sample from the small nf-core ATAC-seq test dataset, changing chrM to MT and -g hs to the yeast genome size.

  • The commands ran without errors. Filtering took the sample from 200,000 reads to 66,632, with no mitochondrial reads left, and MACS3 called 322 peaks.
  • Adding --shift -100 --extsize 200 --nomodel to a -f BAMPE run gave no error, and the peaks were the same as without those flags. So a run that finishes doesn't prove a flag did anything.

This was a check that the commands work, not a test of scientific quality. The sample is a small yeast subset with under 1% mitochondrial reads, so it didn't reproduce the problem in the prompt. We didn't test human data, the real blacklist file, or the Skill's ChIP-seq, motif, differential, or methylation guidance. Before a full run:

  • Replace chrM if your BAM names the mitochondrial chromosome differently, and set -g for your organism.
  • Check how many reads remain after filtering. ENCODE's ATAC-seq standards use 50 million non-duplicate, non-mitochondrial aligned reads per paired-end replicate as a benchmark.
  • Compare your FRiP and TSS enrichment with those standards, keeping in mind that they may not fit every sample type.

9. Troubleshooting & FAQs

Q: The Skills page is greyed out, or I can't upload.

Fix: Turn on code execution under Settings > Capabilities. On Enterprise plans, ask an owner to enable Skills for your organisation.

Q: The upload fails with an error about the folder or file name.

Fix: The zip must contain the epigenomics-expert folder with SKILL.md inside it, and the folder name must match the name line in the file.

Q: Claude answered without reading the Skill.

Fix: Check that the Skill's toggle is on under Customize > Skills. You can also ask directly: "Use the epigenomics-expert skill."

Q: Should I use a Skill or an MCP connector for this?

A: Use a Skill. This work means choosing methods and settings for your own data, which is what a Skill teaches Claude to do. An MCP connector is better for looking up records in a public database, and the two work well together.

Q: Can Claude run these tools on my server?

A: Not from a standard chat. You copy the commands and run them in your own terminal or HPC environment. Agent tools with terminal access, such as Claude Code, can run commands directly, so review what they plan to do first.

Q: Is there a ready-made pipeline?

A: Yes. nf-core/atacseq and nf-core/chipseq cover many of these steps. Check each pipeline's current release and defaults, and consider using one as a cross-check on your own commands.

Q: Is my data sent to Claude?

A: Only what you put in the chat, such as a description, a QC summary, or an error log. You don't need to share BAM files for this workflow. Avoid sharing patient-identifiable or confidential data.

10. Quick Quiz: Test Your Knowledge

  1. True or False: Filtering out mitochondrial reads recovers the sequencing depth they used up. (Answer: False. It removes them from the analysis, but you still need enough usable reads left.)
  2. Which MACS3 format setting uses the real fragments from paired-end reads? (Answer: -f BAMPE.)
  3. What is the main purpose of MACS3 in an epigenomic pipeline? (Answer: Finding statistically significant regions of enrichment, called peaks, which can correspond to open chromatin or protein binding.)
  4. What does FRiP measure? (Answer: The fraction of reads that fall in peaks, which is a signal-to-noise check.)

Taxonomies