bids-validator icon indicating copy to clipboard operation
bids-validator copied to clipboard

Validate TSV column contents using schema.objects.columns type and format information

Open effigies opened this issue 2 years ago • 1 comments
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

effigies avatar Feb 07 '23 13:02 effigies

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

effigies avatar Feb 11 '23 16:02 effigies

@rwblair I think this is done?

effigies avatar Aug 01 '24 16:08 effigies

Yup!

rwblair avatar Aug 01 '24 18:08 rwblair