+# Denes Turei (turei.denes@gmail.com) 2022
+ attrs_a = 'external_gene_name',
+ attrs_b = 'associated_gene_name'
+ human_ensg = ensembl_gene_id,
+ human_genesymbol = external_gene_name,
+ killi_ensg = b_ensembl_gene,
+ confidence = b_orthology_confidence,
+ type = b_orthology_type,
+ killi_genesymbol = b_associated_gene_name
+ mutate(record_id = 1L:n()) %>%
+ human_genesymbol = genesymbol,
+ human_uniprot = uniprot
+ killi_uniprot = trembl,
+ killi_genesymbol_2 = genesymbol,
+ select(human_genesymbol, killi_genesymbol) %>%
+ filter(!is.na(human_genesymbol) & !is.na(killi_genesymbol)) %>%
+ select(killi_genesymbol, killi_uniprot) %>%
+ filter(!is.na(killi_uniprot)) %>%
+ import_omnipath_interactions() %>%
+ mutate(interaction_record = 1L:n()) %>%
+ by = c('source_genesymbol' = 'human_genesymbol')
+ select(-source_genesymbol, -source) %>%
+ left_join(killi_uniprot, by = 'killi_genesymbol') %>%
+ source = killi_uniprot,
+ source_genesymbol = killi_genesymbol
+ by = c('target_genesymbol' = 'human_genesymbol')
+ select(-target_genesymbol, -target) %>%
+ left_join(killi_uniprot, by = 'killi_genesymbol') %>%
+ target = killi_uniprot,
+ target_genesymbol = killi_genesymbol