<p>You can use <code>exportNetworkToCytoscape</code> or <code>exportNetworkToVisANT</code> to generate and egde list file with the two nodes at the ends and weight for each edge. Hopefully there's a way to import that into networkX. </p>

CC BY-SA 4.0
2020-05-12T20:17:44.227Z
2020-05-12T20:17:44.227Z
Peter Langfelder
<p>Is there a way to generate a WGCNA co-expression graph in R, and then to import that graph into Python such that I can represent it using a <a href="https://networkx.github.io/" rel="nofollow noreferrer">networkX</a> object? </p>

<r><python><networks><wgcna>
Importing a WGCNA co-expression network into a networkX graph in Python
# Importing a WGCNA co-expression network into a networkX graph in Python

(Asked by: username_0 on 2020-05-12)

Is there a way to generate a WGCNA co-expression graph in R, and then to import that graph into Python such that I can represent it using a [networkX](https://networkx.github.io/) object?

**Tags:** r, python, networks, wgcna

---

## 1 answers

### Answer by username_1 on 2020-05-12. Score: 2 | Accepted answer

You can use `exportNetworkToCytoscape` or `exportNetworkToVisANT` to generate and egde list file with the two nodes at the ends and weight for each edge. Hopefully there's a way to import that into networkX.


---

