Seurat教程:整合刺激性和对照性PBMC数据集以学习细胞类型特异性反应

本教程介绍了Kang等人(2017)的两组PBMC的对齐方式。在该实验中,将PBMC分为刺激组和对照组,并用干扰素β治疗刺激组。对干扰素的反应引起细胞类型特异性基因表达的变化,这使得对所有数据进行联合分析变得困难,并且细胞按刺激条件和细胞类型聚类。在这里,我们证明了我们的整合策略,如Stuart和Butler等人(2018年)所述,用于执行整合分析以促进常见细胞类型的鉴定并进行比较分析。尽管此示例演示了两个数据集(条件)的集成,但是这些方法已扩展到多个数据集。这个工作流程 提供了整合四个胰岛数据集的示例。

整合目标

以下教程旨在概述使用Seurat集成过程可能进行的复杂细胞类型的比较分析。在这里,我们解决了三个主要目标:

  • 识别两个数据集中都存在的单元格类型
  • 获得在对照和刺激细胞中均保守的细胞类型标记
  • 比较数据集以查找对刺激的细胞类型特异性反应

设置Seurat对象

基因表达矩阵可以在这里找到。我们首先读取两个计数矩阵并设置Seurat对象。

library(Seurat)
library(cowplot)
ctrl.data <- read.table(file = "../data/immune_control_expression_matrix.txt.gz", sep = "\t")
stim.data <- read.table(file = "../data/immune_stimulated_expression_matrix.txt.gz", sep = "\t")

# Set up control object
ctrl <- CreateSeuratObject(counts = ctrl.data, project = "IMMUNE_CTRL", min.cells = 5)
ctrl$stim <- "CTRL"
ctrl <- subset(ctrl, subset = nFeature_RNA > 500)
ctrl <- NormalizeData(ctrl, verbose = FALSE)
ctrl <- FindVariableFeatures(ctrl, selection.method = "vst", nfeatures = 2000)

# Set up stimulated object
stim <- CreateSeuratObject(counts = stim.data, project = "IMMUNE_STIM", min.cells = 5)
stim$stim <- "STIM"
stim <- subset(stim, subset = nFeature_RNA > 500)
stim <- NormalizeData(stim, verbose = FALSE)
stim <- FindVariableFeatures(stim, selection.method = "vst", nfeatures = 2000)

执行整合

然后,我们使用FindIntegrationAnchors函数识别锚点,该函数将Seurat对象的列表作为输入,并使用这些锚点将两个数据集与集成在一起IntegrateData

immune.anchors <- FindIntegrationAnchors(object.list = list(ctrl, stim), dims = 1:20)
immune.combined <- IntegrateData(anchorset = immune.anchors, dims = 1:20)

进行综合分析

现在,我们可以在所有单元上运行单个集成分析!

DefaultAssay(immune.combined) <- "integrated"

# Run the standard workflow for visualization and clustering
immune.combined <- ScaleData(immune.combined, verbose = FALSE)
immune.combined <- RunPCA(immune.combined, npcs = 30, verbose = FALSE)
# t-SNE and Clustering
immune.combined <- RunUMAP(immune.combined, reduction = "pca", dims = 1:20)
immune.combined <- FindNeighbors(immune.combined, reduction = "pca", dims = 1:20)
immune.combined <- FindClusters(immune.combined, resolution = 0.5)
# Visualization
p1 <- DimPlot(immune.combined, reduction = "umap", group.by = "stim")
p2 <- DimPlot(immune.combined, reduction = "umap", label = TRUE)
plot_grid(p1, p2)
image.png

为了并排可视化这两个条件,我们可以使用split.by参数来显示每个以聚类着色的条件。

DimPlot(immune.combined, reduction = "umap", split.by = "stim")
image.png

识别保守的细胞类型标记

为了确定跨条件保守的规范细胞类型标记基因,我们提供了该FindConservedMarkers功能。此功能对每个数据集/组执行差异基因表达测试,并使用MetaDE R软件包中的荟萃分析方法组合p值。例如,无论簇7中的刺激条件如何,我们都可以计算出保守标记的基因(NK细胞)。

DefaultAssay(immune.combined) <- "RNA"
nk.markers <- FindConservedMarkers(immune.combined, ident.1 = 7, grouping.var = "stim", verbose = FALSE)
head(nk.markers)
##        CTRL_p_val CTRL_avg_logFC CTRL_pct.1 CTRL_pct.2 CTRL_p_val_adj
## GNLY            0       4.186117      0.943      0.046              0
## NKG7            0       3.164712      0.953      0.085              0
## GZMB            0       2.915692      0.839      0.044              0
## CLIC3           0       2.407695      0.601      0.024              0
## FGFBP2          0       2.241968      0.500      0.021              0
## CTSW            0       2.088278      0.537      0.030              0
##           STIM_p_val STIM_avg_logFC STIM_pct.1 STIM_pct.2 STIM_p_val_adj
## GNLY    0.000000e+00       4.033650      0.955      0.061   0.000000e+00
## NKG7    0.000000e+00       2.914724      0.952      0.082   0.000000e+00
## GZMB    0.000000e+00       3.142391      0.898      0.061   0.000000e+00
## CLIC3   0.000000e+00       2.470769      0.629      0.031   0.000000e+00
## FGFBP2 9.524349e-156       1.483922      0.259      0.016  1.338457e-151
## CTSW    0.000000e+00       2.196390      0.604      0.035   0.000000e+00
##             max_pval minimump_p_val
## GNLY    0.000000e+00              0
## NKG7    0.000000e+00              0
## GZMB    0.000000e+00              0
## CLIC3   0.000000e+00              0
## FGFBP2 9.524349e-156              0
## CTSW    0.000000e+00              0

我们可以为每个簇探索这些标记基因,并使用它们将我们的簇注释为特定的细胞类型。

FeaturePlot(immune.combined, features = c("CD3D", "SELL", "CREM", "CD8A", "GNLY", "CD79A", "FCGR3A", 
    "CCL2", "PPBP"), min.cutoff = "q9")
image.png
immune.combined <- RenameIdents(immune.combined, `0` = "CD14 Mono", `1` = "CD4 Naive T", `2` = "CD4 Memory T", 
    `3` = "CD16 Mono", `4` = "B", `5` = "CD8 T", `6` = "T activated", `7` = "NK", `8` = "DC", `9` = "B Activated", 
    `10` = "Mk", `11` = "pDC", `12` = "Eryth", `13` = "Mono/Mk Doublets")

DimPlot(immune.combined, label = TRUE)
image.png

DotPlot带有split.by参数的函数可用于跨条件查看保守的细胞类型标记,显示表达水平和表达任何给定基因的簇中细胞的百分比。在这里,我们为13个簇中的每一个绘制2-3个强标记基因。

Idents(immune.combined) <- factor(Idents(immune.combined), levels = c("Mono/Mk Doublets", "pDC", 
    "Eryth", "Mk", "DC", "CD14 Mono", "CD16 Mono", "B Activated", "B", "CD8 T", "NK", "T activated", 
    "CD4 Naive T", "CD4 Memory T"))
markers.to.plot <- c("CD3D", "CREM", "HSPH1", "SELL", "GIMAP5", "CACYBP", "GNLY", "NKG7", "CCL5", 
    "CD8A", "MS4A1", "CD79A", "MIR155HG", "NME1", "FCGR3A", "VMO1", "CCL2", "S100A9", "HLA-DQA1", 
    "GPR183", "PPBP", "GNG11", "HBA2", "HBB", "TSPAN13", "IL3RA", "IGJ")
DotPlot(immune.combined, features = rev(markers.to.plot), cols = c("blue", "red"), dot.scale = 8, 
    split.by = "stim") + RotatedAxis()
image.png

确定跨条件的差异表达基因

现在,我们已经将刺激细胞与对照细胞对齐,我们可以开始进行比较分析,并观察刺激引起的差异。广泛观察这些变化的一种方法是绘制受刺激细胞和对照细胞的平均表达,并在散点图上寻找视觉异常值的基因。在这里,我们采用受刺激的和对照的原始T细胞和CD14单核细胞群体的平均表达,并生成散点图,突出显示对干扰素刺激表现出戏剧性反应的基因。

t.cells <- subset(immune.combined, idents = "CD4 Naive T")
Idents(t.cells) <- "stim"
avg.t.cells <- log1p(AverageExpression(t.cells, verbose = FALSE)$RNA)
avg.t.cells$gene <- rownames(avg.t.cells)

cd14.mono <- subset(immune.combined, idents = "CD14 Mono")
Idents(cd14.mono) <- "stim"
avg.cd14.mono <- log1p(AverageExpression(cd14.mono, verbose = FALSE)$RNA)
avg.cd14.mono$gene <- rownames(avg.cd14.mono)

genes.to.label = c("ISG15", "LY6E", "IFI6", "ISG20", "MX1", "IFIT2", "IFIT1", "CXCL10", "CCL8")
p1 <- ggplot(avg.t.cells, aes(CTRL, STIM)) + geom_point() + ggtitle("CD4 Naive T Cells")
p1 <- LabelPoints(plot = p1, points = genes.to.label, repel = TRUE)
p2 <- ggplot(avg.cd14.mono, aes(CTRL, STIM)) + geom_point() + ggtitle("CD14 Monocytes")
p2 <- LabelPoints(plot = p2, points = genes.to.label, repel = TRUE)
plot_grid(p1, p2)
image.png

如您所见,在这两种细胞类型中,许多相同的基因均被上调,并且可能代表保守的干扰素应答途径。

因为我们有信心确定出跨条件的常见细胞类型,所以我们可以询问相同条件下不同条件下哪些基因会发生变化。首先,我们在meta.data插槽中创建一列,以保存单元格类型和刺激信息,并将当前标识切换到该列。然后,我们使用它FindMarkers来找到受刺激的B细胞和对照B细胞之间不同的基因。请注意,此处显示的许多顶级基因与我们之前绘制的核心干扰素反应基因相同。此外,我们看到的诸如CXCL10的基因对单核细胞和B细胞干扰素的反应也具有特异性,在该列表中也显示出很高的意义。

immune.combined$celltype.stim <- paste(Idents(immune.combined), immune.combined$stim, sep = "_")
immune.combined$celltype <- Idents(immune.combined)
Idents(immune.combined) <- "celltype.stim"
b.interferon.response <- FindMarkers(immune.combined, ident.1 = "B_STIM", ident.2 = "B_CTRL", verbose = FALSE)
head(b.interferon.response, n = 15)
##                 p_val avg_logFC pct.1 pct.2     p_val_adj
## ISG15   8.611499e-155 3.1934171 0.998 0.236 1.210174e-150
## IFIT3   1.319470e-150 3.1195144 0.965 0.053 1.854251e-146
## IFI6    4.716672e-148 2.9264004 0.964 0.078 6.628339e-144
## ISG20   1.061563e-145 2.0390802 1.000 0.664 1.491814e-141
## IFIT1   1.830963e-136 2.8706318 0.909 0.030 2.573053e-132
## MX1     1.775606e-120 2.2540787 0.909 0.118 2.495259e-116
## LY6E    2.824749e-116 2.1460522 0.896 0.153 3.969620e-112
## TNFSF10 4.227184e-109 2.6372382 0.785 0.020 5.940461e-105
## IFIT2   4.627440e-106 2.5102230 0.789 0.038 6.502941e-102
## B2M      1.344345e-94 0.4193618 1.000 1.000  1.889208e-90
## PLSCR1   5.170871e-94 1.9769476 0.794 0.113  7.266624e-90
## IRF7     1.451494e-92 1.7994058 0.838 0.190  2.039785e-88
## CXCL10   6.201621e-84 3.6906104 0.650 0.010  8.715138e-80
## UBE2L6   1.324818e-81 1.4879509 0.854 0.301  1.861767e-77
## PSMB9    1.098134e-76 1.1378896 0.940 0.571  1.543208e-72

可视化基因表达中这些变化的另一种有用方法是split.by选择FeaturePlotVlnPlot功能。这将显示给定基因列表的FeaturePlots,并按分组变量(此处为刺激条件)进行划分。诸如CD3D和GNLY的基因是典型的细胞类型标记(对于T细胞和NK / CD8 T细胞),实际上不受干扰素刺激的影响,并且在对照组和受刺激组中显示出相似的基因表达模式。另一方面,IFI6和ISG15是核心干扰素反应基因,因此在所有细胞类型中均被上调。最后,CD14和CXCL10是显示细胞类型特异性干扰素应答的基因。CD14单核细胞受刺激后,CD14表达下降,这可能导致在有监督的分析框架中进行错误分类,从而强调了整合分析的价值。

FeaturePlot(immune.combined, features = c("CD3D", "GNLY", "IFI6"), split.by = "stim", max.cutoff = 3, 
    cols = c("grey", "red"))
image.png
plots <- VlnPlot(immune.combined, features = c("LYZ", "ISG15", "CXCL10"), split.by = "stim", group.by = "celltype", 
    pt.size = 0, combine = FALSE)
CombinePlots(plots = plots, ncol = 1)
image.png

你可能感兴趣的:(Seurat教程:整合刺激性和对照性PBMC数据集以学习细胞类型特异性反应)