qsiprep.workflows.dwi.distortion_group_merge module

Merging Distortion Groups

qsiprep.workflows.dwi.distortion_group_merge.init_distortion_group_merge_wf(merging_strategy, inputs_list, source_file, output_prefix, name) LiterateWorkflow[source]

Create an unbiased intramodal template for a subject. This aligns the b=0 references from all the scans of a subject. Can be rigid, affine or nonlinear (BSplineSyN).

Parameters:
  • inputs_list (list of inputs) – List if identifiers for inputs. There will be bvals, bvecs, niis and original bvecs.

  • merging_strategy (str) – ‘average’: averages images that originally sampled the same q-space coordinate ‘concat’: concatenates images in the 4th dimension

Inputs:
  • [workflow_name]_image… – One input for each volume in each input image.

  • [workflow_name]_bval… – One input for each input image. path to the corresponding bval file

  • [workflow_name]_bvec… – One input for each input image. path to the corresponding final bvec file

  • [workflow_name]_original_bvec… – One input for each input image. Path to the original bvec file

  • [workflow_name]_original_image… – One input for each input image. Path to the original dwi file

  • [workflow_name]_raw_concatenated_image – One input for each input image. Path to the original images after concatenation

  • [workflow_name]_confounds – One input for each input image. Path to the confounds files

  • [workflow_name]_b0_ref – One input for each input image. Path to the b=0 reference image

  • [workflow_name]_carpetplot_data – One input for each input image. Path to the hmc carpetplot data

Outputs:
  • merged_image – The input images merged into a single image (averaged or concatenated)

  • merged_bval – The bvals corresponding to merged_image

  • merged_bvec – The bvecs corresponding to merged_image

  • merged_qc – The Before/After QC file

  • merged_interactive_report – The interactive report data