I now have lists for subjects, sessions, and runs that I iterate over, like:
inputnode.iterables = [ ('subject_id', subject_list), ('session_id', session_list), ('run_id', run_list), ]
Is there an easy way to specify that I only want to include, say, runs 1 and 5 of session X and runs 2 and 5 of session Y? For example, run 2 of session X might need to be excluded from the study.
Would the recommended way of doing this be something like this:
inputnode.iterables = [ ('subject_session_run_id', [('bob', 'X', 'run-01'),('bob', 'X', 'run-05'), ...]), ]
def get_subj(ssr): return ssr