xcp_d.workflows.restingstate module

Workflows for calculating resting state-specific metrics.

xcp_d.workflows.restingstate.init_alff_wf(name_source, TR, mem_gb, name='alff_wf')[source]

Compute alff for both nifti and cifti.

Workflow Graph

(Source code)

Parameters:
  • name_source

  • TR (float) – Repetition time of the BOLD run, in seconds.

  • mem_gb (dict) – Memory allocation dictionary

  • name (str, optional) – Name of the workflow. This is used for working directories and workflow graphs. Default is “compute_alff_wf”.

Inputs:
  • denoised_bold – This is the filtered, interpolated, denoised BOLD, although interpolation is not necessary if the data were not originally censored.

  • bold_mask – bold mask if bold is nifti

  • temporal_mask

  • name_source

Outputs:
  • alff – alff output

  • smoothed_alff – smoothed alff output

Notes

The ALFF implementation is based on Yu-Feng et al.[1], although the ALFF values are not scaled by the mean ALFF value across the brain.

If censoring is applied (i.e., fd_thresh > 0), then the power spectrum will be estimated using a Lomb-Scargle periodogram [2][3][4][5].

References

xcp_d.workflows.restingstate.init_reho_cifti_wf(name_source, mem_gb, name='cifti_reho_wf')[source]

Compute ReHo from surface+volumetric (CIFTI) data.

Workflow Graph

(Source code)

Parameters:
  • name_source

  • mem_gb (dict) – Memory allocation dictionary

  • name (str, optional) – Name of the workflow. This is used for working directories and workflow graphs. Default is “cifti_reho_wf”.

Inputs:
  • denoised_bold – residual and filtered, cifti

  • name_source

Outputs:

reho – ReHo in a CIFTI file.

xcp_d.workflows.restingstate.init_reho_nifti_wf(name_source, mem_gb, name='reho_nifti_wf')[source]

Compute ReHo on volumetric (NIFTI) data.

Workflow Graph

(Source code)

Parameters:
  • name_source

  • mem_gb (dict) – Memory allocation dictionary

  • name (str, optional) – Name of the workflow. This is used for working directories and workflow graphs. Default is “nifti_reho_wf”.

Inputs:
  • denoised_bold – residual and filtered, nifti

  • bold_mask – bold mask

  • name_source

Outputs:

reho – reho output