细胞通讯软件RNAMagnet

今天我们来分享一下一款新的细胞通讯分析软件----RNAMagnet
我们来详细了解一下这个软件的功能:

安装:

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

我们来逐步分析一下这个软件:

第一步:获取包内的配受体对

require(RNAMagnet)
require(ggplot2)
require(Seurat)
ligrec <- getLigandsReceptors("1.0.0",cellularCompartment = c("ECM","Surface","Both"),manualAnnotation = "Correct")
head(ligrec)
我们来详细看一下这个函数:
?getLigandsReceptors
参数的解读
version : 默认是latest
        • latest points to ‘2.1.0’
        • 1.0.0 包含所有在骨髓中表达的基因的人工注释。This version was used for analysis is the Baccin et al paper. Information on heterodimeric receptors is only included for integrins.也就是说1.0.0版本具有很大的局限性,仅运用于该文章。
        • 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.  这个地方主要是添加了cellphoneDB的多聚体信息。
        • 3.0.0 adds a translation of the complete cellphoneDB to mouse homologues (not tested). 人鼠之间的配受体转换。
        • Alternatively, a data frame with the same column names as ‘ligandsReceptors_1.0.0’ can be used.这个我们应该不会用到。
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.这个地方选择配受体分析的类型。我们一般都是选在分泌型的。
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)。  这个参数我们一般选择为Correct,越准确越好。
ligandClass:
        A character vector to select permitted classes of ligands.Defaults to all, i.e. ‘c("Other","Cytokine","Chemokine","GrowthFactor","Interleukin")’  这个地方选择配受体的生物学类型。

这个地方还是值得注意的,库里面的配受体我查看过了,只有小鼠的注释,默认该软件只能运行小鼠,如果是人的样本,需要我们自己准备配受体对,例如cellphoneDB的配受体对。

第二步,分析细胞之间的adhere

我们先来看看函数:
?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.
从描述上看,计算每个细胞对于anchors的物理adhere,其实就是计算细胞与anchors的距离(一种算法)。
参数:
     anchors: A character vector of anchor populations. Entries must be levels of ‘seurat@ident’  这个参数是用来指定计算细胞adhere的anchors。
    return: Determines object to return; one of "summary" or "rnamagnet-class" 。
##我们运行一下:
result <- RNAMagnetAnchors(NicheData10x, anchors = c("Sinusoidal ECs","Arteriolar ECs","Smooth muscle","Osteoblasts"), .version = "1.0.0")
得到结果:
                   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
这个结果的解读来看,每个细胞的方向就是我们指定的anchors,看看细胞的方向和adhere。
结果解读在这里:
* 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

可以看到各个cluster之间的对于anchors的adhere。

接下来就是推断细胞之间的相互作用了,

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

这个软件大家不妨尝试一下。

接下来就是原理

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。细胞黏附分子对于细胞空间位置的重要作用。作者编辑了完整的注释完好的细胞粘附受体及其同源质膜或细胞外基质结合配体的详细list,并开发了RNA-Magnet算法,以研究是否可以通过表达cell adhesion molecules来预测细胞的相对位置。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。依据膜结合的配受体来计算细胞之间的物理距离,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).作者运用自己的数据来运用该软件,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。下面是作者的图(对细胞距离的预判):

图片.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。看到这里,相信大家明白了函数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。也是计算特异的配受体对。

如何计算细胞之间的交流强度?

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

推荐阅读更多精彩内容