Submodules of the Import Module
xASL_wrp_DCM2NII.m
Format:
x = xASL_wrp_DCM2NII(x)
Description:
Run the dcm2nii part of the import.
- Initialize defaults of dcm2nii
- Create the temp directory for DCM2NII
- Import visit by visit, session by session, scan by scan for current subject
- Create summary file
- Clean-up
xASL_wrp_DCM2NII_Subject.m
Format:
[x, PrintDICOMFields, dcm2niiCatchedErrors] = xASL_wrp_DCM2NII_Subject(x, matches, dcm2niiCatchedErrors)
Description:
Run DCM2NII for one individual subject.
- Run DCM2NII for one individual subject
- Iterate over visits
- Loop through all sessions
- Iterate over scans
xASL_wrp_Deface.m
Format:
xASL_wrp_Deface(x)
Description:
Run defacing.
- Iterate over list of subjects
- Get subject labels
- Process all anatomical files (
xASL\_spm\_deface
)
xASL_wrp_NII2BIDS.m
Format:
x = xASL_wrp_NII2BIDS(x)
Description:
Run the NII2BIDS conversion.
- Load the study parameters + dataset description
- Create the study description output and verify that all is there
- Go through all subjects and check all the M0 and ASLs and modify the JSONs
xASL_wrp_NII2BIDS_Subject.m
Format:
x = xASL_wrp_NII2BIDS_Subject(x, bidsPar, studyParAll, nameSubjectSession)
Description:
Run NII to ASL-BIDS for one individual subject.
- Initialize
- Process the anat & perfusion files
-
- Make a subject directory
-
- Iterate over sessions
-
- Iterate over runs