Bio Atac Seq Single Cell Atac 标志

Bio Atac Seq Single Cell Atac

组织
PKU-YuanGroup
bio-atac-seq-single-cell-atac

使用 Signac、ArchR、SnapATAC2 或 Cell Ranger ATAC 处理和分析单细胞 ATAC-seq 数据。适用于处理 10X scATAC 或 10X Multiome(配对 RNA+ATAC)数据、进行逐细胞 QC、选择 ArchR/Signac/SnapATAC2 工具生态、构建各簇的共识峰集、与配对 scRNA-seq 整合、检测双细胞(AMULET、ArchR 或 scDblFinder),或按簇进行伪汇总差异可及性分析。

Add to TypingMind

概览

发布者PKU-YuanGroup
代码仓库OpenAI4S
技能名称bio-atac-seq-single-cell-atac
星标数
622
复刻数
72
附带文件
2
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 2 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 PKU-YuanGroup 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Bio Atac Seq Single Cell Atac AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/PKU-YuanGroup/OpenAI4S/tree/main/skills/bioskills/bio-atac-seq-single-cell-atac
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 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-atac-seq-single-cell-atac .claude/skills/bio-atac-seq-single-cell-atac
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Bio Atac Seq Single Cell Atac,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Bio Atac Seq Single Cell Atac。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Bio Atac Seq Single Cell Atac 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Version Compatibility

Reference examples tested with: Cell Ranger ATAC 2.1+, Signac 1.13+, Seurat 5.0+, ArchR 1.0.2+, SnapATAC2 2.8+, AMULET 1.1+, scDblFinder 1.16+, scater 1.30+, scvi-tools 1.1+, GenomicRanges 1.54+, JASPAR2024 0.99+, BSgenome.Hsapiens.UCSC.hg38 1.4+, EnsDb.Hsapiens.v86 2.99+, MACS3 3.0+. SnapATAC2 2.8+ uses pp.import_fragments; older 2.5-2.7 used pp.import_data (renamed/removed in 2.9).

Verify before use:

  • Python: pip show <package> then help(module.function) to check signatures
  • R: packageVersion('<pkg>') then ?function_name to verify parameters
  • CLI: <tool> --version then <tool> --help to confirm flags

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

Single-Cell ATAC-seq

"Process my 10X scATAC data from cellranger output" -> Build a per-cell fragment matrix, compute per-cell QC, dimensionality reduction (TF-IDF + LSI / spectral / autoencoder), cluster, call cluster-level pseudobulk peaks, annotate cell types via gene-activity scores, and integrate with paired scRNA-seq if Multiome.

  • R: Signac::CreateChromatinAssay() -> Seurat workflow (TF-IDF + SVD + UMAP + Leiden)
  • R: ArchR::createArrowFiles() -> ArchR project (TileMatrix + LSI + UMAP)
  • Python: snapatac2.pp.import_fragments() -> SnapATAC2 (spectral / diffusion-map clustering)
  • CLI (preprocessing): cellranger-atac count (10X) or chromap (alignment-only fragment files)

Ecosystem Choice (The Most Important Decision)

EcosystemLanguageStrengthFails whenBest for
Signac (Stuart 2021)R, Seurat-basedTightest scRNA-seq integration; Seurat ecosystem matureMemory hungry on >100K cells; slower than ArchRMultiome RNA+ATAC; small-to-medium datasets; Seurat user
ArchR (Granja 2021)R, Arrow/HDF5Memory-efficient (Arrow files); fast on 100K-1M cells; built-in trajectory + doubletLess RNA-seq integration; ArchR-specific formatLarge bulk-cohort scATAC; trajectory analysis; ATAC-only
SnapATAC2 (Zhang 2024)Python, AnnDataMemory-efficient; modern Python ecosystem; spectral clustering performantNewer; benchmarks evolving; ecosystem smaller than RPython-first labs; very large datasets (>1M cells)
Cell Ranger ATACCLI (10X-specific)10X official preprocessingClosed; fixed pipelineOnly as preprocessing step; analysis happens elsewhere
scATAC-proCLI-based pipelineAlternative preprocessingLess maintainedLegacy; not recommended for new projects

Methodology evolves; verify against Granja 2021 (ArchR), Stuart 2021 (Signac), Zhang 2024 (SnapATAC2), Heumos 2023 (best practices) before locking pipelines.

10X Multiome Caveat (Paired RNA + ATAC)

10X Multiome chemistry profiles RNA AND ATAC from the same cell. Outputs are joined by a shared barcode. Multiome workflows use Signac for ATAC and Seurat for RNA, integrated through the same Seurat object via WNN (Weighted Nearest Neighbor; Hao 2021).

Single-modality 10X scATAC (chemistry v1, v2) does NOT produce paired RNA. Verify the chemistry on the cellranger summary before assuming Multiome.

Per-Cell QC Thresholds

MetricDefinitionPassCautionRejectSource
Fragment count per celln_fragments after dedup3000-500001000-3000< 1000 or > 8000010X recommendation; high = doublet
TSS enrichment per cellSignal at TSS / flanks (per cell)>= 42-4< 2ArchR / Signac default; lower than bulk because per-cell
Nucleosome signalMono / NFR fragment ratio<= 44-10> 10Signac default; high = poor library
% reads in peaks (per cell)FRiP per cell at consensus>= 0.150.10-0.15< 0.05ArchR / Signac defaults
Mitochondrial fraction (per cell)chrM / total per cell< 0.050.05-0.15> 0.20Lower than bulk; per-cell more sensitive
Doublet scoreAMULET / ArchR doublet< 0.50.5-0.7> 0.7Tool-dependent threshold
Blacklist ratioReads in ENCODE blacklist / total< 0.050.05-0.10> 0.10Standard

Per-cell thresholds are looser than bulk because individual cells have orders of magnitude less signal; the population aggregate is what matters.

Doublet Detection: Three Approaches

ToolMethodStrengthFails when
AMULET (Thibodeau 2021)Collision-based: detects cells with too many fragments at same position (mathematically impossible from single cell because of 2-allele limit)Specific to ATAC biology; orthogonal to clusteringRequires high depth; recall drops sharply below ~15-16K valid read pairs/cell (peaks ~90% near ~25K)
ArchR addDoubletScoresSynthetic doublet simulation + projection into LSIBuilt into ArchR; auto-thresholdsTied to ArchR's LSI; not portable
scDblFinder (Germain 2021)Synthetic doublets + classifierWorks on Signac and SCE objects; well-benchmarkedRNA-developed; ATAC adaptation requires careful settings

Operational rule: Run AMULET as the primary ATAC-specific check; verify with ArchR or scDblFinder as orthogonal evidence. Double-flagged cells are high-confidence doublets.

Per-Tool Failure Modes

Signac TF-IDF + SVD -- First component is depth

Trigger: Running RunTFIDF -> RunSVD and using all components for clustering.

Mechanism: Component 1 of LSI is highly correlated with sequencing depth per cell, not biology. Including it pulls clusters along depth axis.

Symptom: UMAP shows linear cell-density gradient that tracks fragment count.

Fix: Skip component 1 in downstream UMAP and clustering: RunUMAP(object, dims=2:30), FindNeighbors(object, dims=2:30). ArchR and SnapATAC2 do this automatically.

ArchR -- TileMatrix vs PeakMatrix confusion

Trigger: Using TileMatrix for differential testing or motif analysis.

Mechanism: TileMatrix is regular fixed bins (default 500 bp) covering the whole genome; useful for clustering but not for biology because ATAC signal is at peaks, not arbitrary bins.

Fix: Use TileMatrix for embedding/clustering (it's faster); use PeakMatrix (after addReproduciblePeakSet) for differential, motif, and gene-activity analysis.

SnapATAC2 -- Memory layout assumes integer counts

Trigger: Loading non-integer or negative-valued matrices.

Fix: SnapATAC2 expects raw fragment counts (Int32). Convert from float matrices before loading.

Cell Ranger ATAC -- Empty droplet detection

Trigger: Default cellranger-atac calls cells based on UMI count but ATAC has no UMIs; uses fragment-based heuristic. Sometimes calls < 1000-fragment cells as real.

Fix: Re-filter cellranger output to require fragment count >= 1000 AND TSS enrichment >= 4 BEFORE downstream analysis.

Multiome WNN -- ATAC weighting

Trigger: Default WNN equally weights RNA and ATAC modalities.

Mechanism: ATAC's per-cell signal is much sparser than RNA; equal weighting can swamp the joint embedding with ATAC noise.

Fix: Inspect per-modality weights with IntegrateLayers; if ATAC weights dominate noise, manually adjust or use FindMultiModalNeighbors carefully.

Per-cluster pseudobulk peak calling -- Empty clusters

Trigger: Calling MACS3 per cluster when one cluster has < 200 cells.

Mechanism: MACS3 needs >= 1M reads in pseudobulk to call peaks reliably; small clusters do not produce enough reads.

Fix: Aggregate small clusters into a "rare" group OR drop them from per-cluster calling. Use the union of larger-cluster peaks as a fallback for rare-cell-type analysis.

Decision Tree by Goal

GoalRecommended pipeline
Standard 10X scATAC analysis (R user)Signac: CreateChromatinAssay -> RunTFIDF -> RunSVD -> RunUMAP (dims 2:30) -> FindClusters
Standard 10X scATAC analysis (Python user)SnapATAC2: pp.import_fragments -> add_tile_matrix -> spectral -> UMAP -> leiden
Large dataset (> 100K cells)ArchR (memory-efficient Arrow files)
10X Multiome (paired RNA + ATAC)Signac + Seurat: per-modality embedding then WNN integration
Trajectory / pseudotimeArchR getTrajectory; or Signac + Cicero
Differential accessibility per clusterPseudobulk per cluster -> consensus peakset -> DESeq2
Cell-type annotationGene-activity scores via ArchR or Signac; then run single-cell/markers-annotation
Multimodal trajectories (RNA + ATAC)MOFA+, ArchR + scRNA integration, or SCENIC+
Plant / non-modelSignac with custom EnsDb / TxDb; ArchR with custom annotations

Standard Signac Workflow

Goal: Process 10X scATAC output into a clustered, annotated Seurat object with per-cell QC, embedding, and gene-activity scores.

Approach: Load fragments and peak counts into a ChromatinAssay, compute per-cell QC (TSS enrichment, nucleosome signal, FRiP, blacklist), subset to passing cells, run TF-IDF + SVD + UMAP skipping LSI component 1, then derive a gene-activity assay for marker-based annotation.

r
library(Signac); library(Seurat); library(EnsDb.Hsapiens.v86)
library(BSgenome.Hsapiens.UCSC.hg38)

# 1. Load 10X output
counts <- Read10X_h5('outs/filtered_peak_bc_matrix.h5')
metadata <- read.csv('outs/singlecell.csv', row.names=1)

chrom_assay <- CreateChromatinAssay(
    counts=counts,
    sep=c(':', '-'),
    fragments='outs/fragments.tsv.gz',
    annotation=GetGRangesFromEnsDb(EnsDb.Hsapiens.v86),
    genome='hg38')

obj <- CreateSeuratObject(counts=chrom_assay, assay='ATAC', meta.data=metadata)

# 2. Per-cell QC
obj <- NucleosomeSignal(obj)              # Mono/NFR ratio
obj <- TSSEnrichment(obj, fast=FALSE)
obj$pct_reads_in_peaks <- obj$peak_region_fragments / obj$passed_filters * 100
obj$blacklist_ratio <- obj$blacklist_region_fragments / obj$peak_region_fragments

# 3. QC filter (looser per-cell thresholds)
obj <- subset(obj,
    subset = peak_region_fragments > 1000 & peak_region_fragments < 20000 &
             pct_reads_in_peaks > 15 & blacklist_ratio < 0.05 &
             nucleosome_signal < 4 & TSS.enrichment > 4)

# 4. Dimensionality reduction (skip component 1 - it's depth)
obj <- RunTFIDF(obj)
obj <- FindTopFeatures(obj, min.cutoff='q0')
obj <- RunSVD(obj)
obj <- RunUMAP(obj, reduction='lsi', dims=2:30)
obj <- FindNeighbors(obj, reduction='lsi', dims=2:30)
obj <- FindClusters(obj, algorithm=4, resolution=0.5)    # Leiden

# 5. Gene-activity for annotation
gene.activities <- GeneActivity(obj)
obj[['ACT']] <- CreateAssayObject(counts=gene.activities)
DefaultAssay(obj) <- 'ACT'
obj <- NormalizeData(obj, normalization.method='LogNormalize',
                     scale.factor=median(obj$nCount_ACT))

Per-Cluster Pseudobulk Peak Calling

r
# Signac wrapper around MACS3
peaks <- CallPeaks(obj, group.by='seurat_clusters',
                   macs2.path='/path/to/macs3', cleanup=FALSE,
                   format='BED', shift=-75, extsize=150,   # Tn5 cut-site recipe; shift only applies to format='BED'
                   additional.args='-p 0.01')
# Then iterative-overlap consensus across clusters (atac-seq/consensus-peakset)

ArchR Workflow

Goal: Build an ArchR project from fragment files, filter doublets, cluster, and call per-cluster reproducible peaks.

Approach: Create Arrow files with minimum TSS and fragment thresholds, score doublets and filter, run iterative LSI + UMAP + clustering on the TileMatrix, then build per-cluster group coverages and a reproducible peakset via MACS3.

r
library(ArchR)
addArchRGenome('hg38')

# 1. Create Arrow files from fragment files
ArrowFiles <- createArrowFiles(
    inputFiles=c('fragments_rep1.tsv.gz', 'fragments_rep2.tsv.gz'),
    sampleNames=c('rep1', 'rep2'),
    minTSS=4, minFrags=1000,
    addTileMat=TRUE, addGeneScoreMat=TRUE)

# 2. Doublet detection (built-in)
doubletScores <- addDoubletScores(input=ArrowFiles, k=10, knnMethod='UMAP')

# 3. Project + filter
proj <- ArchRProject(ArrowFiles=ArrowFiles, outputDirectory='ArchR_out')
proj <- filterDoublets(proj)

# 4. LSI + UMAP + clustering
proj <- addIterativeLSI(proj, useMatrix='TileMatrix', name='IterativeLSI')
proj <- addClusters(proj, reducedDims='IterativeLSI', method='Seurat', resolution=0.5)
proj <- addUMAP(proj, reducedDims='IterativeLSI')

# 5. Reproducible peakset (per cluster)
proj <- addGroupCoverages(proj, groupBy='Clusters')
proj <- addReproduciblePeakSet(proj, groupBy='Clusters', pathToMacs2='/path/macs3')
proj <- addPeakMatrix(proj)

SnapATAC2 Workflow (Python)

Goal: Run a Python-native scATAC pipeline from fragments through clusters, per-cluster peaks, and gene activity.

Approach: Import fragments to a backed AnnData, compute per-cell TSS enrichment and fragment-size metrics, filter cells, build a tile matrix, run spectral embedding + UMAP + Leiden, call per-cluster peaks via MACS3, and derive a gene-activity matrix.

python
import snapatac2 as snap

# 1. Load 10X fragments. SnapATAC2 uses snap.pp.import_fragments (NOT snap.read_10x, which doesn't exist).
data = snap.pp.import_fragments(
    fragment_file='outs/fragments.tsv.gz',
    chrom_sizes=snap.genome.hg38,
    file='out.h5ad',                        # backed AnnData; backend handled by file path
    sorted_by_barcode=False)
data.obs['sample_id'] = 'rep1'

# 2. Per-cell QC
snap.metrics.tsse(data, gene_anno=snap.genome.hg38)
snap.metrics.frag_size_distr(data)
snap.pp.filter_cells(data, min_counts=1000, min_tsse=4)

# 3. Tile matrix + spectral
snap.pp.add_tile_matrix(data, bin_size=500)
snap.pp.select_features(data, n_features=250000)
snap.tl.spectral(data)
snap.tl.umap(data)
snap.tl.leiden(data)

# 4. Per-cluster peak calling (uses MACS3)
snap.tl.macs3(data, groupby='leiden')

# 5. Gene activity (gene score) for annotation
gene_mat = snap.pp.make_gene_matrix(data, gene_anno=snap.genome.hg38)

Reconciliation Across Tools

PatternLikely causeAction
Signac UMAP shows tight clusters; ArchR UMAP shows looseDifferent LSI implementation; ArchR uses iterative LSI by defaultBoth valid; biology should match in cluster labels
Different tools call different doublet ratesDifferent algorithms (collision vs simulation)Use intersection (cells flagged by 2+ tools) as high-confidence doublets
Cluster boundaries differDifferent clustering algorithm or resolutionStandardize on Leiden algorithm 4 with same resolution
Per-cluster peak count differsDifferent peak callers or pseudobulk depthEnsure same MACS3 parameters; pool small clusters

Operational rule: For high-confidence cell-type annotation, agree across two ecosystems (e.g., Signac + ArchR clusters) and report agreement metrics.

cellranger-atac vs cellranger-arc

PipelineUse forOutput
cellranger-atacSingle-modality 10X scATAC (chemistry v1, v2)per-cell ATAC barcodes; fragments.tsv.gz; per-barcode metadata
cellranger-arc10X Multiome (paired RNA + ATAC same cell, "Multiome chemistry")joint barcodes for RNA + ATAC; separate fragment / count files; one barcode whitelist

Trigger: Loading 10X output without checking which pipeline produced it.

Mechanism: cellranger-atac and cellranger-arc produce different output structures. cellranger-arc fragments.tsv has barcodes paired with the RNA matrix; cellranger-atac fragments are ATAC-only with their own barcode universe.

Fix: Verify the chemistry on the cellranger summary (look for "Multiome" in the run config). Use Read10X_h5 for cellranger-arc Multiome RNA output; use CreateChromatinAssay with the matched fragments for the ATAC. Mixing barcodes across pipelines fails silently.

Cell-Cycle Correction for scATAC

Trigger: Proliferating cell types in the dataset; cells distributed across cell cycle phases.

Mechanism: Replication-associated chromatin opening adds 5-10% global accessibility per cell as it moves G1 -> S -> G2/M; this confounds clustering and DA.

Detection: Score cells with a chromatin-adapted S-phase signature (regulated origin loci, replication-stress-response gene accessibility) analogous to Seurat's CellCycleScoring on RNA. Or compute a Repli-seq peak overlap score.

Fix: Regress S-phase score on the TF-IDF residuals before downstream LSI: ScaleData(obj, vars.to.regress='S.score') analogous to RNA workflow. For DA between cell-cycle-mismatched conditions, add S-phase as covariate in pseudobulk DESeq2.

Sex-Chromosome QC for scATAC

Trigger: Mixed-sex donors in the dataset; sample-swap detection.

Mechanism: XIST locus accessibility is high in female cells (X-inactivation); chrY peak count is essentially zero in females. Per-cell or per-sample, the XIST/chrY ratio identifies sex unambiguously.

Detection: In a per-cell counts matrix, compute fraction of fragments at XIST locus (chrX:73820651-73852753 hg38) and chrY peak count; classify cells; flag cells/samples where assignment disagrees with metadata.

XCI escapees: Genes that escape X-inactivation (KDM6A, DDX3X, EIF1AX) are biallelically accessible in female cells but not male; can be used as additional sex confirmation if XIST is ambiguous.

scArches Reference Mapping

Trigger: Projecting query scATAC onto a reference atlas; cross-study integration without batch effects.

Mechanism: scArches (Lotfollahi 2022) provides transfer-learning to project a new dataset onto an existing reference's latent space without retraining the reference. For ATAC, the relevant model is PEAKVI (Ashuach 2022). PEAKVI lives in scvi-tools (scvi.model.PEAKVI); the load_query_data classmethod implements the scArches algorithm directly, so an explicit import scarches is not required.

python
import scvi

# Pre-trained reference model (e.g. PBMC scATAC atlas)
query_model = scvi.model.PEAKVI.load_query_data(adata_query, reference_path)
query_model.train(max_epochs=200)
adata_query.obsm['X_emb'] = query_model.get_latent_representation()

Reference atlases for ATAC are still emerging; the most-developed are PBMC (Granja 2021) and brain (BRAIN Initiative).

chromBPNet Per-Cluster Pseudobulk

Trigger: Cell-type-specific variant effect prediction; per-cluster bias-corrected calling.

Mechanism: Train chromBPNet (atac-seq/deep-learning-atac) per pseudobulk cluster; outputs are bias-corrected per-base profiles + variant effect predictions specific to that cell type.

Workflow: Aggregate fragments per cluster into pseudobulk BAMs; run chromBPNet pipeline per cluster (~24h GPU per cluster); use the resulting model for in silico variant scoring at GWAS / rare-variant SNPs in that cell type.

For most studies, this is reserved for top 5-10 priority clusters; running chromBPNet per cluster on >20 cell types is computationally heavy.

AMULET Depth Threshold

AMULET reaches maximum recall (~90%) near ~25,000 valid read pairs (~fragments) per cell and degrades sharply below ~15,000-16,000, where the collision-based detection has insufficient power: the expected number of collisions per cell is too small for the binomial test to distinguish doublet from singleton. For lower-depth libraries, use synthetic-doublet methods (ArchR addDoubletScores, scDblFinder) instead.

Multiome WNN Integration (Signac)

Goal: Build a joint RNA + ATAC embedding from a 10X Multiome dataset using Weighted Nearest Neighbors.

Approach: Run per-modality embeddings (PCA on RNA, TF-IDF + SVD on ATAC skipping LSI-1), then use FindMultiModalNeighbors to learn per-cell modality weights and project a joint UMAP.

r
# Assume `obj` has both 'RNA' and 'ATAC' assays from same Multiome experiment
DefaultAssay(obj) <- 'RNA'
obj <- NormalizeData(obj) %>% FindVariableFeatures() %>% ScaleData() %>% RunPCA()

DefaultAssay(obj) <- 'ATAC'
obj <- RunTFIDF(obj) %>% FindTopFeatures(min.cutoff='q0') %>% RunSVD()

# Joint embedding
obj <- FindMultiModalNeighbors(obj, reduction.list=list('pca', 'lsi'),
                               dims.list=list(1:30, 2:30))
obj <- RunUMAP(obj, nn.name='weighted.nn', reduction.name='wnn.umap')

Common Errors

Error / symptomCauseSolution
UMAP shows depth gradientLSI component 1 included in clusteringdims=2:30 instead of 1:30
Cell Ranger output has many low-quality cellscellranger ATAC uses lenient cell callingRe-filter at fragment count >= 1000 + TSS enrichment >= 4
ArchR "TileMatrix not found"Forgot addTileMat=TRUE in createArrowFilesRe-create Arrow files with the flag
Signac CreateChromatinAssay fails on missing fragments filePath to fragments.tsv.gz incorrect; or missing tabix indexProvide full path; run tabix -p bed fragments.tsv.gz
MACS3 fails on tiny pseudobulkCluster too smallUse cluster aggregation; require >= 200 cells per cluster
AMULET reports 100% doubletsThreshold mis-set or input is technical replicatesCheck fragment-count distribution; AMULET needs high depth (recall peaks near ~25K valid read pairs/cell)
Multiome WNN clusters dominated by ATAC noiseEqual modality weightingInspect modality weights; manually adjust if needed
chromVAR / motif assay all NARun before peakset finalizedRe-run AddMotifs / RunChromVAR after peaks stable
EnsDb / BSgenome version mismatchhg38 BSgenome with wrong-build EnsDbMatch builds; EnsDb.Hsapiens.v86 is GRCh38 (Ensembl v86); use EnsDb.Hsapiens.v75 for hg19. Newer hg38 EnsDb releases (v98+) reflect newer GENCODE annotations

References

  • Stuart T et al 2021 Nat Methods 18:1333 (Signac)
  • Granja JM et al 2021 Nat Genet 53:403 (ArchR)
  • Zhang K et al 2024 Nat Methods 21:217 (SnapATAC2)
  • Hao Y et al 2021 Cell 184:3573 (Seurat WNN)
  • Thibodeau A et al 2021 Genome Biol 22:252 (AMULET doublet detection)
  • Germain PL et al 2021 F1000Res 10:979 (scDblFinder)
  • Cusanovich DA et al 2015 Science 348:910 (sciATAC; LSI for sc data)
  • Chen H et al 2019 Genome Biol 20:241 (scATAC analysis benchmark)
  • Heumos L et al 2023 Nat Rev Genet 24:550 (Best practices for single-cell)
  • 10X Genomics Cell Ranger ATAC documentation

Related Skills

  • atac-seq/atac-qc - Bulk QC patterns adapted for per-cell
  • atac-seq/atac-peak-calling - Pseudobulk peak calling per cluster
  • atac-seq/consensus-peakset - Across-cluster consensus
  • atac-seq/differential-accessibility - Pseudobulk DA per cluster
  • atac-seq/motif-deviation - chromVAR for per-cell TF activity
  • atac-seq/footprinting - scprinter for sc footprinting
  • atac-seq/co-accessibility - Cicero for cis-regulatory connections
  • atac-seq/deep-learning-atac - chromBPNet / scBasset for per-cluster bias correction and variant effects
  • atac-seq/enhancer-gene-linking - Per-cell-type enhancer-gene maps
  • atac-seq/allele-specific-accessibility - sc allelic imbalance for cis-effects
  • single-cell/preprocessing - General sc QC patterns
  • single-cell/clustering - Cluster definition
  • single-cell/cell-annotation - Automated reference-based label transfer
  • single-cell/multimodal-integration - Multiome RNA+ATAC integration
  • single-cell/scatac-analysis - Cross-reference single-cell ATAC-specific patterns
  • single-cell/batch-integration - scArches reference mapping; Harmony

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Bio Atac Seq Single Cell Atac AI 技能有什么作用?

使用 Signac、ArchR、SnapATAC2 或 Cell Ranger ATAC 处理和分析单细胞 ATAC-seq 数据。适用于处理 10X scATAC 或 10X Multiome(配对 RNA+ATAC)数据、进行逐细胞 QC、选择 ArchR/Signac/SnapATAC2 工具生态、构建各簇的共识峰集、与配对 scRNA-seq 整合、检测双细胞(AMULET、ArchR 或 scDblFinder),或按簇进行伪汇总差异可及性分析。

为什么在 TypingMind 中使用 Bio Atac Seq Single Cell Atac?

因为您只需安装一次,就能搭配任何模型使用。Bio Atac Seq Single Cell Atac 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Bio Atac Seq Single Cell Atac?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/PKU-YuanGroup/OpenAI4S/tree/main/skills/bioskills/bio-atac-seq-single-cell-atac。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Bio Atac Seq Single Cell Atac?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Bio Atac Seq Single Cell Atac 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Bio Atac Seq Single Cell Atac 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Bio Atac Seq Single Cell Atac AI 技能免费吗?

是的。PKU-YuanGroup 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇