当前位置:网站首页>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)
边栏推荐
- Soul app released the annual report on generation Z behavior: nearly 20% of young people love shopping in the vegetable market
- [untitled]
- Framing in data transmission
- Coordinatorlayout + tablayout + viewpager2 (there is another recyclerview nested inside), and the sliding conflict of recyclerview is solved
- 結婚後
- 竞争与冒险 毛刺
- QT environment generates dump to solve abnormal crash
- Systemserver service and servicemanager service analysis
- Baohong industry | 6 financial management models at different stages of life
- Just a few simple steps - start playing wechat applet
猜你喜欢

Design details of SAP e-commerce cloud footernavigationcomponent
![Find duplicates [Abstract binary / fast and slow pointer / binary enumeration]](/img/9b/3c001c3b86ca3f8622daa7f7687cdb.png)
Find duplicates [Abstract binary / fast and slow pointer / binary enumeration]

What kind of good and cost-effective Bluetooth sports headset to buy

Baohong industry | four basic knowledge necessary for personal finance

CoordinatorLayout + TabLayout + ViewPager2(里面再嵌套一个RecyclerView),RecyclerView的滑动冲突解决
![[JVM] detailed description of the process of creating objects](/img/6e/0803b6b63c48337985faae8d5cbe1a.png)
[JVM] detailed description of the process of creating objects

New programmer magazine | Li Penghui talks about open source cloud native message flow system

数据传输中的成帧
![[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)

After marriage
随机推荐
Yyds dry goods inventory accelerating vacuum in PG
2022-2028 global encryption software industry research and trend analysis report
verilog 并行块实现
实现一个自定义布局的扫码功能
2022-2028 global manual dental cleaning equipment industry research and trend analysis report
Verilog 时序控制
Just a few simple steps - start playing wechat applet
Set status bar color
Use usedeferredvalue for asynchronous rendering
2022 safety officer-c certificate examination questions and mock examination
Gradle notes
Possible causes of runtime error
Special symbols in SAP ui5 data binding syntax, and detailed explanation of absolute binding and relative binding concepts
What kind of good and cost-effective Bluetooth sports headset to buy
Use the open source project [banner] to achieve the effect of rotating pictures (with dots)
设置状态栏颜色
Verilog 过程赋值 区别 详解
Feature query of hypergraph iserver rest Service
Force deduction daily question 540 A single element in an ordered array
只需简单几步 - 开始玩耍微信小程序