一键导入
archr
R package for single-cell ATAC-seq analysis. Use for chromatin accessibility analysis, peak calling, motif enrichment, and integration with gene expression.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
R package for single-cell ATAC-seq analysis. Use for chromatin accessibility analysis, peak calling, motif enrichment, and integration with gene expression.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Maintain this specific academic website repo safely and consistently. Use this skill whenever the user asks to update, review, polish, reorganize, or extend this website, especially when the request touches homepage identity statements, publications, CV assets, shared templates, or duplicated academic content.
Delegate coding tasks to Claude Code (Anthropic's CLI agent). Use for building features, refactoring, PR reviews, and iterative coding. Requires the claude CLI installed.
Delegate coding tasks to OpenAI Codex CLI agent. Use for building features, refactoring, PR reviews, and batch issue fixing. Requires the codex CLI and a git repository.
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.
Complete guide to using and extending Hermes Agent — CLI usage, setup, configuration, spawning additional agents, gateway platforms, skills, voice, tools, profiles, and a concise contributor reference. Load this skill when helping users configure Hermes, troubleshoot issues, spawn agent instances, or make code contributions.
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
| name | archr |
| domain | compbio |
| description | R package for single-cell ATAC-seq analysis. Use for chromatin accessibility analysis, peak calling, motif enrichment, and integration with gene expression. |
| license | MIT license |
| metadata | {"skill-author":"Eric Yiru"} |
ArchR is a powerful R package for analyzing single-cell ATAC-seq (Assay for Transposase-Accessible Chromatin sequencing) data. It provides a complete workflow from raw reads to interpretation, including dimensionality reduction, clustering, peak calling, motif analysis, and integration with gene expression data.
This skill should be used when:
# Install ArchR
install.packages("ArchR")
# Or from GitHub
devtools::install_github("GreenleafLab/ArchR", ref="master")
# Install dependencies
install.packages("BSgenome.Hsapiens.UCSC.hg38")
library(ArchR)
library(ggplot2)
library(dplyr)
# Set genome
addArchRGenome("hg38")
# Create input files
inputFiles <- c(
"sample1" = "path/to/sample1.fragments.tsv.gz",
"sample2" = "path/to/sample2.fragments.tsv.gz"
)
# Create Arrow files
ArrowFiles <- createArrowFiles(
inputFiles = inputFiles,
sampleNames = names(inputFiles),
filterTSS = 4, # Minimum TSS enrichment
filterFrags = 1000, # Minimum fragments
addTileMat = TRUE, # Add tile matrix
addGeneScoreMat = TRUE # Add gene score matrix
)
# Create ArchR project
proj <- ArchRProject(
ArrowFiles = ArrowFiles,
outputDirectory = "ArchR_Project"
)
# Add dimensionality reduction
proj <- addIterativeLSA(
ArchRProj = proj,
useMatrix = "TileMatrix",
name = "IterativeLSI",
clusterParams = list(
resolution = c(0.2, 0.4, 0.8),
sampleCells = 10000,
n.start = 10
)
)
# Add clusters
proj <- addClusters(
input = proj,
reducedDims = "IterativeLSI",
method = "Seurat",
name = "Clusters",
resolution = 0.8
)
# Add UMAP
proj <- addUMAP(
ArchRProj = proj,
reducedDims = "IterativeLSI",
name = "UMAP",
minDist = 0.3,
metric = "cosine"
)
# Plot
p1 <- plotEmbedding(ArchRProj = proj, colorBy = "cellColData", name = "Clusters")
# Find marker peaks
markersPeaks <- getMarkerFeatures(
ArchRProj = proj,
useMatrix = "PeakMatrix",
groupBy = "Clusters",
bias = c("TSSEnrichment", "log10(nFrags)"),
testMethod = "wilcoxon"
)
# View top markers
markerList <- getMarkers(markersPeaks, returnGRanges = TRUE)
# Gene score track
p2 <- plotEmbedding(
proj,
colorBy = "GeneScoreMatrix",
name = c("CD4", "CD8A"),
embedding = "UMAP"
)
# Add peak matrix
proj <- addPeaks(
proj,
groupBy = "Clusters",
cutOff = 0.05,
extend = -500
)
# Or with MACS2 (requires installation)
proj <- addPeaks(
proj,
groupBy = "Clusters",
method = "macs2",
macs2Path = "path/to/macs2"
)
# Annotate peaks
proj <- addPeakAnnotations(
proj,
resources = ArchRResources,
names = "Motifs",
analysis = "motifEnrichment"
)
# Create gene expression matrix from ATAC
# (in absence of scRNA-seq)
proj <- addGeneIntegrationMatrix(
ArchRProj = proj,
useMatrix = "GeneScoreMatrix",
nameX = "predictedRNA",
nameY = "RNA",
reduceDims = "IterativeLSI"
)
# Integration with Seurat
library(Seurat)
# Export ArchR to Seurat
atac <- ArchRtoSeurat(proj)
# Standard Seurat integration
atac <- RunPCA(atac)
atac <- RunUMAP(atac, dims = 1:30)
atac <- FindNeighbors(atac)
atac <- FindClusters(atac)
# Export to IGV
exportToBrowser(
ArchRProj = proj,
exportAs = "bedGraph",
peaks = TRUE,
folder = "Browser"
)
# Marker peak heatmap
heatmapPeaks <- markerHeatmap(
markersPeaks,
cutOff = 5,
nLabel = 10
)
filterTSS: Minimum TSS enrichment (default: 4)filterFrags: Minimum fragment count (default: 1000)addTileMat: Add tile matrix (default: TRUE)addGeneScoreMat: Add gene score matrix (default: TRUE)