細(xì)胞通訊軟件RNAMagnet

今天我們來分享一下一款新的細(xì)胞通訊分析軟件----RNAMagnet
我們來詳細(xì)了解一下這個(gè)軟件的功能:

安裝:

install.packages("devtools")
devtools::install_github("veltenlab/rnamagnet")

我們來逐步分析一下這個(gè)軟件:

第一步:獲取包內(nèi)的配受體對

require(RNAMagnet)
require(ggplot2)
require(Seurat)
ligrec <- getLigandsReceptors("1.0.0",cellularCompartment = c("ECM","Surface","Both"),manualAnnotation = "Correct")
head(ligrec)
我們來詳細(xì)看一下這個(gè)函數(shù):
?getLigandsReceptors
參數(shù)的解讀
version : 默認(rèn)是latest
        ? latest points to ‘2.1.0’
        ? 1.0.0 包含所有在骨髓中表達(dá)的基因的人工注釋。This version was used for analysis is the Baccin et al paper. Information on heterodimeric receptors is only included for integrins.也就是說1.0.0版本具有很大的局限性,僅運(yùn)用于該文章。
        ? 2.0.0  contains manual annotation for all genes in the geneome (not yet complete).  庫很全面但是沒有完成。
        ? 2.1.0  integrates heterodimer information for non-integrn receptors from cellphoneDB.  這個(gè)地方主要是添加了cellphoneDB的多聚體信息。
        ? 3.0.0 adds a translation of the complete cellphoneDB to mouse homologues (not tested). 人鼠之間的配受體轉(zhuǎn)換。
        ? Alternatively, a data frame with the same column names as ‘ligandsReceptors_1.0.0’ can be used.這個(gè)我們應(yīng)該不會用到。
cellularCompartment :
        A character vector to select permitted localizations of the *ligand*. Valid entries are ‘Membrane’, ‘ECM’, ‘Secreted’ and ‘Both’, which refers to membrane-bound ligands that can also be secreted.這個(gè)地方選擇配受體分析的類型。我們一般都是選在分泌型的。
manualAnnotation:
        A character vector to select permitted annotation status of the interaction. Valid entries are ‘Correct’, ‘Incorrect’, ‘Not Expressed’ (i.e. entries not annotated in v1.0.0) and ‘Irrelevant’ (i.e. entries we consider correct but not relevant at homeostasis, e.g. interactions involving activated components of the complement system)。  這個(gè)參數(shù)我們一般選擇為Correct,越準(zhǔn)確越好。
ligandClass:
        A character vector to select permitted classes of ligands.Defaults to all, i.e. ‘c("Other","Cytokine","Chemokine","GrowthFactor","Interleukin")’  這個(gè)地方選擇配受體的生物學(xué)類型。

這個(gè)地方還是值得注意的,庫里面的配受體我查看過了,只有小鼠的注釋,默認(rèn)該軟件只能運(yùn)行小鼠,如果是人的樣本,需要我們自己準(zhǔn)備配受體對,例如cellphoneDB的配受體對。

第二步,分析細(xì)胞之間的adhere

我們先來看看函數(shù):
?RNAMagnetAnchors
Description:
     RNAMagnet comes in two flavors: ‘RNAMagnetAnchors’ and
     ‘RNAMagnetSignaling’. This function is meant to identify, for each
     single cell from a ‘seurat’ object, the propensity to physically
     adhere to a set of anchor populations. For example, this function
     can identify if a single cell is more likely to bind to arteriolar
     or sinusoidal vessels.
從描述上看,計(jì)算每個(gè)細(xì)胞對于anchors的物理adhere,其實(shí)就是計(jì)算細(xì)胞與anchors的距離(一種算法)。
參數(shù):
     anchors: A character vector of anchor populations. Entries must be levels of ‘seurat@ident’  這個(gè)參數(shù)是用來指定計(jì)算細(xì)胞adhere的anchors。
    return: Determines object to return; one of "summary" or "rnamagnet-class" 。
##我們運(yùn)行一下:
result <- RNAMagnetAnchors(NicheData10x, anchors = c("Sinusoidal ECs","Arteriolar ECs","Smooth muscle","Osteoblasts"), .version = "1.0.0")
得到結(jié)果:
                   direction adhesiveness            X1            X2
AAACCCAAGCCGTTGC-1         1     75.78937  0.0063449571 -0.0063449571
AAACCCAGTTAATCGC-1         1     74.40186  0.0095516182 -0.0095516182
AAACGAAAGTTAGTAG-1         1     67.19046  0.0053974087 -0.0053974087
AAACGAATCTTGGGCG-1         1     53.83670  0.0206724136 -0.0206724136
AAAGTCCTCTTCTTCC-1         2     80.60037 -0.0009649741  0.0009649741
AAAGTGACAAGTATCC-1         2     64.71945 -0.0062044244  0.0062044244
這個(gè)結(jié)果的解讀來看,每個(gè)細(xì)胞的方向就是我們指定的anchors,看看細(xì)胞的方向和adhere。
結(jié)果解讀在這里:
* The anchor population that a cell is most specifically interacting with ('direction')
* The overall strength of the interaction ('adhesiveness')
* Specificity scores for interaction with each of the anchor populations.

第三步:做一些可視化:

require(plyr)
require(reshape2)
require(pheatmap)
result$id <- Idents(NicheData10x)
summarised <- ddply(result, c("id"), summarise,  RNAmagnet.score = table(direction) / length(direction), n = rep(length(direction),4), RNAmagnet.adhesiveness = rep(mean(adhesiveness),4), experiment = names(table(direction)))
castMagnet <- dcast(subset(summarised, RNAmagnet.adhesiveness > 35), id ~ experiment, value.var = "RNAmagnet.score")
rownames(castMagnet) <- castMagnet[,1]
castMagnet <- castMagnet[,-1]
castMagnet <- t(apply(castMagnet,1,function(x) (x-min(x)) / (max(x)-min(x))))
pheatmap(castMagnet, cluster_cols = F, annotation_legend = F, annotation_names_col = F, color = colorRampPalette(c("white","white","blue","red"))(100), fontsize=8, treeheight_row = 20)
圖片.png

可以看到各個(gè)cluster之間的對于anchors的adhere。

接下來就是推斷細(xì)胞之間的相互作用了,

result <- RNAMagnetSignaling(NicheData10x, .version = "2.1.0")
PlotSignalingNetwork(result, threshold = 0.01)
圖片.png

這個(gè)軟件大家不妨嘗試一下。

接下來就是原理

How the spatial
relationships of cell types are established and maintained in complex organs such as the BM remains poorly understood。It has been suggested that the expression of cell adhesion molecules represents an important mechanism that translates basic genetic information into complex three-dimensional patterns of cells in tissues。細(xì)胞黏附分子對于細(xì)胞空間位置的重要作用。作者編輯了完整的注釋完好的細(xì)胞粘附受體及其同源質(zhì)膜或細(xì)胞外基質(zhì)結(jié)合配體的詳細(xì)list,并開發(fā)了RNA-Magnet算法,以研究是否可以通過表達(dá)cell adhesion molecules來預(yù)測細(xì)胞的相對位置。RNA-Magnet predicts the potential physical interactions between single cells and selected attractor populations (anchors) based on the expression patterns of the cell-surface receptors and their cognate surface-expressed binding partners。依據(jù)膜結(jié)合的配受體來計(jì)算細(xì)胞之間的物理距離,RNA-Magnet provides scores for the strength of attraction (RNA-Magnet adhesiveness) for each cell and a direction indicating the attractor population the cell is most attracted to (RNA-Magnet location).作者運(yùn)用自己的數(shù)據(jù)來運(yùn)用該軟件,To investigate whether RNA-Magnet is able to recapitulate the spatial relationships of BM cell types, we introduced four anchor populations representing the following niches: osteoblasts for the endosteal niche, sinusoidal ECs for the sinusoidal niche, as well as arterial ECs and smooth muscle cells to represent the arteriolar niches。The predicted adhesiveness of BM populations to distinct niches correlated strongly with their degree of differential localization, as measured by spatial transcriptomics。下面是作者的圖(對細(xì)胞距離的預(yù)判):

圖片.png

Localization was also recapitulated with high accuracy for almost all populations 。 including the differential localization of Adipo- and Osteo-CAR cells to the sinusoidal and arteriolar endothelia, respectively。Together, these observations demonstrate the ability of RNA-Magnet to predict spatial localization from single-cell gene expression data and highlight the importance of cell adhesion proteins for tissue organization in the BM。看到這里,相信大家明白了函數(shù)RNAMagnetAnchors的用處到底是什么了。
接下來我們來看一下通訊的原理:Systems-level analysis of intercellular signalling interactions of
BM cell types.

We applied RNA-Magnet to soluble signalling mediators (for example cytokines, growth factors and so on) and their receptors to gain a systems-level overview of potential intercellular signalling interactions。In accordance with the specific localization of the Osteo- and Adipo-CAR populations to arteriolar or sinusoidal scaffolds,an analysis of the net signalling output of distinct local niches implied that lymphoid and myeloid progenitors receive strong input from cytokines produced in the vascular and especially sinusoidal niches。也是計(jì)算特異的配受體對。

如何計(jì)算細(xì)胞之間的交流強(qiáng)度?

  1. Ligand-receptor pairs are selected based on the parameters ‘.version’, ‘.cellularCompartment’ and ‘.manualAnnotation’. Choice of ‘.cellularCompartment’ is crucial for determining the algorithm's behavior, e.g. if set to ‘c("Secreted","Both")’, paracrine signaling interactions involving soluble ligands are investigated.
  2. Dropout values in the expression levels of ligands and receptors are imputed using ‘magic’。
  3. Mean expression level of ligands and receptors is computed for all anchor populations.
  4. For each cell or anchor population, the expression of each ligand and receptor is encoded as a fuzzy logic variable
  5. Fuzzy logic AND is used to compute probabilities for a given interaction to be active between a single cell and an anchor population
  6. An interaction score is computed as the sum of interaction probabilities across all possible ligand-receptor pairs
  7. Specificty scores are computed by comparing interaction scores to average interaction scores in a local neighborhood.
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。
禁止轉(zhuǎn)載,如需轉(zhuǎn)載請通過簡信或評論聯(lián)系作者。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容