系统树图 | Dendrogram construction | Phylogenetic Analysis

Molecular Architecture of the Mouse Nervous System

表示亲缘关系的树状图解

 

先看文章里是怎么做的:

Dendrogram construction

All linkage and distance calculations were performed after Log2 transformation. log2转换,很好理解。

The starting point of the dendrogram construction was the 265 clusters. 这里使用了所有的cluster。

For each gene, we computed average expression, trinarization with f = 0.2, trinarization with f = 0.05 and enrichment score. 这里应该是对每一个gene,计算在每一个cluster里的平均表达,trinarization和富集得分。

For each cluster we also know the number of cells, annotations, tissue distribution and samples of origin. We defined major classes of cell types based on prior knowledge: neurons, astroependymal, oligodendrocytes, vascular (without VLMC), immune cells and neural crest-like. 每个类已经有比较好的注释了。

For each class, we defined pan-enriched genes based on the trinarization 5% score. Each class (except neurons) was tested against neurons, to find all the genes where the fraction of clusters with trinarization score = 1 in the class was greater than the fraction of clusters with trinarization score > 0.9 among neurons. 定义了pan-enriched genes

In order to suppress batch effects (mainly due to ambient oligodenderocyte RNA in hindbrain and spinal cord samples), we collected the unique set of genes pan-enriched in the non-neuronal clusters, as well as a set of non-neuronal genes that we believe to have tendency to appear in floating RNA (Trf, Plp1, Mog, Mobp, Mfge8, Mbp, Hbb-bs, H2-DMb2) and a set of immediate early genes (Fos, Jun, Junb, Egr1). These genes were set to zero within the neuronal clusters to avoid any batch effect when clustering the neuronal clusters. 去掉批次效应

We further removed sex specific genes (Xist, Tsix, Eif2s3y, Ddx3y, Uty, and Kdm5d) and immediate early genes Egr1 and Jun from all clusters. We bounded the number of detected genes in each cluster to the top 5000 genes expressed, followed by scaling the total sum of each cluster profile to 10,000. 去掉性别基因

Next, we selected genes for linkage analysis: from each cluster select the top N = 28 enriched genes (based on pre-calculated enrichment score), perform initial clustering using linkage (Euclidean distance, Ward in MATLAB), and cut the tree based on distance criterion 50. This clustering aimed to capture the coarse structure of the hierarchy. 初步筛选基因

For each of the resulting clusters, we calculated the enrichment score as the mean over the cluster divided by the total sum and selected the 1.5 N top genes. These were added to the previously selected genes. 添加基因

Finally, we built the dendrogram using linkage (correlation distance and Ward method). 最终用MATLAB的linkage包来作图。

 

如何选择基因和整合基因才是绘制dendrogram的核心。

这不是最优的作图,每个支的长短应该不一样,以表示发育的距离。

 

TreeExp计算,R默认plot函数成图效果非常好: 

 

参考:

Phylogenetic Analysis of Gene Expression

Estimating the strength of expression conservation from high throughput RNA-seq data  sci-hub

TreeExp - github

Data Integration, Manipulation and Visualization of Phylogenetic Trees - Guangchuang Yu

 

posted @ 2019-07-18 11:55  Life·Intelligence  阅读(...)  评论(... 编辑 收藏
TOP