Section 3 Pathway crosstalk
3.1 Identify crosstalk
# gene interaction information merged from KEGG pathways
<- lapply(c("KEGG_environmental","KEGG_organismal"), function(network){
ls_ig <- xDefineNet(network, guid=guid)
g
})<- xCombineNet(ls_ig)
ig
# keep the largest component
<- dNetInduce(g=ig, nodes_query=V(ig)$name) %>% as.undirected()
ig2
# search for a subset (with a desired node number [30,35]) of the gene network
<- xPierSubnet(dTarget, network.customised=ig2, subnet.size=50)
subg
# write into a file 'subg_nodes.txt'
$priority %>% select(name,rank,rating,description) %>% semi_join(tibble(name=V(subg)$name), by='name') %>% write_delim("subg_nodes.txt", delim='\t') dTarget
3.2 Crosstalk genes
Crosstalk genes identified above (subg_nodes.txt
) can be explored: