Skip to content

Restructuring JSON importing for BIDS #572

@BeatrizPadrela

Description

@BeatrizPadrela

Description

We need to restructure the functions for NII2BIDS import of JSON to make it easy to be called externally for the purpose of correcting JSONs for OASIS.

Requirements

  • For OASIS: Go through all directories and check all JSON files and modify them in the following way:

    • For structural files. Correct JSONs using the following: 👍
      • jsonAnat = xASL_bids_JsonBIDSifyAnat(jsonAnat); Note this additional function now with different name
      • jsonAnat = xASL_bids_VendorFieldCheck(jsonAnat);
      • jsonAnat = xASL_bids_JsonCheck(jsonAnat,'');
    • For ASL files: 👍
      • Complete insides of xASL_imp_NII2BIDS_SubjectSessionRun have to be used, copy pasted to the OASIS script, and called for each session and filenames changed in the code - but only in the code, not in the subfunctions.
  • To prepare for this

    • Fix issue ExploreASL version in Legacy data #603 to have ExploreASL version used for import 👍
    • Put the RepetitionTime extra field check inside a new function xASL_bids_JsonBIDSify and add an 'anat' option there 👍
    • Put all the JSON checking and manipulation to a subfunction for ASL and M0 👍
    • Make sure that the IntendedFor and other parameters are correctly assigned 👍

How to test

Release notes

Restructured JSON handling during NiFTI to BIDS import

Metadata

Metadata

Labels

bidsMoving ExploreASL to BIDS compatibility

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions