Skip to content

Loading Files

Tony edited this page Dec 1, 2026 · 3 revisions

Loading is how you get your data into MicrobeTrace. You add files in the Files view, check how MicrobeTrace read each one, and press Launch to build the network. Start here if you have not loaded anything yet.

Add files

Choose File > Add Data to open the Files view. Then drop files on it, or press Add Files and choose them. You can add several files at once.

Most analyses need one network file, plus a node list if you have attributes to show. A network file is a link list, a distance matrix, a FASTA file of sequences, or a Newick tree. A node list on its own adds attributes but no links.

Check what each file is

MicrobeTrace guesses each file's kind from its contents, and shows it as one of five buttons on the file's row: Link, Node, Matrix, FASTA or Newick. If it guessed from the contents, a note under the file name says so. If the guess is wrong, press the right button.

Each row also has column selectors for the kinds that need them:

  • Link files: Source, Target and Distance. Choose None for Distance if the file has no distance column.
  • Node files: ID, and Sequence if the file has sequences in a column (the default is None).
  • Matrix, FASTA and Newick files have no columns to choose.

MicrobeTrace picks likely columns by their names. If a row is incomplete, a red note on it says what is missing, such as "Choose the Source and Target columns." Launch stays disabled until every row is fixed.

To remove a file, press its remove button (a circled x). Its Resave button saves the file's contents as they were loaded.

Order matters

Where files disagree about a node's values, the file nearest the top of the list wins. To reorder files, drag the grip, or use the move up and move down buttons. On a file, Alt+Up and Alt+Down do the same. The Conflicts view lists the differences.

Files view settings

The panel on the left has these settings:

  • Distance Metric: the genetic distance MicrobeTrace computes from sequences. See Distance Metrics.
  • Also Compute: other metrics to keep on each link, to filter or color by later.
  • Ambiguities: how to handle ambiguous bases. See Distance Metrics.
  • Link Threshold: the same setting as in Settings. See Thresholds and Clusters.
  • Keep Links: Automatic, All Pairs, or Within Link Threshold. The last uses less memory, but raising the threshold later will not reveal more links.
  • View to Launch: the view shown first (Network, Bubbles or Table).
  • Session Recovery: Off or On. See Saving and Sessions.

The Sequence Settings button opens the alignment options. See Alignment.

Launch

Press Launch. A dialog shows the progress and a log. The log says how many nodes and links each file gave, and reports anything merged, skipped or dropped. Cancel stops the work, and your files stay listed.

Try the demo data

The Files view has a Try the demo data button. It opens a sample outbreak as a saved session, so you can explore the views before using your own data. It needs a connection until the demo has been saved for offline use. The same sample is also available as a zip file.

Open a session instead

File > Open… is different from Add Data. It opens a saved session (a .microbetrace file, or a .zip made by File > Save…) and does not read raw data files. See Saving and Sessions.

Clone this wiki locally