ixxmu / mp_duty

抓取网络文章到github issues保存
https://archives.duty-machine.now.sh/
122 stars 30 forks source link

Cell同款 | 配色 热图篇 #5511

Closed ixxmu closed 2 months ago

ixxmu commented 2 months ago

https://mp.weixin.qq.com/s/LjYFRSKd4HP3IEIo8nU97w

ixxmu commented 2 months ago

Cell同款 | 配色 热图篇 by 在生信的坑里挖呀挖呀挖


Cell同款 | 配色 热图篇



之前画过2次热图啦,Cancer Cell同款 | 热图   和 Molecular Therapy同款 | 热图学会了画热图,再看下画啥样的热图,今天就以发在Cell上的Figure为例,都是Cell里的热图噢,果然配色很常见,样式很典型。至此想必热图的门道就摸出来了吧。


Cell上的示例图1



Figure 5. Differential expression of the top 45 AD GWAS genes across all major CSF immune cell types


简单画个热图展示下


配色ex_color = c("#6238ff","#ffffff","#ff220e")。

绘制热图的简单脚本如下。

library(pheatmap)df <- read.delim("test.txt",header=T,row.names=1,sep='\t',stringsAsFactors = FALSE,  check.names = FALSE,quote = "")ex_color = c("#6238ff","#ffffff","#ff220e")pdf("test.pdf",height = 5, width = 4)
p <- pheatmap(df,   scale="row",   cluster_col=FALSE,   cluster_rows=TRUE,   show_rownames=FALSE,   show_colnames=TRUE,   border_color=NA,   col = colorRampPalette(ex_color)(100))
print(p)dev.off()


其中test.txt示例如下,行为基因,列为样本的表达量矩阵。



Cell上的示例图2



Figure 2.(B) Heatmap displaying expressions of marker genes for each T cell cluster.


图2-4的配色就不给大家提取了,需要的话可以看顶刊文献千千万,Figure配色随便拾,展示下,知道顶刊里的热图都长啥样,之后照着画!



Cell上的示例图3



Figure 4(I) Heatmap of individual genes from leading-edge Hallmark angiogenesis pathway stratified by brain tissue type and PBN/TAN.



Cell上的示例图4



Figure 5(A) Heatmap of volume-normalized cortical layer distribution of GABAergic cell types



Cell上的示例图5



Figure 5(K) Expression levels of neurotransmitter and neuromodulator receptor subunit and transporter genes in PV or SST neurons along the hierarchical level in visual (left) and somatosensory (right) systems.



Cell上的示例图6



Figure 2. (B and C) Top DEGs (B) and DEPs (C) between cell types. 



Cell上的示例图7



对了这个配色可以用library(viridis)里的scale_fill_viridis(option = "D")

Figure 2. (D) HD TF expression across cell/tissue types with Coordinator enrichment. Colored circles correspond to the schematic and data in (C).


参考文献



Piehl N, van Olst L, Ramakrishnan A, Teregulova V, Simonton B, Zhang Z, Tapp E, Channappa D, Oh H, Losada PM, Rutledge J, Trelle AN, Mormino EC, Elahi F, Galasko DR, Henderson VW, Wagner AD, Wyss-Coray T, Gate D. Cerebrospinal fluid immune dysregulation during healthy brain aging and cognitive impairment. Cell. 2022 Dec 22;185(26):5028-5039.e13. doi: 10.1016/j.cell.2022.11.019. Epub 2022 Dec 13. PMID: 36516855; PMCID: PMC9815831.


Wang J, Xu Y, Chen Z, Liang J, Lin Z, Liang H, Xu Y, Wu Q, Guo X, Nie J, Lu B, Huang B, Xian H, Wang X, Wu Q, Zeng J, Chai C, Zhang M, Lin Y, Zhang L, Zhao S, Tong Y, Zeng L, Gu X, Chen ZG, Yi S, Zhang T, Delfouneso D, Zhang Y, Nutt SL, Lew AM, Lu L, Bai F, Xia H, Wen Z, Zhang Y. Liver Immune Profiling Reveals Pathogenesis and Therapeutics for Biliary Atresia. Cell. 2020 Dec 23;183(7):1867-1883.e26. doi: 10.1016/j.cell.2020.10.048. Epub 2020 Nov 27. PMID: 33248023.


Maas RR, Soukup K, Fournier N, Massara M, Galland S, Kornete M, Wischnewski V, Lourenco J, Croci D, Álvarez-Prado ÁF, Marie DN, Lilja J, Marcone R, Calvo GF, Santalla Mendez R, Aubel P, Bejarano L, Wirapati P, Ballesteros I, Hidalgo A, Hottinger AF, Brouland JP, Daniel RT, Hegi ME, Joyce JA. The local microenvironment drives activation of neutrophils in human brain tumors. Cell. 2023 Oct 12;186(21):4546-4566.e27. doi: 10.1016/j.cell.2023.08.043. Epub 2023 Sep 27. PMID: 37769657.


Chen A, Sun Y, Lei Y, Li C, Liao S, Meng J, Bai Y, Liu Z, Liang Z, Zhu Z, Yuan N, Yang H, Wu Z, Lin F, Wang K, Li M, Zhang S, Yang M, Fei T, Zhuang Z, Huang Y, Zhang Y, Xu Y, Cui L, Zhang R, Han L, Sun X, Chen B, Li W, Huangfu B, Ma K, Ma J, Li Z, Lin Y, Wang H, Zhong Y, Zhang H, Yu Q, Wang Y, Liu X, Peng J, Liu C, Chen W, Pan W, An Y, Xia S, Lu Y, Wang M, Song X, Liu S, Wang Z, Gong C, Huang X, Yuan Y, Zhao Y, Chai Q, Tan X, Liu J, Zheng M, Li S, Huang Y, Hong Y, Huang Z, Li M, Jin M, Li Y, Zhang H, Sun S, Gao L, Bai Y, Cheng M, Hu G, Liu S, Wang B, Xiang B, Li S, Li H, Chen M, Wang S, Li M, Liu W, Liu X, Zhao Q, Lisby M, Wang J, Fang J, Lin Y, Xie Q, Liu Z, He J, Xu H, Huang W, Mulder J, Yang H, Sun Y, Uhlen M, Poo M, Wang J, Yao J, Wei W, Li Y, Shen Z, Liu L, Liu Z, Xu X, Li C. Single-cell spatial transcriptome reveals cell-type organization in the macaque cortex. Cell. 2023 Aug 17;186(17):3726-3743.e24. doi: 10.1016/j.cell.2023.06.009. Epub 2023 Jul 12. PMID: 37442136.


Guilliams M, Bonnardel J, Haest B, Vanderborght B, Wagner C, Remmerie A, Bujko A, Martens L, Thoné T, Browaeys R, De Ponti FF, Vanneste B, Zwicker C, Svedberg FR, Vanhalewyn T, Gonçalves A, Lippens S, Devriendt B, Cox E, Ferrero G, Wittamer V, Willaert A, Kaptein SJF, Neyts J, Dallmeier K, Geldhof P, Casaert S, Deplancke B, Ten Dijke P, Hoorens A, Vanlander A, Berrevoet F, Van Nieuwenhove Y, Saeys Y, Saelens W, Van Vlierberghe H, Devisscher L, Scott CL. Spatial proteogenomics reveals distinct and evolutionarily conserved hepatic macrophage niches. Cell. 2022 Jan 20;185(2):379-396.e38. doi: 10.1016/j.cell.2021.12.018. Epub 2022 Jan 11. PMID: 35021063; PMCID: PMC8809252.


Kim S, Morgunova E, Naqvi S, Goovaerts S, Bader M, Koska M, Popov A, Luong C, Pogson A, Swigut T, Claes P, Taipale J, Wysocka J. DNA-guided transcription factor cooperativity shapes face and limb mesenchyme. Cell. 2024 Feb 1;187(3):692-711.e26. doi: 10.1016/j.cell.2023.12.032. Epub 2024 Jan 22. PMID: 38262408; PMCID: PMC10872279.



文献Figure自己画


点击公众号进入,底部菜单栏【挖到干货】里的【期刊同款图】查看!持续更新,代码大放送!推文中脚本现成的,直接copy!



生信这些知晓没



数据库/软件细细写了攻略
1.影响因子100+的文章教你该研究
2.研究LncRNA,你得会用PLEK
3.基因组大小知多少
4.基因组下载知多少,植物篇
5.植物的单细胞研究,得知道这俩宝贝!
6.植物的单细胞研究,你看看这俩数据库!
7.踢开空转的门,玩转STOmicsDB
8.做免疫浸润,用MCP-counter!
9.做免疫浸润,用CIBERSORT!
10.打卡小众且靠谱的cell markers库
11.差异可变剪切首推rMATS  rMATS的续篇
12.SSR鉴定,一步到位
13.LncRNA良心数据库,我得广而告之!
14.不讲寻常话,CellMarker2.0真干货!
15.空间转录组,“卷”你出圈
16.除了看《歌手》,还得学可变剪切!
17.MSigDB,GSEA的不二搭档
18.当表达量数据和批次效应撞个满怀,咋办
19.不要以为MSigDB就是GSEA分析用的配套数据库,那你太小瞧它了!
20.AnimalTFDB,盘包浆的转录因子数据库
21.说说生信解压那件小事
22.使用Canu对三代测序数据进行基因组组装

科研小帮手或者小经验
1.顶刊文献千千万,Figure配色随便拾
2.影响因子不会还在问度娘吧
3.SeqKit!序列处理贼好用!
4.samtools的花式用法
5.VCFtools,用过的都说好!
6.转录组的差异基因太多或者太少,该咋办?
7.基因名都写错了,还发什么文章!
8.生信实用技能盘点 | awk
9.生信实用技能盘点 | sed
10.单细胞之最来啦!M20 Seq,最全面的单细胞测序技术
11.哪个小可爱还不会找参考基因组
12.为啥有参转录组用HTSeq定量,而无参用RSEM呢
13.Cancer Cell同款 | 配色
14.Cell同款 | 配色
15.Paper引用量,查起来真方便!
16.当你想用R分析或绘图,第1步是啥
17.手把手教你NCBI下载基因组和注释文件
18.gbff和gff,不是一字之差

安塞尔·亚当斯说“我们不只是用相机拍照。我们带到摄影中去的是所有我们读过的书,看过的电影,听过的音乐,爱过的人。”有些时刻,一些带有情绪力量的人物抓拍到也很有意思,你喜欢用这样的方式记录吗?



END