MineBugs
MINeBugs
New SimulationGuide

Chapter 1 · Run a simulation

Upload your data

Send a list of taxa, or a matrix with one column per patient, and match it to AGORA2 models.

  • 5 min read
  • In the app: New Simulation

In short

You need
A CSV file with the names of the taxa you found. An abundance column is optional.
You do
Pick Single sample or Cohort (matrix), drop the file, start the mapping.
You get
One AGORA2 model for each taxon, to check in the next chapter.

1Open the upload page

Log in, then click New Simulation in the top bar.

The upload page: the mode switch, the drop area and the link to the file formats
  1. The switch: Single sample or Cohort (matrix). Pick it before you add the file.
  2. Drop the file here, or click browse.
  3. Consult the guide opens the file formats of this chapter.

Open New Simulation

2Single sample or cohort

The switch decides how many simulations you get.

Single sample
One list of taxa, with abundances if you have them. One simulation, one report.
Cohort (matrix)
Taxa in rows and one column per patient. One simulation per patient, all under one cohort report.
A cohort matrix loaded on the upload page, ready to start
  1. The reminder that the run makes one simulation per patient.
  2. What the file was read as: here 38 taxa and 12 patients.
  3. The start button, Start Cohort Mapping in this mode.

3File formats

Three rules hold for every file, which can then take one of three shapes.

Extension
.csv or .txt. Other files are refused.
Separator
A comma. Tab separated files are not read: save the file as CSV first. A value with a comma inside can sit between double quotes.
Header
The first line is always read as the header. A list without one is refused, and in a matrix the first taxon would become the patient names.

Names only

One column with the species names. Without abundances, every mapped taxon counts the same. Example file

1taxa_name
2Akkermansia muciniphila ATCC BAA 835
3Alistipes onderdonkii DSM 19147
4Alistipes shahii WAL 8301
5Anaerostipes hadrus DSM 3319
34 more taxa in the example file

Names with abundance

A second column with the relative abundance of each taxon, so the simulation follows the real make-up of your sample. Example file

1taxa_name,abundance
2Akkermansia muciniphila ATCC BAA 835,0.00038715190176129
3Alistipes onderdonkii DSM 19147,0.0103485526282366
4Alistipes shahii WAL 8301,0.00926867779264699
5Anaerostipes hadrus DSM 3319,0.0320599832168252
34 more taxa in the example file

Cohort matrix

Taxa in rows, patients in columns. The first cell of the header is ignored, the others name the patients, and each row gives one value per patient. Example file

1taxon,MS01,MS02,MS03,MS04
2Akkermansia muciniphila ATCC BAA 835,0.035258,0.048925,0.048543,0.046121
3Alistipes onderdonkii DSM 19147,0.001379,0.03278,0.024355,0.043993
4Alistipes shahii WAL 8301,0.015165,0.040004,0.01406,0.015082
35 more taxa, and patients MS05 to MS12, in the example file
Accepted column names5 names for the taxa, 6 for the abundance

Taxa column: taxa_name taxon name species organism

Abundance column: abundance relative_abundance rel_abundance count value proportion

Rules for a cohort matrixAbsent taxa, patient names, size
  • A 0, or an empty cell, means the taxon is absent in that patient.
  • Patient names must be unique and not empty. They carry through to the report, so use the labels of your study.
  • Every row has as many cells as the header, and every value after the taxon name is a number.
  • Up to 200 patients per matrix.

4Patient metadata (optional)

For a cohort, a second file can say who each patient is: healthy or ill, sex, age, anything else.

The report then puts the patients in groups and filters them, for example to compare patients with MS and healthy people. The metadata never change a simulation, so you can also add them, or replace them, later from the cohort report (chapter 6).

A metadata file added under the cohort matrix, with what was read from each column
  1. The file you added, and whether it was read cleanly.
  2. How many columns were read, and for how many patients.
  3. Expand lists every patient with the values read from the file, and says under each column whether it was read as numbers or as categories.

One row per patient. The first column holds the patient's ID, written as in the matrix. Every other column is one piece of information, and its header is the name the report shows. Example file

1patient_id,condition,sex,age
2MS01,RRMS,F,34
3MS02,RRMS,F,29
4MS03,SPMS,M,51
patients MS04 to MS12 in the example file

Most often the groups are MS and healthy. Every patient of the example matrix has MS, so the example file splits them by the course of the disease: RRMS (relapsing-remitting) and SPMS (secondary progressive).

Rules for a metadata fileIDs, columns, values, size
  • Commas, semicolons or tabs all work, so a file saved from Excel is fine.
  • The first line is the header. Up to 20 columns, each with its own name of up to 40 characters.
  • A column of numbers only, such as age or glycemia, filters by range and splits into ranges at thresholds you choose in the report. Any other column holds categories: up to 5 different values can split the report into groups, more can only filter it.
  • Capital letters do not matter: MS and ms are the same value.
  • An empty cell means not specified: that patient goes in a grey group of its own.
  • A patient of the matrix missing from the file is not specified everywhere. A patient in the file who is not in the matrix is left out, with a note.
  • A patient listed twice, a row with more cells than the header, or a value longer than 100 characters stop the file. The file can be up to 1 MB.

Suggested names: condition, sex, age. If your study follows the MIxS standard, host_disease_stat, host_sex and host_age work just as well.

Errors appear in red and keep the start button off. Notes appear in amber and let you go on.

5The file check

As soon as you drop the file, your browser checks it against the mode you picked. Nothing has been sent yet.

A single sample file loaded, with its summary line and the table preview
  1. The summary line. Check that the number of taxa is the one you expect.
  2. Show preview opens the file as a table (open here, so the button reads Hide preview). Show raw text shows the lines as they are.
  3. The start button, Start Mapping Pipeline for a single sample. It stays off while the file has errors.

Errors appear in red and block the start button: no taxa column, a row with the wrong number of cells, a value that is not a number, a repeated or empty patient name, more than 200 patients.

Warnings appear in amber and let you go on: a taxon listed twice, or a matrix with a single patient.

6Start the mapping

With a clean check, the start button turns on.

While the file is sent, the button reads Uploading Data…: keep the tab open until it is done.

The upload page while the mapping job waits and runs

The page then follows the job: Queuing Job... while it waits for a free worker, Mapping Taxonomy... while your taxa are matched to AGORA2. It takes a few seconds to a few minutes, depending on the number of taxa.

If the mapping does not finish, the page says so. It is often a temporary problem on the computing cluster: start it again, and if it keeps failing, contact support. If your session expires while you wait, sign in again: the mapping goes on, and you will find it in your history (chapter 4).

When it ends, the Taxa Review opens by itself, and the next chapter starts there.