单细胞 | 转录因子足迹分析

数据加载

在本案例中,将采用之前在轨迹构建案例中已经介绍并处理过的数据集。

复制代码
library(Signac)
library(Seurat)

bone <- readRDS("cd34.rds")
DimPlot(bone, label = TRUE)

要执行足迹分析,必须首先向对象中添加Motif 信息,这包括每个Motif 的精确位置。这一过程可以通过使用"motif"和"packages"这两个包中的函数来实现。

复制代码
library(motifmatchr)
library(JASPAR2020)
library(TFBSTools)
library(BSgenome.Hsapiens.UCSC.hg19)

# extract position frequency matrices for the motifs
pwm <- getMatrixSet(
  x = JASPAR2020,
  opts = list(species = 9606, all_versions = FALSE)
)

# add motif information
bone <- AddMotifs(bone, genome = BSgenome.Hsapiens.UCSC.hg19, pfm = pwm)

Motif 足迹分析

现在可以对任何已知位置信息的Motif 进行足迹分析。通常,这会涵盖基因组中所有该Motif 的实例。也可以设置 in.peaks = TRUE 参数,以便只考虑那些位于分析中峰值区域内的Motif 。Footprint() 函数会收集所有必要的数据,并将其保存在分析结果中。之后,可以使用 PlotFootprint() 函数来绘制这些基序的足迹图。

复制代码
# gather the footprinting information for sets of motifs
bone <- Footprint(
  object = bone,
  motif.name = c("GATA2", "CEBPA", "EBF1"),
  genome = BSgenome.Hsapiens.UCSC.hg19
)

# plot the footprint data for each group of cells
p2 <- PlotFootprint(bone, features = c("GATA2", "CEBPA", "EBF1"))

p2 + patchwork::plot_layout(ncol = 1)

本文由mdnice多平台发布

相关推荐
AINative软件工程10 分钟前
Tool Schema 写得好,模型少出错:5 个工程师必知的设计原则
后端·openai
AINative软件工程12 分钟前
AI 写的代码,Review 要怎么改?我们团队的 15 条 PR 检查清单
后端·openai
武子康14 分钟前
Java-21 深入浅出 MyBatis 手写ORM框架2 手写Resources、MappedStatment、XMLBuilder等
java·后端
techdashen31 分钟前
在 Fly.io 上使用 Rust 构建远程开发环境:从 Tokio 到 eBPF
开发语言·后端·rust
摇滚侠1 小时前
Spring 零基础入门到进阶 面向切面 AOP 52-60
java·后端·spring
雪隐1 小时前
AI股票小助手07-TA-Lib 技术指标计算实战
人工智能·后端
掘金者阿豪1 小时前
一本书读懂微积分!
后端
Cosolar2 小时前
深入理解 LangChain Callback 机制:从入门到实战
人工智能·后端·面试
我登哥MVP2 小时前
Spring Boot 从“会用”到“精通”:SpringBoot MVC 请求处理全流程
java·spring boot·后端·spring·mvc·maven·intellij-idea
我登哥MVP2 小时前
Spring Boot 从“会用”到“精通”:ReturnValueHandler原理
java·spring boot·后端·spring·java-ee·maven·intellij-idea