ephypype.nodes.create_datagrabber¶
- ephypype.nodes.create_datagrabber(data_path, template_path, template_args, field_template=None, infields=['subject_id', 'session_id'], outfields=['raw_file'])[source]¶
Create node to grab data using DataGrabber in Nipype.
- Parameters:
- data_pathstr
The base directory for the input data.
- template_pathstr
Input filename string (relative to base directory) along with string formatters (only %s allowed for now) and wildcard characters. Use it when outfields=[‘raw_file’].| E.g., ‘*%s/%s/meg/%s*rest*raw.fif’
- field_templatedict
Input filename string (relative to base directory) along with string formatters (only %s allowed for now) and wildcard characters for each element of outfields. E.g., ‘*%s/%s/meg/%s*rest*raw.fif’ If use field_template set template_path=’*’
- template_argslist of str
The arguments for the templates. Can be either ‘subject_id’ or ‘session_id’
- infieldslist
Indicates the input fields to be used in template_path, field_template. We have to connect to these input the output of
create_iterator()
- outfieldslist
Indicates output fields to be dynamically created
- Returns:
- datasourceinstance of pe.Node
The node which grabs the filenames.