1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
ppi = string_db$get_interactions(genes_mapped$STRING_id) %>% distinct()
ppi = ppi %>%
dplyr::left_join(genes_mapped[,c(1,4)], by=c('from'='STRING_id')) %>% #列标序号根据具体情况而定
dplyr::rename(Gene1=gene) %>% ##列名根据具体情况而定
dplyr::left_join(genes_mapped[,c(1,4)], by=c('to'='STRING_id')) %>%
dplyr::rename(Gene2=gene) %>%
dplyr::select(Gene1, Gene2, combined_score)
head(ppi)
# Gene1 Gene2 combined_score
# 1 C3 TYROBP 240
# 2 ABCA12 GRHL3 308
# 3 FAM189A1 TM4SF20 400
# 4 ABCA12 NIPAL4 824
# 5 GRHL3 NIPAL4 275
# 6 GRHL3 IGDCC4 238
|