Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-12T20:17:44.227Z
Answers.LastActivityDate: 2020-05-12T20:17:44.227Z
Answers.UserDisplayName: Peter Langfelder
Body: <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>
  
Tags: <r><python><networks><wgcna>
Title: Importing a WGCNA co-expression network into a networkX graph in Python
ThreadText: # 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.
  
  
  ---
  
  