bids-validator
bids-validator copied to clipboard
Validate TSV column contents using schema.objects.columns type and format information
trafficstars
Example rule:
ASLCONTEXT_TSV_INCONSISTENT: In the 'sub-<label>[_ses-<label>][_acq-<label>][_rec-<label>][_run-<index>]_aslcontext.tsv', the 'volume_type' can only be filled with volumes ['cbf' ,'m0scan', 'label', 'control', 'deltam'].
From objects.columns:
volume_type:
name: volume_type
display_name: ASL volume type
description: |
The `*_aslcontext.tsv` table consists of a single column of labels identifying
the `volume_type` of each volume in the corresponding `*_asl.nii[.gz]` file.
type: string
enum:
- control
- label
- m0scan
- deltam
- cbf
Replaces the following issues (non-exhaustive):
- 23:TSV_EMPTY_CELL
- PARTICIPANT_ID_PATTERN
- SAMPLE_ID_PATTERN
- CHANNELS_COLUMN_TYPE
- CHANNELS_COLUMN_TYPE_UPPER_CASE
- ASLCONTEXT_TSV_INCONSISTENT
@rwblair I think this is done?
Yup!