osl_dynamics.analysis.workbench#

Functions to use Connectome Workbench.

Module Contents#

Functions#

setup(path)

Sets up workbench.

render(img[, save_dir, interptype, gui, inflation, ...])

Render map in workbench.

create_scene(cifti_left, cifti_right, inflation, ...)

visualise(cifti_left, cifti_right[, inflation, temp_scene])

image(cifti_left, cifti_right, file_name[, inflation, ...])

volume_to_surface(nii, surf, output[, interptype])

dense_timeseries(cifti, output, left_or_right)

Attributes#

surfs

osl_dynamics.analysis.workbench.surfs[source]#
osl_dynamics.analysis.workbench.setup(path)[source]#

Sets up workbench.

Adds workbench to the PATH environmental variable.

Parameters:

path (str) – Path to workbench installation.

osl_dynamics.analysis.workbench.render(img, save_dir=None, interptype='trilinear', gui=True, inflation=0, image_name=None, input_is_cifti=False)[source]#

Render map in workbench.

Parameters:
  • img (str) – Path to image file.

  • save_dir (str, optional) – Path to save rendered surface plots.

  • interptype (str, optional) – Interpolation type. Default is 'trilinear'.

  • gui (bool, optional) – Should we display the rendered plots in workbench? Default is True.

  • image_name (str, optional) – Filename of image to save.

  • input_is_cifti (bool) – Whether the input file is a CIFTI file.

osl_dynamics.analysis.workbench.create_scene(cifti_left, cifti_right, inflation, temp_scene)[source]#
osl_dynamics.analysis.workbench.visualise(cifti_left, cifti_right, inflation=0, temp_scene=None)[source]#
osl_dynamics.analysis.workbench.image(cifti_left, cifti_right, file_name, inflation=0, temp_scene=None)[source]#
osl_dynamics.analysis.workbench.volume_to_surface(nii, surf, output, interptype='trilinear')[source]#
osl_dynamics.analysis.workbench.dense_timeseries(cifti, output, left_or_right)[source]#