当前位置:网站首页>venn圖取交集
venn圖取交集
2022-07-02 03:06:00 【youngleeyoung】
#交集
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()
#繼續以上述4個分組為例,組間交集元素獲得
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)
边栏推荐
- [staff] pitch representation (bass clef | C1 36 note pitch representation | C2 48 note pitch representation | C3 60 note pitch representation)
- Baohong industry | what misunderstandings should we pay attention to when diversifying investment
- 2022-2028 global aluminum beverage can coating industry research and trend analysis report
- JS <2>
- 2022 safety officer-c certificate examination questions and mock examination
- buu_ re_ crackMe
- Set status bar color
- 2022 hoisting machinery command examination paper and summary of hoisting machinery command examination
- OSPF LSA message parsing (under update)
- [JSON] gson use and step on the pit
猜你喜欢

批量检测url是否存在cdn—高准确率

Remote connection to MySQL under windows and Linux system

Framing in data transmission

命名块 verilog

What kind of good and cost-effective Bluetooth sports headset to buy
![[staff] restore mark (Introduction to the use of restore mark | example analysis of Metaphone mark and restore mark)](/img/21/7bbf276b01f5a1056a22f5afc0af26.jpg)
[staff] restore mark (Introduction to the use of restore mark | example analysis of Metaphone mark and restore mark)

Force deduction daily question 540 A single element in an ordered array
![[JSON] gson use and step on the pit](/img/86/6ee2971715e0d29008a4b7b1a7aa45.jpg)
[JSON] gson use and step on the pit

小米青年工程师,本来只是去打个酱油

STM32__05—PWM控制直流电机
随机推荐
Verilog 线型wire 种类
Render header usage of El table
2022-2028 global human internal visualization system industry research and trend analysis report
Batch detect whether there is CDN in URL - high accuracy
Gradle notes
Systemserver service and servicemanager service analysis
Special symbols in SAP ui5 data binding syntax, and detailed explanation of absolute binding and relative binding concepts
JS introduction < 1 >
Design details of SAP e-commerce cloud footernavigationcomponent
Golang configure export goprivate to pull private library code
MMSegmentation系列之训练与推理自己的数据集(三)
批量检测url是否存在cdn—高准确率
MongoDB非关系型数据库
多线程查询,效率翻倍
2022-2028 global aluminum beverage can coating industry research and trend analysis report
V-model of custom component
高并发场景下缓存处理方案
Verilog 状态机
[road of system analyst] collection of wrong topics in enterprise informatization chapter
PMP personal sprint preparation experience