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.

Your First Project

This page sets up a project for one data file and one questionnaire. Everything else (more waves, more instruments, other modalities) is more of the same.

Create the folder

In the window, choose New project under Open in the header, give the name my_project and the folder to put it in, and press Create. labcatalog creates my_project/ with an almost empty labcatalog.yaml, the folders instruments/, studies/, maps/ and data/, and schemas/, and opens it. The comments in labcatalog.yaml show an example of every setting.

Describe the study

Open labcatalog.yaml. Name the reporters who answer your questionnaires, and describe your study and its waves:

vocab:
  modalities: [questionnaire]
  reporters: [parent]

studies:
  my_study:
    label: My Study
    waves:
      1: {start: 2026-01-15}

A wave without an end date is still collecting data.

Add a dataset

Put your cleaned data file in data/, for example data/parent_w1.csv, with one row per person and an ID column. Then add an entry for it:

datasets:
  - {name: parent_w1, modality: questionnaire, study: my_study, wave: 1, reporter: parent, source: csv, path: data/parent_w1.csv, id_column: record_id}

id_column is the name of the column that holds the participant IDs. If it is id in every file, you can leave it out. Studies, Waves and Datasets explains each key.

Add the instruments and map the columns

labcatalog now needs to know which questionnaire each column belongs to. The quickest way is to import a codebook: go to the Set up page of the window, open its Add data step, pick parent_w1 under Files without a column map, and press Create the three files, or Create from a REDCap data dictionary, Create from a Qualtrics survey file or Create from an SPSS file if you have one. Fill in the three CSV files, press Check and import, and labcatalog writes the instrument files in instruments/ and the column map maps/parent_w1.csv. Add an Instrument describes this and the other ways.

Say which instruments were given

The last step tells labcatalog which instruments were given in which data files. Create studies/my_study.yaml:

study: my_study
administrations:
  - {instrument: my_questionnaire, datasets: [parent_w1]}

After an import, the Add data step shows the exact lines to add.

Check the project

In the window, press Refresh and open the Problems page. It lists every mistake in the YAML files and column maps, and every value in the data that does not fit the metadata. labcatalog check -p my_project prints the same list in a terminal.