当前位置:网站首页>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)
边栏推荐
- Design details of SAP e-commerce cloud footernavigationcomponent
- [staff] diacritical mark (ascending sign | descending sign B | double ascending sign x | double descending sign BB)
- Redis set command line operation (intersection, union and difference, random reading, etc.)
- [staff] pitch representation (treble clef | C3 60 ~ B3 71 pitch representation | C4 72 pitch representation | C5 84 pitch representation)
- Which brand of running headphones is good? How many professional running headphones are recommended
- After marriage
- MongoDB非關系型數據庫
- 【做题打卡】集成每日5题分享(第二期)
- 使用开源项目【Banner】实现轮播图效果(带小圆点)
- 2022-2028 global human internal visualization system industry research and trend analysis report
猜你喜欢
verilog 并行块实现
Delphi xe10.4 installing alphacontrols15.12
How to create an instance of the control defined in SAP ui5 XML view at runtime?
A list of job levels and salaries in common Internet companies. Those who have conditions must enter big factories. The salary is really high
【JVM】创建对象的流程详解
Special symbols in SAP ui5 data binding syntax, and detailed explanation of absolute binding and relative binding concepts
C reflection practice
2022-2028 global wood vacuum coating machine industry research and trend analysis report
After marriage
多线程查询,效率翻倍
随机推荐
Actual battle of financial risk control - under Feature Engineering
Possible causes of runtime error
自定义组件的 v-model
2022-2028 global aluminum beverage can coating industry research and trend analysis report
Set status bar color
Remote connection to MySQL under windows and Linux system
Divorce for 3 years to discover the undivided joint property, or
Golang configure export goprivate to pull private library code
ZABBIX API creates hosts in batches according to the host information in Excel files
2022-2028 global encryption software industry research and trend analysis report
超图iServer rest服务之feature查询
Baohong industry | what misunderstandings should we pay attention to when diversifying investment
New programmer magazine | Li Penghui talks about open source cloud native message flow system
Unit · elementary C # learning notes
旋转框目标检测mmrotate v0.3.1 学习模型
[question 008: what is UV in unity?]
2022-2028 global soft capsule manufacturing machine industry research and trend analysis report
[JSON] gson use and step on the pit
AcWing 245. Can you answer these questions (line segment tree)
Special symbols in SAP ui5 data binding syntax, and detailed explanation of absolute binding and relative binding concepts