check_dcm2nii: Check Output from 'dcm2nii'

View source: R/check_dcm2nii.R

check_dcm2niiR Documentation

Check Output from dcm2nii

Description

This function checks whether the output from dcm2nii runs correctly in that only one nifti file is returned if only one exists

Usage

check_dcm2nii(
  dcm2nii_output,
  include_json = TRUE,
  ignore_roi_if_multiple = FALSE,
  uncorrected = FALSE
)

Arguments

dcm2nii_output

Output from dcm2nii command, must have nii_after element

include_json

Include JSON file if in the output?

ignore_roi_if_multiple

If multiple nifti files are found, ignore any that have the format if 'ROI1.nii', 'ROI2.nii', etc. See https://github.com/rordenlab/dcm2niix/issues/832

uncorrected

If TRUE, then the function will not attempt to grab the "corrected" image (e.g. normalized or tilt corrected).

Value

Character vector of unique nifti filenames


muschellij2/dcmniir documentation built on July 3, 2025, 6:25 p.m.