Warning: This document is for an old version of niworkflows. The main version is master.

niworkflows.interfaces.space module

Interfaces for handling spaces.

class niworkflows.interfaces.space.SpaceDataSource(from_file=None, resource_monitor=None, **inputs)[source]

Bases: nipype.interfaces.base.core.SimpleInterface

Generate a Nipype interface from a Space specification.

Example

>>> SpaceDataSource(
...     in_tuple=('MNIPediatricAsym:cohort-2', {'res': 2, 'den': '91k'})).run().outputs

cohort = 2
density = 91k
resolution = 2
space = MNIPediatricAsym
uid = MNIPediatricAsym_cohort-2_res-2
>>> SpaceDataSource(
...     in_tuple=('MNIPediatricAsym:cohort-2', {'res': 'native', 'den': '91k'})).run().outputs

cohort = 2
density = 91k
resolution = native
space = MNIPediatricAsym
uid = MNIPediatricAsym_cohort-2_res-native
input_spec

alias of niworkflows.interfaces.space._SpaceDataSourceInputSpec

output_spec

alias of niworkflows.interfaces.space._SpaceDataSourceOutputSpec