Логотип Bio Chipseq Motif Analysis

Bio Chipseq Motif Analysis

Організація
PKU-YuanGroup
bio-chipseq-motif-analysis

Discovers de novo motifs and tests known motif enrichment in ChIP-seq, ATAC-seq, or other peak sequences using HOMER, MEME-ChIP (STREME, CentriMo, TOMTOM, FIMO), monaLisa, and AME. Handles background selection (GC-matched, dinucleotide-shuffled, Markov order-2, peak-flanks), motif databases (JASPAR 2024 CORE PWMs, JASPAR 2026 deep-learning collection, HOCOMOCO v12, HOMER built-in), centrally-enriched motif testing, and differential motif analysis. Use when identifying TF binding motifs in peaks, testing for known TF enrichment, scanning for motif instances, comparing motif content between conditions, or interpreting motifs from deep learning models.

Огляд

ВидавецьPKU-YuanGroup
РепозиторійOpenAI4S
Назва навичкиbio-chipseq-motif-analysis
Зірки
622
Форки
72
Файли в пакеті
2
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 2

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: PKU-YuanGroup. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Bio Chipseq Motif Analysis у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/PKU-YuanGroup/OpenAI4S/tree/main/skills/bioskills/bio-chip-seq-motif-analysis
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/PKU-YuanGroup/OpenAI4S.git /tmp/OpenAI4S
mkdir -p .claude/skills
cp -r /tmp/OpenAI4S/skills/bioskills/bio-chip-seq-motif-analysis .claude/skills/bio-chipseq-motif-analysis
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Bio Chipseq Motif Analysis в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Bio Chipseq Motif Analysis, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Bio Chipseq Motif Analysis не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Version Compatibility

Reference examples tested with: HOMER 4.11+, MEME suite 5.5+ (STREME replaces DREME from 5.4+), monaLisa 1.10+, JASPAR 2024 CORE, HOCOMOCO v12, BioPython 1.83+, bedtools 2.31+.

DREME was removed from MEME suite 5.4+; use STREME instead. Some tutorials still reference DREME — verify the installed version via meme --version. JASPAR 2026 (released late 2025) integrates 1259 BPNet ChIP models in a Deep Learning collection; the CORE collection remains the standard PWM source.

Motif Analysis on ChIP-seq Peaks

"Find enriched DNA binding motifs in my ChIP-seq peaks" -> Discover de novo motif patterns and test for known TF motif enrichment in peak sequences, with appropriate background to control for compositional and positional biases.

  • CLI (HOMER, fast): findMotifsGenome.pl peaks.bed hg38 outdir/ -size 200 -p 8
  • CLI (MEME-ChIP, comprehensive): meme-chip -db JASPAR.meme peaks.fa
  • R (regression-based, selective enrichment): monaLisa::calcBinnedMotifEnrR(seqs, bins, pwms)
  • CLI (deep-learning-derived motifs): TF-MoDISco on BPNet attribution scores (see chip-deep-learning)

Motif discovery is sensitive to background choice and peak quality. Hyper-ChIPable artifacts at rRNA / housekeeping loci often produce false-positive motifs (GC-rich or A-T-rich biases of those regions). Filter peaks against blacklists and inspect peak distribution before running motif discovery.

Tool Taxonomy

ToolDiscovery typeBackground handlingStrengthFails when
HOMER findMotifsGenome.plDe novo + knownGC-matched genomic regions (auto)Fast (multi-core); integrated vertebrate/insect/plant DBs; one-command full reportBackground can include unmasked repeats producing motif artifacts; -size given slow; auto background may include peaks themselves
MEME-ChIPDe novo (STREME, MEME) + central enrichment (CentriMo) + DB comparison (TOMTOM) + scanning (FIMO)Markov order-2 from input; shuffled (preserves dinucleotide)Comprehensive single command; rigorous statistics; HTML reportSlower; sequences must be 100-500 bp; central enrichment requires summit-centered peaks
STREME (MEME 5.4+)De novo (replaced DREME)Markov order-2Bailey 2021 benchmark: more accurate than DREME/HOMER/MEME/Peak-motifs; handles 3-30 bp; scales to 100k+ sequencesMemory-hungry for very long sequences (>1 kb)
MEME (classical)De novo (long, gapped)MarkovLong motifs; gapped motifsSlow (no parallel); replaced by STREME for short motifs
DREMEDe novo (short)ShuffledHistorical; small fastRemoved from MEME 5.4+; use STREME
monaLisa (Stadler lab)Binned enrichment regressionNative (binned scoring)Modern; regression-based; selectivity (TF-specific in differential peaks)R-only; less integrated with browsers
AME (MEME suite)Known motif differentialMatched background set requiredDesigned for two-set comparison (e.g., peaks vs. control regions)Requires user-provided background set
CentriMoKnown motif central enrichmentAuto from inputTests positional enrichment relative to peak centerRequires summit-centered peaks (200-500 bp)
FIMOMotif scanningMarkov modelGenome-wide scanning at user-set p-valueMany false positives at p ≤ 1e-4; tighten to 1e-5 for whole-genome
HOMER scanMotifGenomeWide.plMotif scanningNoneGenome-wide scanning at fixed score thresholdLess calibrated than FIMO; HOMER's PWM format
RSAT peak-motifsDe novo + knownk-mer comparisonWeb-server; multi-tool ensembleWeb limits; less reproducible from CLI
TF-MoDIScoDL attribution-basedImplicit in modelMotifs from BPNet/chromBPNet attribution scores; captures soft motif syntaxRequires trained DL model; see chip-deep-learning

Background Selection — The Biggest Source of Error

Motif enrichment p-values are conditional on the background distribution. Wrong background produces wrong motifs.

BackgroundWhat it preservesUse caseLimitation
GC-matched genomic regionsMononucleotide composition; chromatin contextTF motifs; avoid GC-bias artifactsDoesn't preserve dinucleotide (CpG, TpA)
Dinucleotide-shuffledCpG and TpA frequenciesShort motifs; avoiding repeat-derived artifactsDoesn't capture genomic position context
Markov order-2 (trinucleotide)Trinucleotide contextCompositional control; STREME/MEME defaultDoesn't capture chromatin context
Peak-flanking sequences (±500 bp upstream/downstream of peak)Local genomic contextWhen peak GC differs from genomeMay contain shared regulatory motifs if peaks cluster
Repeat-masked inputSequence with repeats replaced by NAvoid TE-derived motif artifactsLoses motifs in evolved-from-repeat regulatory elements
Input control peaksOpen-chromatin / artifact regionsTF discrimination from generic chromatinHard to obtain; controversial
Differential set (AME)Treatment-condition-specific peaks vs ctrl peaksDifferential motif enrichmentRequires a control peak set

Practical default: STREME / MEME-ChIP with Markov order-2 (built-in default); HOMER with -mask flag (mask repeats); always inspect for repeat-derived motifs (e.g., Alu-derived AluY consensus, LINE motifs).

Window Around Summit Matters

Motif enrichment improves dramatically when sequences are summit-centered:

WindowWhen
±100 bp (200 bp total)Sharp TFs (CTCF, p53); summit reliably reflects motif position
±150-250 bp (300-500 bp)Most TFs and sharp histones; balance of motif coverage and noise
Full peak width (-size given)Variable-width broad marks; computationally expensive
Whole gene body (>1 kb)Almost always wrong; dilutes motif signal

For ChIP-seq broad histone marks (H3K27me3, H3K9me3) motif analysis is generally NOT informative — these marks reflect Polycomb / heterochromatin domains without sequence-specific binding. Motif analysis applies to TFs and to histone marks deposited by sequence-specific cofactors (H3K27ac partial, since BRD4 reads acetyl).

HOMER Workflow

bash
# De novo + known motif discovery, repeat-masked, GC-matched background
findMotifsGenome.pl peaks.narrowPeak hg38 homer_out/ \
    -size 200 \
    -mask \
    -p 8

# With user-supplied background (e.g., control peaks or random genomic)
findMotifsGenome.pl peaks.narrowPeak hg38 homer_out/ \
    -size 200 -mask -p 8 \
    -bg background_peaks.bed

# Known motifs only (skip de novo; faster)
findMotifsGenome.pl peaks.narrowPeak hg38 homer_known_only/ \
    -size 200 -mask -nomotif

# Differential motif analysis: peaks gained in condition A vs condition B
findMotifsGenome.pl gained_in_A.bed hg38 differential_motifs/ \
    -size 200 -mask -bg gained_in_B.bed

HOMER output files:

  • homerResults.html — de novo motifs ranked by significance
  • knownResults.html — known motif enrichment
  • homerMotifs.all.motifs — all de novo motifs (PWM format)
  • knownResults.txt — tab-separated known motif stats

MEME-ChIP Workflow

bash
# Center peaks to ±100 bp around summit (column 10 in narrowPeak)
awk 'BEGIN{OFS="\t"} {summit = $2 + $10; print $1, summit - 100, summit + 100, $4, $5, $6}' \
    peaks.narrowPeak > peaks_centered.bed
bedtools getfasta -fi hg38.fa -bed peaks_centered.bed -fo peaks_centered.fa

# Full MEME-ChIP analysis
meme-chip \
    -oc meme_chip_out/ \
    -db JASPAR2024_CORE_vertebrates_non-redundant_pfms_meme.txt \
    -meme-nmotifs 5 \
    -streme-nmotifs 10 \
    -minw 6 -maxw 20 \
    peaks_centered.fa

# MEME-ChIP runs: STREME (replaces DREME) + MEME + CentriMo + TOMTOM + FIMO
# CentriMo tests known motifs for central enrichment — strongest signal of
# direct binding vs. tethered/indirect binding

monaLisa Workflow (R, Regression-Based)

Goal: Test which TF motifs are enriched in specific bins of peaks (e.g., bins of differential log2FC, or bins of accessibility).

Approach: monaLisa builds a per-motif regression of peak signal on motif occurrence, controlling for GC content. Selective for TFs that discriminate between bins.

r
library(monaLisa)
library(JASPAR2024)
library(TFBSTools)
library(Biostrings)
library(BSgenome.Hsapiens.UCSC.hg38)

# Load peaks and split into bins (e.g., quintiles of log2FC)
peaks <- rtracklayer::import('peaks.bed')
peaks$log2FC <- ...  # from differential analysis
bins <- bin(peaks$log2FC, binmode = 'equalN', nElements = 200)

# Get sequences around peak centers
seqs <- getSeq(BSgenome.Hsapiens.UCSC.hg38, resize(peaks, width = 500, fix = 'center'))

# Load JASPAR PWMs
pwms <- getMatrixSet(RSQLite::dbConnect(RSQLite::SQLite(), db(JASPAR2024())), list(species = 9606, collection = 'CORE'))

# Compute binned motif enrichment with GC control
res <- calcBinnedMotifEnrR(seqs = seqs, bins = bins, pwmL = pwms, BPPARAM = MulticoreParam(8))

# Plot heatmap of motif enrichment vs bins
plotMotifHeatmaps(x = res, which.plots = c('log2enr', 'negLog10P'),
                   width = 1.8, maxEnr = 2, maxSig = 10)

Per-Tool Failure Modes

HOMER -- Background includes peaks themselves

Trigger: Running findMotifsGenome.pl without -bg on a large peak set covering >5% of genome.

Mechanism: HOMER auto-samples GC-matched genomic regions for background, which can overlap the peak set itself.

Symptom: Even known TF motif p-values are weak (>1e-3); de novo motifs less enriched than expected.

Fix: Supply explicit -bg background (e.g., random genomic intervals matching peak count and width) OR use MEME-ChIP with internal shuffled background.

HOMER / MEME -- Repeat-derived false-positive motifs

Trigger: Running on unmasked peaks; peaks cover transposable elements (Alu, LINE, LTR).

Mechanism: TEs contain over-represented k-mers that motif algorithms mistake for biology.

Symptom: Top de novo motif matches AluY consensus (~280 bp), LINE/L1, or LTR families.

Fix: Use -mask (HOMER) or pre-mask peak sequences with RepeatMasker; verify TOMTOM matches against legitimate TF databases.

STREME -- Memory failure on long sequences

Trigger: Running STREME on full-peak sequences (>1 kb each) with > 50k peaks.

Mechanism: STREME holds suffix structures in memory; long sequences explode RAM.

Fix: Resize peaks to ±100-250 bp summit-centered before STREME; or downsample peak count.

CentriMo -- No central enrichment due to wrong centering

Trigger: Using full peak coordinates (BED start, end) without recentering on summit.

Mechanism: Peak start coordinate is the left edge, not the summit; motif may be enriched near the summit but appears unenriched relative to the start.

Symptom: Known TF motifs show no central enrichment despite being clearly enriched overall.

Fix: Recenter sequences on summit: summit = start + summit_offset (narrowPeak column 10) before extracting FASTA.

FIMO -- Massive false positives at default p ≤ 1e-4

Trigger: Genome-wide scanning at FIMO default p-value threshold.

Mechanism: At p ≤ 1e-4, expect ~3M random matches in a 3 Gb genome; most are false positives.

Symptom: FIMO output has millions of motif "hits"; can't distinguish real binding.

Fix: Tighten to --thresh 1e-5 or stricter for genome-wide scans; or restrict scan to peaks: fimo --bgfile motif_bg motif.meme peaks.fa.

monaLisa -- GC bins not respected

Trigger: Running calcBinnedMotifEnrR without GC binning when peaks have systematic GC differences (e.g., promoters vs distal enhancers).

Mechanism: GC-rich motifs are over-enriched in GC-rich bins simply by chance.

Symptom: Top motifs are CpG-rich families (e.g., E2F, NRF1) regardless of biology.

Fix: Use background = 'genome' with GC-matched genomic background; or background = 'otherBins' with stratified GC.

Motif analysis on hyper-ChIPable regions

Trigger: Running motifs on peaks dominated by hyper-ChIPable artifacts (rRNA, tRNA, housekeeping).

Mechanism: These regions have systematic compositional biases (GC-rich, A-T-rich, repeat-derived); motifs from artifact peaks reflect compositional biology, not TF binding.

Symptom: Top de novo motif matches no known TF; high-GC or low-complexity consensus.

Fix: Apply blacklist + custom hyper-ChIPable filter (top-1% input signal) before motif analysis. See chipseq-qc.

Reconciliation: When Motif Methods Disagree

PatternLikely causeAction
HOMER finds motif X; MEME-ChIP missesDifferent background; HOMER may have permissive backgroundRun MEME-ChIP with explicit GC-matched background; check
MEME finds long gapped motif; STREME doesn'tMEME captures variable-length structure; STREME limited to 30 bpBoth are correct; report MEME for long motifs
Top de novo motif doesn't match TOMTOM databasesNovel motif OR repeat artifact OR compositional artifactInspect peaks for repeats; check input control; could be genuine novel TF
Known motif enriched but no de novo recoveryInsufficient enrichment for de novo; or motif is degenerateTrust known motif enrichment; de novo needs strong signal
Differential motif gained in treatment but TF expression unchangedTF post-translational regulation (binding mode change without expression change)Check ChIP signal at known TF target genes; not a contradiction

Common Errors

Error / symptomCauseSolution
HOMER "configureHomer.pl genome not installed"Genome not configuredperl configureHomer.pl -install hg38 (one-time)
MEME "sequence too short"Peaks < motif min widthResize peaks to ≥ 200 bp
MEME-ChIP "out of memory"Too many long sequencesResize peaks to ±100-250 bp; downsample
No enriched motifsPeak quality / hyper-ChIPable / wrong backgroundCheck FRiP, filter blacklist, supply explicit background
Top motif is GC-rich consensusGC-bias in peaks not matched by backgroundGC-matched background (HOMER -bg or MEME shuffled with order-2)
FIMO produces millions of hitsp-value threshold too loose--thresh 1e-5 for whole-genome; restrict to peaks for finer p
TOMTOM matches always say "no match"Motif database species mismatchUse vertebrates / insects / plants DB matching organism

References

  • Heinz S et al 2010 Mol Cell 38:576 (HOMER)
  • Bailey TL & Elkan C 1994 Proc ISMB (MEME)
  • Bailey TL 2021 Bioinformatics 37:2834 (STREME)
  • Machanick P & Bailey TL 2011 Bioinformatics 27:1696 (MEME-ChIP)
  • Bailey TL et al 2015 Nucleic Acids Res 43:W39 (MEME suite update)
  • Grant CE et al 2011 Bioinformatics 27:1017 (FIMO)
  • Bailey TL & Machanick P 2012 Nucleic Acids Res 40:e128 (CentriMo)
  • McLeay RC & Bailey TL 2010 BMC Bioinformatics 11:165 (AME)
  • Machlab D et al 2022 Bioinformatics 38:2624 (monaLisa)
  • Castro-Mondragon JA et al 2022 Nucleic Acids Res 50:D165 (JASPAR 2022; CORE collection)
  • Avsec Ž et al 2021 Nat Genet 53:354 (BPNet; soft motif syntax)
  • Shrikumar A et al 2018 (rev. 2020) arXiv:1811.00416 (TF-MoDISco)

Related Skills

  • chip-seq/peak-calling - Upstream peak calling; recenter on summit for motif input
  • chip-seq/chipseq-qc - Filter hyper-ChIPable artifacts before motif discovery
  • chip-seq/chip-deep-learning - BPNet/chromBPNet for sequence-attribution motif discovery (TF-MoDISco)
  • chip-seq/peak-annotation - Annotate peaks before motif discovery to filter promoters vs enhancers
  • atac-seq/motif-deviation - chromVAR per-cell motif activity (ATAC-specific)
  • atac-seq/footprinting - TOBIAS footprint analysis (ATAC; complementary to motif enrichment)
  • sequence-manipulation/motif-search - General sequence motif scanning
  • genome-intervals/proximity-operations - bedtools getfasta to extract peak sequences

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Bio Chipseq Motif Analysis?

Discovers de novo motifs and tests known motif enrichment in ChIP-seq, ATAC-seq, or other peak sequences using HOMER, MEME-ChIP (STREME, CentriMo, TOMTOM, FIMO), monaLisa, and AME. Handles background selection (GC-matched, dinucleotide-shuffled, Markov order-2, peak-flanks), motif databases (JASPAR 2024 CORE PWMs, JASPAR 2026 deep-learning collection, HOCOMOCO v12, HOMER built-in), centrally-enriched motif testing, and differential motif analysis. Use when identifying TF binding motifs in peaks, testing for known TF enrichment, scanning for motif instances, comparing motif content between c...

Навіщо використовувати Bio Chipseq Motif Analysis у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Bio Chipseq Motif Analysis — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Bio Chipseq Motif Analysis у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/PKU-YuanGroup/OpenAI4S/tree/main/skills/bioskills/bio-chip-seq-motif-analysis. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Bio Chipseq Motif Analysis?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Bio Chipseq Motif Analysis?

Зі скількома забажаєте. У TypingMind ви можете використовувати Bio Chipseq Motif Analysis із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Bio Chipseq Motif Analysis?

Так. На GitHub цю навичку публікує PKU-YuanGroup за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇