Use Cytoscape Desktop to turn an edge list into a network and check which relationships are driving the result. For your first run, start with a network small enough to count by hand. Import the table as a network, assign the two endpoint columns, run Analyzer with the intended direction setting, and compare the summary and Node Table against your expected counts.
This tutorial uses fictional labels A through F. The figures show the actual Cytoscape interface using the manual’s example data. The expected numbers below are calculated from the teaching edge list.
What problem does Cytoscape solve?
Cytoscape shows connections between things and lets you attach information to both the things and their connections. In network terminology, the things are nodes and the connections are edges. In a research paper, nodes could represent proteins or genes, and edges could represent relationships drawn from a particular dataset. The definition of an edge depends on the dataset. A shared annotation, a statistical association and a measured physical interaction are different kinds of evidence, even when all three appear as lines in a diagram.

What should the input look like?
Save the following text as teaching-network.csv. The first line contains the column names. Each following line provides the two endpoints of a single edge. There are no self-loops or repeated pairs. In this exercise, every relationship is symmetric, so A–B means the same thing as B–A.
Source,Target A,B A,C A,D B,C E,F
Inspect the identifiers before importing a larger file. A trailing space or a change in spelling can split one intended node into two. Mixing gene symbols with database accessions can have the same effect. Use one identifier convention and retain a record of any mappings. If the original data distinguish relationship types, keep that information in a separate column so you can explain which relationships entered the analysis.

How do you import the file?
- Open Cytoscape Desktop and choose File → Import → Network from File.
- Select the CSV. Inspect the preview and verify that the two columns are separated and the header is recognised.
- Assign Source as the source node column and Target as the target node column. Complete the import.
- Check the network and edge table. You should see six nodes and five edges. The drawing may arrange them differently from the order in the file.
Import the CSV as a network. A table import is useful for joining annotations onto an existing network, but the first job here is to build the edges. If the preview shows the whole line as one field, check the delimiter before proceeding. If the header appears as an extra connection, check the import setting for column names. Verify what Cytoscape interpreted rather than fixing discrepancies by moving nodes around.

How do you run Analyzer and check the output?
Select the imported network, then use Tools → Analyze Network. Choose an undirected analysis for the teaching file. Although the import requires fields called source and target, the exercise does not assign a biological direction to any edge. The official manual identifies the analysis mode in the Results Panel. Node-specific metrics appear in the Node Table.

| Check | Expected result | Why |
|---|---|---|
| Nodes | 6 | A through F are present. |
| Edges | 5 | There is one edge per data row. |
| Connected components | 2 | A–D form one group and E–F form the other. |
| Degree | A: 3, B: 2, C: 2, D: 1, E: 1, F: 1 | Count the edges incident on each node. |
Node A connects to B, C and D, so its degree is three. B and C each connect to A and to one another, so each has degree two. Every undirected edge contributes one to the degree of each of its two endpoints. The degrees therefore sum to ten, twice the five edges. That is a useful independent check when a table has very few rows.

What can you infer about a highly connected node?
A has the highest degree in this network because three listed edges touch it. That statement is about the imported data. A higher degree can reflect broader coverage, a choice about which edge types to include, or the method used to collect relationships. Degree alone cannot establish that a gene is essential or that a protein physically binds every neighbour. Trace important edges back to their sources before giving them a biological interpretation.
For a second check, remove the B,C row from a copy of the CSV and analyse that network separately. A still has degree three. B and C each drop from two to one. The number of connected components stays at two because B and C can still reach one another through A. This demonstrates how a local metric can change even when a network-level summary stays the same. In research, that distinction helps when comparing networks made with different inclusion criteria.
How do you troubleshoot an unexpected result?
- Too many nodes. Inspect the input identifiers for differences in spelling, spaces or namespaces.
- Too many edges. Look for repeated rows, reverse duplicates, self-loops or multiple relationship types between the same pair. Decide which ones belong in your question.
- Missing nodes. An edge list represents entities that appear as endpoints. If your research question includes nodes with no connections, represent them explicitly and verify the final count.
- Unexpected degree columns. Check the analysis direction and whether you are viewing the current network. Directed edges distinguish incoming and outgoing connections.
When should you use a directed network?
Use direction when the source data define an ordered relationship. If a teaching edge is A to B, it contributes one to the outgoing degree of A and one to the incoming degree of B. Reversing that row changes which node receives each count. For symmetric relationships, use the undirected interpretation and explain that choice in your methods. A layout can put an apparent hub near the centre or at the edge of the drawing. Check its values in the Node Table before making a claim about its connectivity. In a classroom exercise, ask learners to predict the two degree counts before switching the analysis mode. That makes it easier to catch a mismatch between the meaning of the source data and the selected analysis setting.
What should you save for a report?
Keep the original edge list, a note about its provenance and filtering, the Cytoscape version, the direction setting, and the results table. Save the session if you need to revisit the visual layout. When including an image in a report, use a legend that defines the edges and any colours or sizes. Report how you treated repeated edges and what population of nodes the network represents. Those details make the output easier to reproduce and give the reader a basis for interpreting the reported statistics.
For related software, browse the BMB-UOG tools hub.
0 Comments
We will get back to you as soon as possible and thanks for the comment.