当前位置:网站首页>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)
边栏推荐
- 使用开源项目【Banner】实现轮播图效果(带小圆点)
- Provincial election + noi Part IV graph theory
- 结婚后
- Stack - es - official documents - filter search results
- 只需简单几步 - 开始玩耍微信小程序
- [staff] pitch representation (bass clef | C1 36 note pitch representation | C2 48 note pitch representation | C3 60 note pitch representation)
- Verilog 避免 Latch
- What is hybrid web containers for SAP ui5
- 创业了...
- Analysis of FLV packaging format
猜你喜欢
QT implementation interface jump
Batch detect whether there is CDN in URL - high accuracy
Xiaomi, a young engineer, was just going to make soy sauce
Which kind of sports headphones is easier to use? The most recommended sports headphones
连通块模板及变式(共4题)
小米青年工程师,本来只是去打个酱油
[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
Cache processing scheme in high concurrency scenario
2022-2028 global military computer industry research and trend analysis report
[staff] diacritical mark (ascending sign | descending sign B | double ascending sign x | double descending sign BB)
随机推荐
创业了...
Verilog 过程赋值 区别 详解
PHP notes - use Smarty to set public pages (include, if, else, variable settings)
How to create an instance of the control defined in SAP ui5 XML view at runtime?
Discussion on related configuration of thread pool
JS <2>
Jointly developed by nailing, the exclusive functions of glory tablet V7 series were officially launched
2022-2028 global encryption software industry research and trend analysis report
Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field
32, 64, 128 bit system
About DNS
流线线使用阻塞还是非阻塞
How to develop digital collections? How to develop your own digital collections
Verilog 线型wire 种类
3048. Number of words
[staff] diacritical mark (ascending sign | descending sign B | double ascending sign x | double descending sign BB)
Formatting logic of SAP ui5 currency amount display
Pychart creates new projects & loads faster & fonts larger & changes appearance
[Chongqing Guangdong education] Sichuan University concise university chemistry · material structure part introductory reference materials
2022-2028 global nano abrasive industry research and trend analysis report