niftynet.utilities.filename_matching module¶
-
class
niftynet.utilities.filename_matching.
KeywordsMatching
(list_paths=(), list_contain=(), list_not_contain=())¶ Bases:
object
This class is responsible for the search of the appropriate files to use as input based on the constraints given in the config file
-
classmethod
from_tuple
(input_tuple)¶ In the config file, constraints for a given search can be of three types: path_to_search, filename_contains and filename_not_contains. Each associated value is a string. Multiple constraints are delimited by a , This function creates the corresponding matching object with the list of constraints for each of these subtypes. :param input_tuple: :return:
-
matching_subjects_and_filenames
()¶ This function perform the search of the relevant files (stored in list_final) and extract the corresponding possible list of subject names (stored in name_list_final). :returns list_final, name_list_final
-
classmethod