10X空間轉(zhuǎn)錄組數(shù)據(jù)分析之思路總結(jié)(針對(duì)腫瘤樣本)

hello,大家好,今天我們來(lái)分享一下有關(guān)空間轉(zhuǎn)錄組研究腫瘤樣本切片的一些思路糯而,主要的參考文獻(xiàn)是Comprehensive Analysis of Spatial Architecture in Primary Liver Cancer蛛砰,里面的方法都很經(jīng)典芍殖,值得我們多多關(guān)注,關(guān)于文獻(xiàn)的分析內(nèi)容呢外厂,大家感興趣可以看一看冕象,我們這里呢就總結(jié)方法思路,希望大家能用的到汁蝶,我們逐步來(lái)分析

第一部分渐扮、取樣论悴,腫瘤樣本的切片取樣這個(gè)也很有講究,如下圖墓律。(客戶(hù)的切片是不可以展示的膀估,我這里采用了文獻(xiàn)的切片)。

圖片.png

采用切片的思路就是三部分都要取到耻讽,1察纯、正常區(qū)域、2针肥、腫瘤區(qū)域捐寥、3、邊界區(qū)域祖驱,三者必不可少握恳。但是更加建議的是一個(gè)冷凍塊至少切三個(gè)片,分別是捺僻,只有正常區(qū)域的切片乡洼、只有腫瘤區(qū)域的切片和包含正常腫瘤區(qū)域的切片,這樣包含的信息最為全面匕坯。如下圖:

圖片.png

第二部分束昵,空間轉(zhuǎn)錄組的基本分析,這個(gè)地方也需要各位注意葛峻,重點(diǎn)的地方我加粗

For the gene-spot matrixes generated by Space Ranger, some routine statistical analyses were performed firstly, including calculating the number of the detected UMIs (nUMI), and genes (nGene) in each spot. Based on them, the basic quality controls (QC) were applied on the data. In detail, the spots with extremely low nUMI or nGene (outliers), and the spots isolated from the main tissue sections were removed. The genes expressed in less than 3 spots, and mitochondrial, ribosomal genes were filtered. 其實(shí)個(gè)人建議不要去除锹雏,不過(guò)具體情況具體分析,不能干擾下游分析的真實(shí)性术奖。

第三部分礁遵,空間轉(zhuǎn)錄組數(shù)據(jù)的整合分析

After QC, we used the R package harmony (v1.0) (30) to integrate the expression data from different sections of each patient, and used the Seurat package (v3.1.5) to perform the basic downstream analysis and visualization. In detail, we firstly combined the expression matrixes of each patient’s all sections, and performed normalization, log-transformation, centering and scaling on them. Next, we identified 2,000 highly variable genes according to their expression means and variances. Based on them, principal components analysis (PCA) was performed to project the spots into a low-dimensional space, which was defined by the first 20 principal components (PCs). Then, by setting the section source as the batch factor and using the “RunHarmony” function, we iteratively corrected the spots’ low-dimensional PC representation to reduce the of impact of batch effect. After this step, the corrected PC matrixes were used to perform unsupervised shared-nearest-neighbor-based clustering and UMAP (uniform manifold approximation and projection) visualization analysis further. And to compare the clusters at gene level, we identified differentially expressed genes of the all or selected clusters by using fold-change analysis and Wilcoxon Rank Sum test with Bonferroni correction.

第三部分這個(gè)地方大家應(yīng)該都很熟悉了吧,就是單細(xì)胞做harmony矯正的做法采记,這個(gè)地方?jīng)]做過(guò)的面壁反思一下佣耐。

第四部分,Cluster similarity analysis唧龄,這個(gè)也是一個(gè)比較常規(guī)的點(diǎn)兼砖,不過(guò)一般都是10X單細(xì)胞數(shù)據(jù)在用,整合分析之后每個(gè)cluster會(huì)包含不同的樣本既棺,在每個(gè)切片上的空間位置也千差萬(wàn)別讽挟,不過(guò)能聚類(lèi)到一起,說(shuō)明表達(dá)相似丸冕,這里的工作就是比較這些cluster的相關(guān)性耽梅。

For the clusters from different patients, we represented them by their spots’ average expression profiles (the log-transformed normalization values). To reduce the impact of extreme values, we excluded some outlier spots in advance, whose first three PC values beyond the range of the mean±3*standard deviation of the cluster they belonged to. Moreover, only the genes with the mean above 0.1 and the variance above 0.05 across all the cluster expression vectors were retained for the downstream comparison analyses 這個(gè)地方還是很值得注意的,剔除異常值采用的是whose first three PC values beyond the range of the mean±3*standard deviation of the cluster they belonged to晨仑,表示很贊用褐墅。
To measure the clusters’ similarities across patients, we preformed two types of analyses, hierarchical clustering and low-dimensional projection. In detail, we firstly applied PCA on the centered and scaled clusters’ average expression profiles, and used the first five PCs to perform hierarchical clustering拆檬,這里的層次聚類(lèi)采用了前五個(gè)PC,這樣的層次聚類(lèi)大家可以學(xué)一學(xué).
圖片.png

層次聚類(lèi)圖上的信息也很豐富妥凳,colorbar采用的是平均值竟贯。

Besides, the diffusion map was used to project clusters of different patients into a two-dimension space (the first two diffusion components) based on the package destiny (34) with default parameter setting

圖片.png

For convenience of comparison, we annotated each cluster with a region label (normal, stromal, or tumor), which was decided by integrating the information of the cluster’s marker genes and H&E staining images.也是非常好的一個(gè)點(diǎn),明顯diffusion map 的結(jié)果具有區(qū)域性逝钥,相同的區(qū)域一般聚集在一起屑那。

第五部分,Cell type scoring by a signature-based strategy

At the current Visium ST resolution, each spot may contain approximately 8-20 cells, so that we couldn’t assign a certain cell type for each spot.(這也是限制10X空間轉(zhuǎn)錄組發(fā)展的最大原因)艘款。Considering this, to compare the distribution of cell types across the tissue sections, we proposed a signature-based strategy to score the cell type enrichments in each spot.(marker gene的富集持际,這個(gè)方式我在我的公開(kāi)課上提到過(guò),marker gene富集的方式看看各個(gè)地方的細(xì)胞類(lèi)型的富集程度).
做marker gene富集的步驟哗咆,我們來(lái)看一下文章是怎么做的
第一步蜘欲,we curated a set of gene signatures of common cell types in liver cancer based on the Xcell signatures and biology prior knowledge(找marker gene)
圖片.png
第二步,很關(guān)鍵晌柬,Then, we defined the average log-transformed normalization expression values of the genes in the signature as the corresponding cell type scores.(這個(gè)富集分?jǐn)?shù)的計(jì)算方式姥份,讓我猝不及防~~~~~??)。
第三步年碘,Taking advantage of these scores, the cell type relative enrichment degree across different tissue regions can be compared.(嗯澈歉,梯度比較,這個(gè)就比較正常了)屿衅。By testing on some single cell RNA-seq datasets of liver cancer, we proved that our curated gene signatures had high sensitivity and specificity.(marker gene的驗(yàn)證確實(shí)很重要)埃难。
后面作者還進(jìn)行了MIA的分析模式,關(guān)于MIA這里就不展開(kāi)講了涤久,大家可以參考我的文章MIA用于單細(xì)胞和空間的聯(lián)合分析涡尘。which determined the cell type enrichment degrees by performing hypergeometric test on the overlap between the tissue region-specific genes of ST data and the cell type-specific genes of single cell data.
Here, we took advantage of cell type annotation and differential expression gene results of a liver cancer single cell dataset and performed MIA on the clusters of our ST data, so that we can use the p-values of hypergeometric test to measure the enrichment of different cell types in each cluster(下圖C)
圖片.png
By comparing these enrichment degrees and the mean values of our signature-based cell type scores of the all ST clusters, we observed generally high correlation(上圖D)。which proved the reliability of our signature-based cell type scoring method. At the same time, it had the advantage of not requiring single cell data, which was more flexible.

第六部分拴竹,Intratumor spatial heterogeneity measurement 悟衩,衡量空間異質(zhì)性剧罩。兩個(gè)思路transcriptome diversity degree and spatial continuity degree栓拜,我們?cè)敿?xì)看一看。

transcriptome diversity degree,這個(gè)地方有點(diǎn)東西

For the transcriptome diversity degree, we firstly calculated the Pearson correlation coefficients between each pair of tumor region spots based on the highly variable genes.(首先計(jì)算每個(gè)spot的Pearson的相關(guān)性).然后我們將樣本的轉(zhuǎn)錄組多樣性程度定義為這些相關(guān)性的中值絕對(duì)偏差(MAD)的 1.4826 倍惠昔,這是標(biāo)準(zhǔn)偏差的近似值幕与,但可以避免異常值的影響 。該度量越大意味著樣本腫瘤點(diǎn)之間的相似性具有更大的方差,使樣本具有更高的瘤內(nèi)異質(zhì)性镇防。 公式化地啦鸣,它可以計(jì)算為
圖片.png
where ei indicated the expression vector of the tumor region spot i, and the MAD was defined as
圖片.png

spatial continuity degree

first compared the cluster identities of each tumor region spot with its six neighbor spots
Then the total fraction of the neighbor spots with the same cluster identity was defined as the spatial continuity degree.(然后將具有相同簇標(biāo)識(shí)的相鄰點(diǎn)的總分?jǐn)?shù)定義為空間連續(xù)度。)来氧。該指標(biāo)測(cè)量了腫瘤區(qū)域的空間異質(zhì)性诫给。
The larger this metric meant the sample’s tumor region more tended to be block-like (higher spatial continuity degree and lower spatial mixed degree). Formulaically, it can be calculated as
圖片.png
where i indicated a tumor region spot, and I() was the indicative function.

第七部分香拉,GSVA分析,這部分大家應(yīng)該都知道才對(duì)

In detail, the log-transformed normalization expression matrix of tumor spots was inputted into the “gsva” function with the default parameters setting.
to compare the tumor clusters across patients at pathway level, we averaged the resulting GSVA score matrixes over each cluster and performed hierarchical clustering on them with Ward's minimum variance method (這部分相對(duì)簡(jiǎn)單)中狂。
圖片.png

第八部分凫碌,Spatial gradient change analysis,這個(gè)很重要

The spatial gradient distributions of hallmark pathway activities were analyzed on our leading-edge samples (L-sections) and the intact HCC nodule (HCC-5).
For the leading-edge samples, we focused on analyzing the gradient changes from capsules or tumor-normal boundary lines to the both tumor and normal sides.(正常區(qū)域向腫瘤區(qū)域過(guò)度的地方)胃榕。
we divided the normal and tumor regions into continuous zones parallel to the shape of the boundary lines at intervals of 5 spots(有點(diǎn)意思)盛险。And the gradient changes along these zones were analyzed。
圖片.png

第九部分勋又,空間通訊分析Cluster interaction analysis

這里作者做通訊分析只做臨近c(diǎn)luster的通訊分析苦掘,F(xiàn)or each pair of neighbor tumor clusters, we selected their interface regions with 4 spots wide (2 spots wide for each cluster) and excluded the spots identified as stromal clusters(看來(lái)也不是盲目的全部選擇,體現(xiàn)了空間做通訊位置的重要性)。

圖片.png

方法就是cellphoneDB

圖片.png

第10部分楔壤,Copy number variation (CNV) comparison analysis

作者直接用空間數(shù)據(jù)做inferCNV鹤啡,結(jié)果么,文獻(xiàn)的結(jié)果很符合實(shí)際蹲嚣。
圖片.png

生活很好揉忘,等你超越

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
禁止轉(zhuǎn)載,如需轉(zhuǎn)載請(qǐng)通過(guò)簡(jiǎn)信或評(píng)論聯(lián)系作者端铛。
  • 序言:七十年代末泣矛,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子禾蚕,更是在濱河造成了極大的恐慌您朽,老刑警劉巖,帶你破解...
    沈念sama閱讀 206,013評(píng)論 6 481
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件换淆,死亡現(xiàn)場(chǎng)離奇詭異哗总,居然都是意外死亡,警方通過(guò)查閱死者的電腦和手機(jī)倍试,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,205評(píng)論 2 382
  • 文/潘曉璐 我一進(jìn)店門(mén)讯屈,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái),“玉大人县习,你說(shuō)我怎么就攤上這事涮母。” “怎么了躁愿?”我有些...
    開(kāi)封第一講書(shū)人閱讀 152,370評(píng)論 0 342
  • 文/不壞的土叔 我叫張陵叛本,是天一觀的道長(zhǎng)。 經(jīng)常有香客問(wèn)我彤钟,道長(zhǎng)来候,這世上最難降的妖魔是什么? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 55,168評(píng)論 1 278
  • 正文 為了忘掉前任逸雹,我火速辦了婚禮营搅,結(jié)果婚禮上云挟,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 64,153評(píng)論 5 371
  • 文/花漫 我一把揭開(kāi)白布礼烈。 她就那樣靜靜地躺著,像睡著了一般俊庇。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上鸡挠,一...
    開(kāi)封第一講書(shū)人閱讀 48,954評(píng)論 1 283
  • 那天辉饱,我揣著相機(jī)與錄音,去河邊找鬼拣展。 笑死彭沼,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的备埃。 我是一名探鬼主播姓惑,決...
    沈念sama閱讀 38,271評(píng)論 3 399
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼按脚!你這毒婦竟也來(lái)了于毙?” 一聲冷哼從身側(cè)響起,我...
    開(kāi)封第一講書(shū)人閱讀 36,916評(píng)論 0 259
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤辅搬,失蹤者是張志新(化名)和其女友劉穎唯沮,沒(méi)想到半個(gè)月后,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體堪遂,經(jīng)...
    沈念sama閱讀 43,382評(píng)論 1 300
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡介蛉,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 35,877評(píng)論 2 323
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了溶褪。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片币旧。...
    茶點(diǎn)故事閱讀 37,989評(píng)論 1 333
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖猿妈,靈堂內(nèi)的尸體忽然破棺而出吹菱,到底是詐尸還是另有隱情,我是刑警寧澤于游,帶...
    沈念sama閱讀 33,624評(píng)論 4 322
  • 正文 年R本政府宣布毁葱,位于F島的核電站,受9級(jí)特大地震影響贰剥,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜筷频,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,209評(píng)論 3 307
  • 文/蒙蒙 一蚌成、第九天 我趴在偏房一處隱蔽的房頂上張望前痘。 院中可真熱鬧,春花似錦担忧、人聲如沸芹缔。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 30,199評(píng)論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)最欠。三九已至,卻和暖如春惩猫,著一層夾襖步出監(jiān)牢的瞬間芝硬,已是汗流浹背。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 31,418評(píng)論 1 260
  • 我被黑心中介騙來(lái)泰國(guó)打工轧房, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留拌阴,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 45,401評(píng)論 2 352
  • 正文 我出身青樓奶镶,卻偏偏與公主長(zhǎng)得像迟赃,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子厂镇,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 42,700評(píng)論 2 345

推薦閱讀更多精彩內(nèi)容