10X单细胞空间联合分析之五----spatialDWLS

今天我们来到了单细胞空间联合分析的第五个部分,可能有部分同学有这样的疑问,为什么要分享和研究这么多的方法, 有一个不就好了么?这个问题,说明你站的高度还需要提升。好了,开始我们今天的分享,单细胞和空间联合分析的方法----spatialDWLS

文章在SpatialDWLS: accurate deconvolution of spatial transcriptomic data,目前处于前发的状态,中国人写的,里面用到的方法也是解卷积,大家要对比之前分享的方法SPOTlight一起对比学习,我们这里关注重点。

基础知识部分

一、为什么不能利用bulk-seq数据解卷积方法,直接对空间转录组数据进行解卷积??
(1)the number of cells within each spot is typically small. For example, each spot in the 10X Genomics Visium platform has the diameter of 55 μm, corresponding to a spatial resolution of 5-10 cells. The application of a bulk RNAseq deconvolution method to such a small sample size would result in noise from unrelated cell types。(noise
(2)as spatial expression datasets usually contain thousands of spots, it would be time and memory consuming if deconvolution methods designed for bulk RNA-seq were applied on spatial expression datasets.(第二个原因还是次要的,主要是第一个)
二、spatialDWLS的分析原理
(1)it identifies cell types that likely to be present at each location by using a recently developed cell-type enrichment analysis method(注意这里用到了一种富集方法,算法中我们探讨一下)。
(2)the cell type composition at each location is inferred by extending the dampened weighted least squares (DWLS) method,which was originally developed for deconvolving bulk RNAseq data(我们先来记住这个简单的过程)。

图片.png

三、spatialDWLS方法的评估
the Root Mean Square Error (RMSE) associated with oligodendrocytes is only 0.03 with the predicted values approximately center around ground-truth。
这里有一个Root Mean Square Error (RMSE),大家可以参考均方根误差
图片.png

可见方法中对之前介绍的SPOTlight进行了比较。

图片.png

这里提一句,文章写肯定自己的方法最好,但是,我们要甄别

四、运用验证,这里就列举其中的一个例子
During embryonic development, the spatial-temporal distribution of cell types changes
dramatically. Therefore, it is of interest to test whether spatialDWLS could aid the discovery of such dynamic changes. Recently, Asp and colleagues studied the development of human heart in early embryos (4.5–5, 6.5, and 9 post-conception weeks) by using the Spatial Transcriptomics (ST) technology。 Since the data does not have single-cell resolution, they were not able to identify cell-type distribution directly from the ST data. In order to apply spatialDWLS, we utilized the single-cell RNAseq derived gene signatures from this study as reference. All the cell types were mapped to expected locations .


图片.png

In order to quantitatively compare the change of spatial-temporal organization of cell type composition during embryonic heart development, we first examined the overall abundance of different cell types


图片.png

有些细胞增多了,有些细胞减少了(联合分析的结果看),总之,结果很好,大家尝试(作者的观点)。

这里我们要重点关注一点文章的方法了。

Cell type selection of spatial expression data by enrichment analysis We use an enrichment based weighted least squares approach for deconvolution of spatial

expression datasets
(1)enrichment analysis using Parametric Analysis of Gene Set Enrichment (PAGE) method22 is applied on spatial expression dataset as previously reported。这里的富集方法就是GSEA。The marker genes can be identified via differential expression gene analysis of Giotto based on the single cell RNA-seq data provided by users(单细胞数据提供的marker,感觉有点Low,)。Alternatively, users can also provide marker gene expression for each cell type for deconvolution.(或者自己提供marker,更扯了)。
细胞marker gene的数量为m,对于每个基因,我们将倍数变化计算为每个点的表达值与所有点的平均表达之比,The mean and standard deviation of the fold change values are defined as μ and δ, respectively.In addition, we calculate the mean fold change of the m marker genes, which is defined as Sm. The enrichment score (ES) is defined as follows:


图片.png

Then, we binarize the enrichment matrix with the cutoff value of ES = 2 to select cell types that are likely to be present at each point.
恕我直言,这个富集方法,很飘啊。

Estimating cell type composition by using a weighted least squares approach

In previous work, we developed dampened weighted least squares (DWLS) for deconvolution of single-cell RNAseq data.(这个方法大家可以查一下),This method is extended here to deconvolve spatial transcriptomic data using the signature gene identification step described above. In short, DWLS uses a weighted least squares approach to infer cell-type composition, where the weight is selected to minimize the overall relative error rate. In addition, a damping constant d is used to enhance numerical stability, whose value is determined by using a cross-validation procedure. Here, we use the same sets of weights and damping constant across spots within same clusters to reduce technical variation. Finally, since the number of cells present at each spot is generally small, we perform another round deconvolution by remove those cell types that are predicted to present at a low frequency by imposing an additional thresholding (min frequency = 0.02 by default).(这个地方还是需要涉及到算法,大家可以深入)。

最后来一张效果图


图片.png

这个方法在spatialDWLS,代码都很简单,只需要关注一个函数runDWLSDeconv,算法才是精髓。

生活很好,有你更好1

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
禁止转载,如需转载请通过简信或评论联系作者。
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 215,923评论 6 498
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,154评论 3 392
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 161,775评论 0 351
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 57,960评论 1 290
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 66,976评论 6 388
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 50,972评论 1 295
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,893评论 3 416
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,709评论 0 271
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,159评论 1 308
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,400评论 2 331
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,552评论 1 346
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,265评论 5 341
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,876评论 3 325
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,528评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,701评论 1 268
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,552评论 2 368
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,451评论 2 352

推荐阅读更多精彩内容