Closed ixxmu closed 2 months ago
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
图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
Cell上的示例图5
Cell上的示例图6
Cell上的示例图7
对了这个配色可以用library(viridis)里的scale_fill_viridis(option = "D")
参考文献
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!
生信这些知晓没
安塞尔·亚当斯说“我们不只是用相机拍照。我们带到摄影中去的是所有我们读过的书,看过的电影,听过的音乐,爱过的人。”有些时刻,一些带有情绪力量的人物抓拍到也很有意思,你喜欢用这样的方式记录吗?
END
https://mp.weixin.qq.com/s/LjYFRSKd4HP3IEIo8nU97w