当前位置:网站首页>Intersection vengraph
Intersection vengraph
2022-07-02 03:06:00 【Youngleeyoung】
#Intersection
my_disease_markers_for_AM3=openxlsx::read.xlsx("G:/silicosis/sicosis/Supplementary Table.xlsx",
sheet = "Sheet1")
head(my_disease_markers_for_AM3)
library(dplyr)
disease_markers_for_AM3=list()
for (eachcolumn in colnames(my_disease_markers_for_AM3)) {
disease_markers_for_AM3[[paste0(eachcolumn)]]=my_disease_markers_for_AM3[,eachcolumn] %>%
na.omit() %>% unique()
}
head(disease_markers_for_AM3)
library(VennDiagram)#https://www.jianshu.com/p/b5a4c40c3a33
venn_list <- list(AM3_Silicosis = disease_markers_for_AM3[[1]],
MoAM_GSE184854 = disease_markers_for_AM3[[2]])
venn.diagram(venn_list, filename = 'venn2_for_humanPF-Silicosi-Bleomycin.png', imagetype = 'png',
fill = c('red', 'blue'), alpha = 0.50, cat.col = rep('black', 2),
col = 'black', cex = 1.3, fontfamily = 'serif',
cat.cex = 1.3, cat.fontfamily = 'serif')
getwd()
# Continuer comme indiqué ci - dessus 4 Exemple de groupe , L'élément d'intersection entre les groupes obtient
inter <- get.venn.partitions(venn_list)
for (i in 1:nrow(inter)) inter[i,'values'] <- paste(inter[[i,'..values..']], collapse = ', ')
write.table(inter[-c(5, 6)], 'venn4_inter.txt', row.names = FALSE, sep = '\t', quote = FALSE)
for (i in 1:nrow(inter)) inter[i,'values'] <- paste(inter[[i,'..values..']], collapse = ', ')
openxlsx::write.xlsx(inter[-c(5, 6)], 'venn4_inter.xlsx', row.names = FALSE, sep = ',', quote = FALSE)
边栏推荐
- 結婚後
- Common means of modeling: aggregation
- Framing in data transmission
- Which kind of sports headphones is easier to use? The most recommended sports headphones
- Force deduction daily question 540 A single element in an ordered array
- AcWing 245. Can you answer these questions (line segment tree)
- [staff] pitch representation (treble clef | C3 60 ~ B3 71 pitch representation | C4 72 pitch representation | C5 84 pitch representation)
- Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field
- 2022-2028 global nano abrasive industry research and trend analysis report
- JS <2>
猜你喜欢
Force deduction daily question 540 A single element in an ordered array
QT environment generates dump to solve abnormal crash
Use usedeferredvalue for asynchronous rendering
结婚后
PHP notes - use Smarty to set public pages (include, if, else, variable settings)
Just a few simple steps - start playing wechat applet
Start a business
Addition without addition, subtraction, multiplication and division (simple difficulty)
[staff] pitch representation (bass clef | C1 36 note pitch representation | C2 48 note pitch representation | C3 60 note pitch representation)
About DNS
随机推荐
SAP ui5 beginner tutorial 19 - SAP ui5 data types and complex data binding
Baohong industry | 6 financial management models at different stages of life
結婚後
[road of system analyst] collection of wrong topics in enterprise informatization chapter
GB/T-2423.xx 环境试验文件,整理包括了最新的文件里面
Baohong industry | what misunderstandings should we pay attention to when diversifying investment
The capacity is upgraded again, and the new 256gb large capacity specification of Lexar rexa 2000x memory card is added
Special symbols in SAP ui5 data binding syntax, and detailed explanation of absolute binding and relative binding concepts
Which kind of sports headphones is easier to use? The most recommended sports headphones
Qualcomm platform WiFi -- P2P issue (2)
实现一个自定义布局的扫码功能
Formatting logic of SAP ui5 currency amount display
Is bone conduction earphone better than traditional earphones? The sound production principle of bone conduction earphones is popular science
How to create an instance of the control defined in SAP ui5 XML view at runtime?
QT implementation interface jump
Gradle notes
STM32__ 05 - PWM controlled DC motor
verilog 并行块实现
After marriage
Principle of computer composition - interview questions for postgraduate entrance examination (review outline, key points and reference)