Answers.Body: <p>As far as I understand, it seems that the first table you provided contains biological/experimental information related to your genes, i.e. the nodes of the network you will build. The second table is the one you need to build the network: each line is an edge. You can use it as input and build the network using the IGraph library which works for both Python (as you requested) or R (as you suggested as an alternative).</p>
  
  <p>Most probably, but I can't say for sure, the first table was just a dataset from which you (or someone for you) recovered a list of nodes that where then submitted to a database, i.e. String, commonly used to recover information related to the interactions between your nodes, i.e. genes. Once you have this info (in the second table) you can build the network!</p>
  
  <p>edit:</p>
  
  <p>if you're not familiar with IGraph, you can have a look at this question describing <a href="https://stackoverflow.com/questions/36521723/read-edges-from-csv-file-to-igraph-using-python">how to obtain an IGraph graph from a csv file</a> or this other one which <a href="https://stackoverflow.com/questions/32610013/r-igraph-convert-a-csv-file-into-a-graph-file">uses a different csv file format to build a graph</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-30T12:58:32.627Z
Answers.LastActivityDate: 2018-11-30T13:14:34.560Z
Answers.LastEditDate: 2018-11-30T13:14:34.560Z
Answers.UserDisplayName: gbt
Body: <p>well, I'm new to Bio. what I'm going to do is create a network/graph of a dataset related to the genes I think. here's the sample of the nodes dataset with CSV format named lung-nodes : 
  <a href="https://i.sstatic.net/Rq8HJ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Rq8HJ.png" alt="enter image description here"></a></p>
  
  <p>and this is a sample of edges I think with trrust name :
  <a href="https://i.sstatic.net/MI1N9.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/MI1N9.png" alt="enter image description here"></a></p>
  
  <p>these data are stored in two separate file</p>
  
  <p>what I must do is create a graph(network) of these nodes and edges by Python and a visualization library like networkX, but I do not how. 
  I must make a relation between these to the dataset by creating a graph of them
  can you help me out? </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-30T10:54:37.910Z
Comments.Text: You must work in Python? Is this a homework assignment?
Comments.UserDisplayName: benn
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-30T11:19:51.813Z
Comments.Text: @benn, yes it is. I am not familiar so much with gene and protein properties. I already create a graph from social network dataset but they weren't like this. they had just two column in a single file. but right now i got two separate CSV file which contains bio info which i must create a graph of them. i think R studio could make it easier
Comments.UserDisplayName: Mohammad Heydari
Tags: <gene><networks><visualization>
Title: How to create a graph of multi column gene dataset?
ThreadText: # How to create a graph of multi column gene dataset?
  
  (Asked by: username_0 on 2018-11-30)
  
  well, I'm new to Bio. what I'm going to do is create a network/graph of a dataset related to the genes I think. here's the sample of the nodes dataset with CSV format named lung-nodes :
  [![enter image description here](https://i.sstatic.net/Rq8HJ.png)](https://i.sstatic.net/Rq8HJ.png)
  
  and this is a sample of edges I think with trrust name :
  [![enter image description here](https://i.sstatic.net/MI1N9.png)](https://i.sstatic.net/MI1N9.png)
  
  these data are stored in two separate file
  
  what I must do is create a graph(network) of these nodes and edges by Python and a visualization library like networkX, but I do not how.
  I must make a relation between these to the dataset by creating a graph of them
  can you help me out?
  
  **Tags:** gene, networks, visualization
  
  > **Comments:**
  > **username_1**: You must work in Python? Is this a homework assignment?  
  > **username_0**: @username_1, yes it is. I am not familiar so much with gene and protein properties. I already create a graph from social network dataset but they weren't like this. they had just two column in a single file. but right now i got two separate CSV file which contains bio info which i must create a graph of them. i think R studio could make it easier  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-11-30. Score: 1
  
  As far as I understand, it seems that the first table you provided contains biological/experimental information related to your genes, i.e. the nodes of the network you will build. The second table is the one you need to build the network: each line is an edge. You can use it as input and build the network using the IGraph library which works for both Python (as you requested) or R (as you suggested as an alternative).
  
  Most probably, but I can't say for sure, the first table was just a dataset from which you (or someone for you) recovered a list of nodes that where then submitted to a database, i.e. String, commonly used to recover information related to the interactions between your nodes, i.e. genes. Once you have this info (in the second table) you can build the network!
  
  edit:
  
  if you're not familiar with IGraph, you can have a look at this question describing [how to obtain an IGraph graph from a csv file](https://stackoverflow.com/questions/36521723/read-edges-from-csv-file-to-igraph-using-python) or this other one which [uses a different csv file format to build a graph](https://stackoverflow.com/questions/32610013/r-igraph-convert-a-csv-file-into-a-graph-file)
  
  
  ---
  
  