Lesson 17 of 20
Network graphs — position carries no meaning
Figs. 2E and 3C · the 1,105-gene DDX54 regulon
Fig. 2E draws the gene regulatory network ARACNe found. DDX54 alone regulates 1,105 genes.
A network graph is made of two things — nodes and edges. But only the edges are in the data. The data says “A and B are connected”; it says nothing about where A belongs on screen.
Node positions are decided by a layout algorithm, usually a force-directed one that pretends connected nodes attract and unconnected ones repel. And that algorithm gives a different answer every time you run it.
The three look nothing alike. And yet not one connected pair changed. Only the seed did.
Python
Runs in your browser
So is a network graph useless? No. It just answers a different question.
What a network graph answers
how tangled the whole thing is. Roughly how many blobs there are.
Whether edges pile onto one node. Fig. 2E is really showing “DDX54 has a lot of edges”
What it cannot answer
how many edges each node has. Which node is more central.
That is a bar chart's job
The same data. But now you can read how many. The graph was not bad — the question was different.
Python
Runs in your browser
🤔 Check yourself
Two nodes sit close together in a network graph. What does that mean?
Answer The only thing in the data is the edges. Position is a product of the algorithm and its random seed. Change the seed and the same network looks entirely different.
🤔 Check yourself
You want to show which gene connects to the most others. How?
Answer 'How many' is a number, and comparing numbers is what length does best. Leave the network as an illustration of the overall shape and let bars carry the ranking.