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.

labcatalog.yaml

The project file, at the top of the project folder. Only project.name is required. Every key labcatalog does not know is reported as an error, so a misspelled key never passes silently.

# yaml-language-server: $schema=schemas/labcatalog.schema.json
project:
  name: My Lab Catalog

project

KeyTypeMeaning
nametextThe project’s name, shown in the window’s header. Required.

vocab

The allowed words for each dataset’s modality and reporter and each administration’s target.

KeyTypeDefaultMeaning
modalitieslist of text[questionnaire]Kinds of data in the project.
modality_labelsmappingnoneHow each modality reads in tables and prose, for example {eeg: EEG}.
reporterslist of textnoneWho provides data, for example [parent, child].
targetslist of textnoneWho an instrument can be about, for example [self, child].

missing_codes

A list of codes that mean “no answer”, each with a code (number or text) and a label. Blank cells always count as missing. A dataset’s own missing_codes replaces this list for that dataset.

missing_codes:
  - {code: -99, label: refused}
  - {code: "", label: blank}

defaults

KeyDefaultMeaning
id_columnidThe ID column of every dataset that does not set its own.
date_format%Y-%m-%dHow dates in date_columns are written, in Python’s strftime notation.

ids

KeyMeaning
patternA regular expression every participant ID must match.
group.nameThe name of the group, such as family.
group.from_idA regular expression whose first group reads the group from an ID. Without it, each study’s roster gives its people’s groups.

See IDs, Groups and Missing Codes.

studies

A mapping from each study’s ID to:

KeyTypeMeaning
labeltextHow the study reads in the window.
descriptiontextA sentence or two about the study, shown on the Datasets page.
referencetextThe key in references.bib of how to cite the study’s data.
wavesmappingEach wave’s key to its start and end dates (both optional). Pages, charts, retention and the analyses take the waves in the order they are written here.
milestoneslistDates to show on the Overview timeline, each with a name and a date.
rostermappingThe study’s people, see below.
id_patterntextA regular expression the study’s IDs must match, in place of ids.pattern, for a study that writes its IDs another way.
exclusionstextA path to a CSV file listing people (an id column), whole groups (a group column) or both, of the study, who must not be in the data. labcatalog check reports rows of the study’s datasets that belong to them.
custommappingValues of custom fields that apply to studies.

IDs belong to their study: two studies may both have a 1001P, and they are different people. So each study lists its own people and exclusions.

roster

A CSV file listing everyone in the study once, one row per person. Optional.

KeyDefaultMeaning
pathThe file, relative to the project folder.
id_columndefaults.id_columnThe column with each person’s ID.
group_columnnoneThe column with each person’s group, named by ids.group.name. Every dataset of the study takes its groups from here; a project gives ids.group.from_id or this, not both. A study without one links its files by ID.
role_columnnoneThe column with each person’s role, one of vocab.reporters. Each dataset’s respondents are then checked against its reporter.
instrumentnoneA demographics instrument describing the roster’s other columns, mapped to them in maps/roster_<study>.csv. The Analysis page offers its items for the people of every file of the study.

datasets

A list with one entry per data file.

KeyTypeMeaning
nametextThe dataset’s ID. Required. roster_<study> is taken by the participant roster of a study that has one.
modalitytextOne of vocab.modalities. Required.
studytextA study under studies. Required.
wavetextOne of the study’s waves. Required.
reportertextOne of vocab.reporters. Required.
sourcecsv or folderA table, or a folder of files. Required.
pathpathThe file, or the folder.
filestextFor a folder dataset: the files to count, with {id} where the path holds the ID.
id_columntextThe ID column, when it is not defaults.id_column.
respondent_columntextThe column with the ID of whoever filled in each row, when that is not the person the row is about. Counts of respondents use it.
date_columntextA column with the date each row was collected.
wave_columntextIn a file that holds several waves, the column naming each row’s wave; the dataset reads only the rows of its own wave.
maptextThe column map to read, as maps/<map>.csv, when the dataset shares one with others. Default: the dataset’s name.
wave_valuetextHow the wave column writes this dataset’s wave, such as T1, when not the same as wave.
occasionnames and valuesWhich time this is when one questionnaire is given several times in a wave, such as {time: before, interaction: peer}. Lists of variables show it after the wave, and the multilevel model can take each name as a factor.
scoresmappingEach instrument’s CSV file of the scores a script computes for this dataset, under the instrument’s ID, such as {my_scale: data/parent_w1_my_scale_scores.csv}. A file holds the ID column, then one column per score of that instrument, named by the score’s ID. It gives the values of the scores with method: script; a column for a summed or averaged score is checked against labcatalog’s own. When the dataset has a wave_column and the file has that column too, only the rows of the dataset’s wave count. An ID the file gives twice takes no score. Usually the outputs of prepare steps, added by the instrument page’s Scoring step.
snapshot_datedateThe date the file was exported.
missing_codeslistMissing codes for this dataset only.
custommappingValues of custom fields that apply to datasets.

custom_fields

A list of fields your lab adds to instruments, scores, administrations or datasets.

KeyMeaning
nameThe key under custom.
labelHow it reads in the window.
applies_toinstrument, score, item, administration, dataset or study.
typetext, number, date, choice or tags.
choicesThe allowed values of a choice or tags field.
vocabularyA vocabulary that comes with labcatalog, in place of choices: rdoc, the RDoC domains and their constructs. In the filters each term sits under its group, and a term also counts as its group.

browse

KeyDefaultMeaning
facets[study, wave, coverage, reporter, target, modality], then every choice and tags custom field, then statusThe filters on the Instruments page, in order. Built in: study, wave, coverage (given in every wave or in fewer), reporter, target, modality, status (complete or what the catalog still lacks); any choice or tags custom field can be added.

references

KeyDefaultMeaning
rootthe project folderThe folder holding references.bib and the reference PDFs. May start with ~ or contain environment variables.

stats

Settings that change the numbers, kept in the project so that everyone gets the same results. See Statistics.

KeyDefaultValues
correlate_byidid, the group’s name, or none: how people in different datasets are matched.
decimals21 to 4: decimal places of the numbers in tables and paragraphs; p values keep three.
missingavailableavailable (each analysis on everyone with values) or impute (multiple imputation in R) for the Analysis page.
imputations202 to 500: the number of imputed data sets.
seed1The imputation’s random seed.
correlationpearsonpearson or spearman.
t_testwelchwelch or student.
cfa_estimatorwlsmvThe estimator factor models and invariance tests start from: wlsmv (items as ordered categories), ml or mlr (items as continuous; mlr is robust maximum likelihood). The pages can switch it for what they show.
invariance_freenoneItems whose parameters an invariance test lets differ, each as {instrument, item, parameter, across}: parameter is loading, threshold or intercept, and across is waves, reporters, or the grouping item as instrument.item. Written by Save and rerun on the invariance tables.

llm

The language model the lab uses, set on the Settings page. API keys are never kept here; each person sets theirs in an environment variable, and a local server’s address is a setting of each computer. See Set Up R and Language Models.

KeyDefaultValues
provideranthropicanthropic, openai, gemini or local (an OpenAI-compatible server).
modelnoneThe model’s name, as the provider gives it.
raw_datavaluesWhat the model that drafts a cleaning script is given of the raw file: values (each column’s different values) or rows (its first 20 lines).

prepare and prepare_with

prepare is a list of steps, each with a name, the command to run, its inputs, its outputs and, optionally, its stage (clean, process, extract or score). A step that takes in a pipeline’s table has a table instead of run: the table’s path, the name, study, modality and reporter of what it makes and, optionally, split, columns, wave and label, as in From a pipeline’s table, which writes it; labcatalog runs that step itself. prepare_with: datalad runs each step through datalad run. See Register Prepare Steps.

analyses

The analyses kept from the Custom tab of the Analysis page, each with a name, its script (in the analyses folder, .R, .py or .inp), the datasets and variables it reads, every_dataset (only people in every dataset, the default, or anyone in one) and the request it was drafted from. See Analysis.

templates

The project’s wording of the paragraphs labcatalog writes, by template, each a text for each part it changes: participants and measures (or one text, their paragraph), and the Results templates (correlation, regression, missing, groups, agreement, cfa, invariance, multilevel, panel, mediation). See Templates.

schema_version

The version of this file’s format, written when labcatalog makes the project. Leave it as it is.