当前位置:网站首页>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)
边栏推荐
- MongoDB非关系型数据库
- [staff] pitch representation (treble clef | C3 60 ~ B3 71 pitch representation | C4 72 pitch representation | C5 84 pitch representation)
- tarjan2
- Special symbols in SAP ui5 data binding syntax, and detailed explanation of absolute binding and relative binding concepts
- Baohong industry | four basic knowledge necessary for personal finance
- [staff] pitch representation (bass clef | C1 36 note pitch representation | C2 48 note pitch representation | C3 60 note pitch representation)
- Verilog 过程连续赋值
- Gradle notes
- 32, 64, 128 bit system
- 多线程查询,效率翻倍
猜你喜欢
LeetCode刷题(十)——顺序刷题46至50
CoordinatorLayout + TabLayout + ViewPager2(里面再嵌套一个RecyclerView),RecyclerView的滑动冲突解决
Common means of modeling: aggregation
Ten minutes will take you in-depth understanding of multithreading - multithreaded teamwork: synchronous control
ZABBIX API creates hosts in batches according to the host information in Excel files
Verilog 过程赋值 区别 详解
Multi threaded query, double efficiency
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-01 (phased learning)
[staff] diacritical mark (ascending sign | descending sign B | double ascending sign x | double descending sign BB)
随机推荐
2022-2028 global encryption software industry research and trend analysis report
CoordinatorLayout + TabLayout + ViewPager2(里面再嵌套一个RecyclerView),RecyclerView的滑动冲突解决
Coordinatorlayout + tablayout + viewpager2 (there is another recyclerview nested inside), and the sliding conflict of recyclerview is solved
创业了...
Just a few simple steps - start playing wechat applet
Find duplicates [Abstract binary / fast and slow pointer / binary enumeration]
Framing in data transmission
[JS reverse series] analysis of a customs publicity platform
Learning notes of software testing -- theoretical knowledge of software testing
Baohong industry | what misunderstandings should we pay attention to when diversifying investment
Xiaomi, a young engineer, was just going to make soy sauce
Formatting logic of SAP ui5 currency amount display
JS <2>
连通块模板及变式(共4题)
Redis set command line operation (intersection, union and difference, random reading, etc.)
2022-2028 global aluminum beverage can coating industry research and trend analysis report
Possible causes of runtime error
自定义组件的 v-model
2022 low voltage electrician test question simulation test question bank simulation test platform operation
tarjan2