当前位置:网站首页>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)
边栏推荐
- 旋转框目标检测mmrotate v0.3.1 学习模型
- STM32__05—PWM控制直流电机
- Use the open source project [banner] to achieve the effect of rotating pictures (with dots)
- 图扑软件通过 CMMI5 级认证!| 国际软件领域高权威高等级认证
- JS <2>
- Jointly developed by nailing, the exclusive functions of glory tablet V7 series were officially launched
- [staff] the direction of the symbol stem and the connecting line (the symbol stem faces | the symbol stem below the third line faces upward | the symbol stem above the third line faces downward | the
- Force deduction daily question 540 A single element in an ordered array
- 竞争与冒险 毛刺
- 小米青年工程师,本来只是去打个酱油
猜你喜欢

2022-2028 global wood vacuum coating machine industry research and trend analysis report
![[road of system analyst] collection of wrong topics in enterprise informatization chapter](/img/c4/0bb4823ca85c440b4e0587a91b2585.jpg)
[road of system analyst] collection of wrong topics in enterprise informatization chapter

多线程查询,效率翻倍

Just a few simple steps - start playing wechat applet

Jointly developed by nailing, the exclusive functions of glory tablet V7 series were officially launched

QT implementation interface jump

2022-2028 global manual dental cleaning equipment industry research and trend analysis report

GB/T-2423. XX environmental test documents, including the latest documents

Framing in data transmission

MVVM and MVC
随机推荐
[staff] the direction of the symbol stem and the connecting line (the symbol stem faces | the symbol stem below the third line faces upward | the symbol stem above the third line faces downward | the
Addition without addition, subtraction, multiplication and division (simple difficulty)
Verilog 过程连续赋值
Mongodb non relational database
Unit · elementary C # learning notes
Verilog 过程赋值 区别 详解
Connected block template and variants (4 questions in total)
使用开源项目【Banner】实现轮播图效果(带小圆点)
Après le mariage
Feature query of hypergraph iserver rest Service
2022-2028 global soft capsule manufacturing machine industry research and trend analysis report
verilog 并行块实现
tarjan2
The video number will not be allowed to be put on the shelves of "0 yuan goods" in the live broadcasting room?
Principle of computer composition - interview questions for postgraduate entrance examination (review outline, key points and reference)
New programmer magazine | Li Penghui talks about open source cloud native message flow system
PMP personal sprint preparation experience
JS introduction < 1 >
Start a business
buu_ re_ crackMe