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.

Datasets

The Datasets page shows each study and its data files: who is in each file, how complete their answers are, which values are missing and why, the versions of the data in DataLad, and the freezes made of the data.

The Datasets page listing the example's data files

List and Review at the top switch between the tables below and Review, each file’s scores side by side by wave; the search and filters apply to both.

Search and filters

The bar above the tables narrows the list. The search box finds a dataset by anything written for it under datasets in labcatalog.yaml (its name, file path, wave, reporter, modality, ID column, snapshot date and so on), by its study’s label, by the ID, name or abbreviation of an instrument it holds, by a column of its data, and by its own fields’ values and its study’s; every word must match. It also finds a dataset by the text of the items of its instruments. The buttons beside it each open a list of values with the number of datasets that have each: Study, Wave, Reporter, Modality, any custom field of datasets or studies that has choices or tags, and Problems (datasets with errors, with warnings only, or with none, as on the Problems page). Ticking several values of one button finds datasets with any of them; values of different buttons must all hold. A button with one value is not shown. Each value ticked shows as a chip below the bar; click its cross to drop it, or Clear to drop them all. The study chosen in the picker at the top right sets Study when you choose it, and you can change it here.

Studies

The datasets are grouped by study, under the study’s label; its description and citation are on the Studies page. Each study’s table lists its datasets:

ColumnMeaning
Dataset, Wave, Reporter, ModalityFrom the dataset’s entry in labcatalog.yaml.
RowsRows in the file.
IDsDistinct participant IDs; a row without an ID counts as no one.
CollectedThe first and last month in the date_column.
Data as ofThe dataset’s snapshot_date.

Click a row to open the dataset. For a folder of files, its summary also gives the number of Files its rule matches and their Size; when some of them are in DataLad and not downloaded yet, On this computer says how many are here and how much they take. The size of a file not downloaded comes from its git-annex key; when a key does not give it, the size reads “over” what is known.

Add a dataset

Add a dataset, above the tables, adds one CSV file to the project. It takes four steps:

  1. Start from: choose Repeat a dataset or A new kind of file.

    • Repeat a dataset is for a file like one the project already has, usually the same questionnaire in the next wave. Pick it under Same as. The new one takes that dataset’s modality, study, reporter, ID and date columns. The window suggests the next wave and a name with the wave number changed (parent_w1 becomes parent_w2). A folder of files takes the same folder and its files rule with the wave number changed (ses-1 becomes ses-2); check the match on the next step. A dataset read from a file that holds every wave (one with a wave_column) reads the same file again for the new wave.

    • A new kind of file is for the first dataset of a study, or a reporter or modality the project has not had before. Choose A table or A folder of files (such as scans or recordings), its Study, Modality and Reporter, and type its Name and Wave.

    Change the suggestions if needed, and set Data as of.

  2. Data: for a table, Choose the file as it came from the survey platform or the lab’s pipeline. labcatalog copies it into the project and leaves the original where it is. A new kind of file is copied to data/<name>.csv as it is. When repeating a dataset that is made by a prepare step, the copy goes where that step would read it, a new step with the new name is added, and it runs right away. If the step stops with an error, the window shows its log. When repeating a file that holds every wave, nothing is chosen or copied: the window says how many rows of that file have the new wave in the wave column, and lists the waves the file has when there are none. When the file writes its waves another way, such as T3, put that in Wave in the file; it starts from the value the repeated dataset had, with the new wave in place of the old (T2 becomes T3).

    For a folder of files, type the Folder or press Choose the folder, then say under Files which files to count, with {id} where the path holds the person’s ID, such as sub-{id}/ses-1/func/*_bold.nii.gz (* stands for any part of a name, **/ for any folders in between). The window finds the key-value fields in the paths, such as sub-01 and ses-1 in BIDS, and The ID is in chooses the field that holds the ID (sub- when there is one); for names with no such field, such as 1001C_fixations.csv, it can be the part that matches the study’s ID pattern. Under it are rules for each kind of file it found, with how many people and files each counts: a field whose values vary becomes *, and so does a date or a time in the names (PsychoPy’s 1001C_nback_2025-03-01_10h15.32.123.csv gives {id}_nback_*_*.csv) or any other word that differs in most files, a session folder such as ses-1/ keeps this dataset’s wave, and a field that some names leave out, such as run-, is covered by a *. Click a rule to put it under Files; the first is filled in when Files is empty. As you type, the window shows how many files of how many people match, who has more than one file, the IDs not in the study’s roster or not like its ID pattern, how many people in the roster (with a role column, those whose role is the dataset’s reporter) have no file there, and the first files it does not count. The folder is not copied: the dataset reads it where it is. Each person’s row counts their files, so a folder dataset has no columns to match and goes straight to the last step.

  3. Columns: for a new kind of file, first pick the ID column, and the Date column if the file has one. If the file holds several waves, one row per person per wave, pick its Wave column too: the dataset then reads only the rows of its own wave, and the window says how many there are. If the column writes the wave another way than the wave you gave, such as T1 for wave 1, put that in Wave in the file. Each further wave of that file is then added with Repeat a dataset. Below, each column of the new file is shown next to the instrument and item it belongs to, filled in where a column has the same name as in an existing column map, or as an item’s ID, or starts with an item’s ID (eps_10_w2). The labels above the table say how many items of each instrument were found. Fill in Instrument and Item for any column the window missed, and leave the ID, dates and other columns empty. Columns of an instrument the catalog does not have yet are added first in the Codebook step of the Set up page. A file that holds every wave keeps the column map of the dataset it repeats, since the new wave is in the same columns.

  4. Check and add: for a wave the study does not have yet, Wave starts is filled in with the first date in the data’s date column and Wave ends is left empty, with the last date in the data shown below; leave the end empty while the wave is still collecting. Then the lines that will be added to labcatalog.yaml (the dataset, the new wave and the new prepare step if any), the new column map in maps/, and the study file, where the dataset is added to each instrument’s administration. Add the dataset writes them all and opens the new dataset.

Cancel, or closing the window, removes the copied file. A new kind of file can have a modality or reporter the project has not listed: type it into the box, and it is added to vocab in labcatalog.yaml with the dataset. Before it writes anything, the window checks the project with the changes in place and stops if they would cause a new error. Folder datasets and files that hold every wave can be repeated, and so can datasets that are one CSV file, made by no prepare step or by one that reads a single file named after the dataset. For a file that needs a cleaning step of its own, see Add a Wave or Dataset.

Adding a folder of scans: the files rule and how many files and people it matches

A dataset

The top of a dataset’s page lists its study, wave, reporter and modality; its rows and IDs; with a group, the number of groups; how many people were also in the last wave that collected this modality and how many are new since then; when it was collected; and the data file, which opens in its own application when clicked. Fix IDs corrects the file’s IDs (see Check IDs). Codebook lists the codebook files kept for this dataset, or for another that shares its column map, and opens one in its own application; Add a file keeps another, such as the PDF the data came with, in codebook/<dataset>/source/. All datasets goes back to the list.

Below that:

Data versions

When the data are in DataLad, the Data versions panel lists each dataset the project reads with its unsaved changes and the versions not yet pushed to its sibling or merged from it. Save keeps the changes as a new version on this computer, Push sends saved versions to the sibling, and Update merges what others pushed and downloads the files the project reads. Under the table, History lists a dataset’s saved versions, with Rerun on those datalad run saved, Get everything downloads its file content and Free space removes it from this computer where a copy is kept elsewhere. The header shows a short note such as 2 unsaved; click it to come here. See Using labcatalog with DataLad.

Freezes

A freeze records every data file the catalog reads, the scores files of scores computed by a script among them, with its checksum, rows and participants, so you can say later which data a result used. A folder dataset is recorded by its files’ names and sizes, the size a DataLad file’s content has whether or not it is on this computer. Press Freeze, give the freeze a name such as 2026-06-submission, and press Freeze in the dialog. The record goes to freezes/. If the data are in DataLad, the freeze also saves each dataset and tags it with the name, so that version can be opened again later; otherwise the record shows whether the data changed, but cannot bring back data that were overwritten. If git would give some of these files other line endings on another computer, the dialog offers Keep line endings as they are, so a clone has the same files as the freeze.

The Freezes table lists every freeze, newest first. A freeze with a DataLad tag has an Open button, which opens a copy of the project as it was at that freeze. The header then says which freeze is shown and whether the data match its record, and Back to the project returns to the current project. Copy to... makes the same copy in a new folder of the folder you choose, to keep. See Using labcatalog with DataLad.

Get missing content

When a project is a DataLad clone whose files have not been downloaded yet, it cannot load, and the page shows Get missing content. It downloads the metadata and then the data files the project reads, and reloads the project. It needs the path to datalad on the Settings page.