xcp_d.interfaces.nilearn.IndexImage
- class xcp_d.interfaces.nilearn.IndexImage(check_import=True, *args, **kwargs)[source]
Select a specific volume from a 4D image.
- Mandatory Inputs:
in_file (a pathlike object or string representing an existing file) – A 4D image to index.
- Optional Inputs:
index (an integer) – Volume index to select from in_file. (Nipype default value:
0)out_file (a pathlike object or string representing a file) – The name of the indexed file. (Nipype default value:
img_3d.nii.gz)
- Outputs:
out_file (a pathlike object or string representing an existing file) – Concatenated output file.
Methods
__init__([check_import])Subclasses must implement __init__
aggregate_outputs([runtime, needed_outputs])Collate expected outputs and apply output traits validation.
help([returnhelp])Prints class help
load_inputs_from_json(json_file[, overwrite])A convenient way to load pre-set inputs from a JSON file.
run([cwd, ignore_exception])Execute this interface.
save_inputs_to_json(json_file)A convenient way to save current inputs to a JSON file.
Attributes
always_runShould the interface be always run even if the inputs were not changed? Only applies to interfaces being run within a workflow context.
can_resumeDefines if the interface can reuse partial results after interruption.
importsresource_monitorversioninterfaces should implement a version property