xcp_d.interfaces.utils module

Miscellaneous utility interfaces.

class xcp_d.interfaces.utils.ConvertTo32(from_file=None, resource_monitor=None, **inputs)[source]

Bases: SimpleInterface

Downcast files from >32-bit to 32-bit if necessary.

Optional Inputs:
  • anat_dseg (a pathlike object or string representing an existing file or None) – T1-space segmentation file. (Nipype default value: None)

  • bold_file (a pathlike object or string representing an existing file or None) – BOLD file. (Nipype default value: None)

  • bold_mask (a pathlike object or string representing an existing file or None) – BOLD mask file. (Nipype default value: None)

  • boldref (a pathlike object or string representing an existing file or None) – BOLD reference file. (Nipype default value: None)

  • t1w (a pathlike object or string representing an existing file or None) – T1-weighted anatomical file. (Nipype default value: None)

  • t2w (a pathlike object or string representing an existing file or None) – T2-weighted anatomical file. (Nipype default value: None)

Outputs:
  • anat_dseg (a pathlike object or string representing an existing file or None) – T1-space segmentation file.

  • bold_file (a pathlike object or string representing an existing file or None) – BOLD file.

  • bold_mask (a pathlike object or string representing an existing file or None) – BOLD mask file.

  • boldref (a pathlike object or string representing an existing file or None) – BOLD reference file.

  • t1w (a pathlike object or string representing an existing file or None) – T1-weighted anatomical file.

  • t2w (a pathlike object or string representing an existing file or None) – T2-weighted anatomical file.

class xcp_d.interfaces.utils.FilterUndefined(from_file=None, resource_monitor=None, **inputs)[source]

Bases: SimpleInterface

Extract timeseries and compute connectivity matrices.

Mandatory Inputs:

inlist (a list of items which are a string) – List of objects to filter.

Outputs:

outlist (a list of items which are a string) – Filtered list of objects.