I am trying to perform a network analysis.
Currently I have a metabolic network, which has metabolites as nodes and gene (enzyme) information on each edges.
My goal is to find pairs of genes that are not on the same pathway. In other words, I'm trying to collect gene pairs that originate from a single metabolite node. These two genes (enzymes) would then diffuse to a different direction from that metabolite.
I have trying hard coding, but it seems to be too laborious and I thought maybe there would be a package or function in R that somebody have made before.
Can anyone suggest something?