How to draw this picture | Still a heat map (immunotherapy response prediction)

b3ab110c680923688db1b7e73628e954.jpeg

immune_hm

written in front

[How to draw this picture] The series of pictures are all from VIP群the students' questions. The tweet is only a reproduction of the picture, and does not mean that the author agrees with the form of the picture. Students are welcome to analyze interesting pictures in the group.

Pictures of this issue

1d59f96f1f4e502767aef512a22560a0.png

Chen, Hualin et al. “Integrated Analysis Revealed an Inflammatory Cancer-Associated Fibroblast-Based Subtypes with Promising Implications in Predicting the Prognosis and Immunotherapeutic Response of Bladder Cancer Patients.” International journal of molecular sciences vol. 23,24 15970. 15 Dec. 2022

0e4c4a40455566a391f05db68aab66df.png

method

a108b60af91884e6348ea2b14ad07cb5.png

The picture shows the prediction results of different subtypes for response to immunotherapy. The data processing in the early stage is cumbersome, so here we start directly from the drawing.

Reproduce results

788baecaac39a1da05f6ff53c1fa8307.png
result

Sample data and code collection

点赞, 在看This article, share it in the circle of friends 集赞30个and 保留30分钟send the screenshot to WeChat mzbj0002to receive it.

Canoe notes permanent VIP plan

"rights and interests:"

  1. "All tweet sample data and codes of Muzhou Notes ( updated in real time in the VIP group" ).

    353a454c32b699557648afa51616e470.png
    data+code
  2. Muzhou Notes "Scientific Research Exchange Group" .

"TOLL:"

"169¥/person" . You can add WeChat: mzbj0002transfer, or directly reward at the end of the article. Muzhou Note "2022VIP" can directly pay "70¥" to upgrade.

b3e9fa801e9076776d3219e204130a44.png

drawing

rm(list = ls())
library(ComplexHeatmap)
# submap heatmap
dt <- matrix(runif(3*4*3,0,1), 
              nrow = 9,byrow = T,
              dimnames = list(c("C1","C2","C3",
                                " C1"," C2"," C3",
                                "  C1","  C2","  C3"),
                              c("CTAL4-noR","CTLA4-R","PD1-noR","PD1-R")))

hm <- pheatmap(dt, 
               border_color = "white",
               number_format = "%.3f",
               cellwidth = 30, cellheight = 30,
               cluster_rows = F,cluster_cols = F,
               display_numbers = T,
               number_color = "black",
               fontsize_number = 9,
               name = "Statitic",
               annotation_row = data.frame(pvalue=c("Nominal p value","Nominal p value","Nominal p value",
                                                    "Bonferroni adjusted","Bonferroni adjusted","Bonferroni adjusted",
                                                    "FDR adjusted","FDR adjusted","FDR adjusted"),
                                           row.names = rownames(dt)),
               annotation_colors = list(pvalue=c("Nominal p value"="black","Bonferroni adjusted"="grey50","FDR adjusted" = "grey80")))
pdf("predicted response to immunotherapy.pdf",width = 5,height = 8)
draw(hm, heatmap_legend_side = "left",annotation_legend_side = "right")
invisible(dev.off())
030be28e1fc4c23dc34513c93f24a467.png
result

previous content

  1. CNS Chart Reappearance | Biological Information Analysis | R Drawing Resource Sharing & Discussion Group!

  2. How to draw this picture | A bit complicated scatter plot

  3. How to draw this picture | Correlation Analysis Lollipop Chart

  4. Group student letter | Front Immunol | A simple routine for screening early diagnostic markers based on serum proteome

  5. (Free tutorial + code collection) | Follow Cell to learn drawing series collection

  6. Q&A | How to draw beautiful illustrations in papers?

  7. Follow Cell to learn drawing | Mulberry map (ggalluvial)

  8. R actual combat | Lasso regression model establishment and variable screening

  9. Follow NC to map | Advanced interaction network diagram (protein + enrichment pathway) (Cytoscape)

  10. R actual combat | Add a circle to the clustering (ggunchull)

  11. R actual combat | NGS data time series analysis (maSigPro)

  12. Learn to draw with Cell | Venn Diagram (ggVennDiagram)


1688f4aec37a6af4a50dce3b8e544fd9.png
Canoe Notes Matrix

Guess you like

Origin blog.csdn.net/weixin_45822007/article/details/128731926