cmind.pipeline.cmind_stage_second_level

Functions

cmind_stage_second_level(output_dir, ...[, ...]) Build a first-level feat directory from separate first level .tar.gz files
cmind.pipeline.cmind_stage_second_level.cmind_stage_second_level(output_dir, tarfile_list, output_tar=None, preserve_subdir_names=True, verbose=False, logger=None)[source]

Build a first-level feat directory from separate first level .tar.gz files

Parameters:

output_dir : str

desired directory in which to extract the first level results for further processing

tarfile_list : list of str or str

list of .tar or .tar.gz files corresponding to first level analyses If string, this is assumed to be the path to a text file containing one tar file name per line

output_tar : str, optional

If provided, all first level subjects can be combined into a single .tar.gz

preserve_subdir_names : bool, optional

If provided, the subject directory names will match the basename of the input tar files (minus the .tar.gz extension)

verbose : bool, optional

print additional output (to terminal and log)

logger : logging.Logger or str, optional

logging.Logger object (or string of a filename to log to)

Returns:

level1_dir_list : str

list of the first-level feat analysis folders. Stored as output_dir/level1_dir_list.txt