Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Add a Wave or Dataset

Every new data file is a new dataset: a new wave of a study you already have, a new reporter, or a new modality.

Add a wave

Add the wave on the Studies page with Add wave, or to its study in labcatalog.yaml:

studies:
  my_study:
    waves:
      1: {start: 2025-01-15, end: 2025-09-30}
      2: {start: 2026-01-15}

Add a dataset from the window

Press Add a dataset on the Datasets page, or on a study’s Datasets tab on the Studies page. The window copies the file in, matches its columns to the catalogued items, and shows the changes to labcatalog.yaml, the column map and the study file before writing them. A new wave is added to the study with its start taken from the data’s first date, and an end you can fill in. It starts in one of two ways:

See Datasets. For a file that needs a cleaning step of its own, or a dataset made by a more involved prepare step, follow the steps below.

Add a CSV dataset

Put the cleaned file where the project can reach it, usually data/, and add an entry under datasets:

datasets:
  - {name: parent_w2, modality: questionnaire, study: my_study, wave: 2, reporter: parent, source: csv, path: data/parent_w2.csv}

The file needs one row per person and a column with the participant ID (id, or the name given in id_column). Save files from Excel as CSV UTF-8. Studies, Waves and Datasets lists the optional keys, such as date_column and snapshot_date.

If the modality or the reporter is new, add it to vocab.modalities or vocab.reporters too.

Add a folder dataset

For data that are files rather than a table, such as scans in a BIDS folder, a folder dataset counts each person’s files. The Add a dataset window writes it for you (A new kind of file, then A folder of files); by hand, it is one line:

  - {name: fmri_w2, modality: fmri, study: my_study, wave: 2, reporter: child, source: folder, path: /data/bids, files: "sub-{id}/ses-2/func/*_bold.nii.gz"}

Its data are the ID and a files column with the number of matching files. Map files to a number item of an instrument (for example “Resting-state runs”) to see who has data in each wave. When a pipeline later extracts features, add them as a CSV dataset.

Map its columns

A new dataset needs a column map and an administration for each instrument in it.

Then add the new dataset to each administration in the study file:

administrations:
  - {instrument: parent_stress, datasets: [parent_w1, parent_w2], target: self}

Run labcatalog check, or press Refresh in the window, and look at the Problems page.