Entering edit mode
6.4 years ago
Ati
▴
50
I would like to have the shortest path or distance between different pairs of genes in a network constructed by WGCNA R package.
I would like to have the shortest path or distance between different pairs of genes in a network constructed by WGCNA R package.
If you want to do it in python, https://networkx.github.io check Shortest Paths
If you want to do it in R, https://igraph.org/redirect.html check shortest.paths
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Thanks for the reply. Then which output should be used (Adjacency, TOM or dissTOM)?
You have to use one of the export network functions to get the network from WGCNA.