Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bio-atac-seq-motif-deviation

БесплатноБез исполняемых скриптовНе проверен

Analyze TF motif accessibility variability across samples or single cells using chromVAR. Use when identifying TF motifs whose accessibility correlates with…

gabrielmoreiraот gabrielmoreira★ 23 звезды на GitHub

Об этом скилле

Version Compatibility

Reference examples tested with: chromVAR 1.24+, motifmatchr 1.24+, JASPAR2024 0.99+, TFBSTools 1.40+, BSgenome.Hsapiens.UCSC.hg38 1.4+, SummarizedExperiment 1.32+, limma 3.58+, ggplot2 3.5+, Matrix 1.6+, ArchR 1.0.2+, Signac 1.13+.

Before using code patterns, verify installed versions match. If versions differ:

  • R: packageVersion('<pkg>') then ?function_name to verify parameters

If code throws unexpected errors, introspect the installed package and adapt rather than retrying.

Motif Deviation (chromVAR)

"Which TF motifs explain accessibility variation across my samples or cells?" -> Compute per-sample (or per-cell) deviation z-scores: how many standard deviations above expectation each TF motif's accessibility falls, controlling for GC content and overall accessibility via matched background peak sets.

  • R: chromVAR::computeDeviations(counts, motifs) -> per-sample z-scores
  • R: chromVAR::computeVariability(dev) -> per-motif variance ranking
  • Single-cell alternative: Signac::RunChromVAR() (wrapper with matched defaults) or ArchR::addDeviationsMatrix()

chromVAR answers a different question than footprinting: footprinting asks "is this specific motif site bound?", chromVAR asks "do peaks containing this motif have systematically more or less accessibility than expected?" The two are complementary.

What chromVAR Computes

For each (motif, sample) pair:

  • Raw deviation = Sum of accessibility at peaks containing the motif - expected from a matched-GC, matched-accessibility background.
  • Bias-corrected deviation = Raw deviation / SD of background deviations.
  • Z-score = (corrected deviation - mean across cells) / SD across cells. Reported as the principal output.

Z-scores are signed: positive = motif more accessible in this sample than population average; negative = less. Magnitudes 2-5 are typical for biologically interesting motifs; >5 indicates strong covariation with sample state.

Algorithmic Taxonomy

Tool Input Background Output Best for Fails when
chromVAR Peak count matrix + motif annotations Matched GC + accessibility (50 peaks per match by default) Per-sample motif z-score Bulk + single-cell (sparse-aware); cross-sample variability < 1500 reads/sample (bulk) or < 500 cells/cluster (sc); too few peaks (< 5000)
Signac::RunChromVAR Seurat single-cell ATAC object Same as chromVAR (delegated) Motif assay in Seurat object Standard single-cell workflows in Seurat ecosystem Same as chromVAR; needs Seurat object setup
ArchR::addDeviationsMatrix ArrowFile + tile/peak matrix ArchR's getBgdPeaks (matched on GC + log accessibility) Per-cell deviation matrix in ArchR project ArchR ecosystem; faster on large scATAC ArchR-specific format; not portable to chromVAR objects
chromVAR (multinomial) Peak counts + motif annotations Same Same z-scores via different model When read-depth is highly variable across samples Original poisson-based variant; multinomial in newer versions
Signac::FindMarkers (with motifs as features) Motif accessibility matrix from RunChromVAR Per-cell-cluster Differential motifs per cluster Cluster-level differential Differential test must be on z-scores; raw counts will mislead
TF activity inference (DecoupleR / SCENIC+) Gene expression + motif activity Multi-modal TF activity score Multi-omics integration Requires paired RNA-seq; chromVAR alone is insufficient

Methodology evolves; verify against current chromVAR (Schep 2017), ArchR (Granja 2021), and Signac (Stuart 2021) benchmarks before locking pipelines.

chromVAR vs Footprinting -- Different Questions

Question Tool
Does the bulk pattern of motif-containing peaks vary with condition? chromVAR
Is THIS specific motif site bound by a TF? TOBIAS / HINT-ATAC
Per-cell TF activity in scATAC chromVAR (via Signac/ArchR)
Per-cell TF binding at specific sites scprinter
TF activity correlated with gene expression chromVAR + co-expression OR SCENIC+
Which TF families distinguish my cell clusters? chromVAR per-cluster z-scores
Differential bound vs unbound between conditions TOBIAS BINDetect

chromVAR is fundamentally a summary statistic over many motif sites. Footprinting is per-site classification. Use chromVAR when motif site count >> 100; use footprinting when specific sites matter.

Per-Tool Failure Modes

chromVAR -- Too few peaks or too few reads

Trigger: ATAC peakset < 5000 peaks; per-sample read depth < 1500 in peaks.

Mechanism: chromVAR's background sampling requires enough peaks to find matched GC + accessibility partners. Sparse sampling at low peak count creates correlated null distributions, inflating both positive and negative z-scores.

Symptom: Variability scores all > 5 (suspiciously high); top variable motifs are domin

Полный SKILL.md на GitHub

Установить bio-atac-seq-motif-deviation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/chromvar_analysis.Rusage-guide.md

FAQ

Что делает скилл bio-atac-seq-motif-deviation?

Analyze TF motif accessibility variability across samples or single cells using chromVAR. Use when identifying TF motifs whose accessibility correlates with conditions, computing per-sample motif z-scores after matched background correction, comparing to ArchR / Signac equivalents, or distinguishing motif-accessibility signal from per-site footprinting.

Как установить скилл bio-atac-seq-motif-deviation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bio-atac-seq-motif-deviation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bio-atac-seq-motif-deviation с