Source code for CPAC.utils.interfaces.function.seg_preproc
"""Function interfaces for seg_preproc."""fromnipype.interfacesimportutilityasutil
[docs]defpick_tissue_from_labels_file_interface(input_names=None):"""Function to create a Function interface for CPAC.seg_preproc.utils.pick_tissue_from_labels_file. Parameters ---------- input_names : list, optional Returns ------- nipype.interfaces.base.core.Interface """# pylint: disable=import-outside-toplevelfromCPAC.seg_preproc.utilsimportpick_tissue_from_labels_fileifinput_namesisNone:input_names=["multiatlas_Labels","csf_label","gm_label","wm_label"]returnutil.Function(input_names=input_names,output_names=["csf_mask","gm_mask","wm_mask"],function=pick_tissue_from_labels_file,)