Skip to content

Link Lists

Tony edited this page Dec 1, 2026 · 1 revision

A link list is a table with one row for each link between two nodes. Each link records a relationship, such as a reported contact or a transmission event, and can carry a distance. Use it as your network file when you already know which pairs are linked. You can also add a node list to describe the nodes.

Accepted files

A link list can be a CSV, TSV, TXT or Excel file (.csv, .tsv, .txt, .xlsx or .xls). MicrobeTrace detects the separator from the contents: comma, tab, semicolon or bar. For an Excel file, only the first sheet is read.

A file that MicrobeTrace cannot recognize as another kind is read as a link list, so check the row's kind button in the Files view. Choose Link if the button says otherwise.

Choose the columns

On the file's row, choose three columns:

  • Source: the node at one end of the link.
  • Target: the node at the other end.
  • Distance: the link's distance, or None if the file has none.

MicrobeTrace picks the first column it finds named SOURCE, Source or source for Source, and TARGET, Target or target for Target. For Distance it looks for length, Length, distance, Distance, or the name of a distance metric. Check each choice, since the guess can be wrong. Source and Target must be different columns, and the row says so if they are not.

Every other column becomes a link attribute. You can use attributes to filter, color or plot the links.

What happens to the rows

  • Each distinct Source and Target ID becomes a node. IDs are compared as text, with the spaces around them removed.
  • Rows with a blank Source or Target are skipped.
  • A row whose Distance is empty, or is not a number, keeps its link but without a distance. The Link Threshold does not show such a link, and the log warns about it. A decimal comma is read as a decimal point, so 0,015 is 0.015.
  • With Distance set to None, the links have no distance and are shown at any threshold.
  • A link from a node to itself is dropped.
  • If a pair of nodes appears more than once, the later row overwrites the earlier one's values. The log reports it.

The distances go under the Distance Metric chosen in the Files view.

Example

source,target,length
A,B,1
A,C,2
B,C,1
A,D,.5

This list has four links, from A to B, A to C, B to C and A to D. Its distance column is length.

Clone this wiki locally