def fetch_filenames(subject_list, file_type):
    '\n        subject_list : list of short subject IDs in string format\n        file_type    : must be one of the available file types\n\n    returns:\n\n        filenames    : list of filetypes (same length as subject_list)\n    '
    filemapping = {'func_preproc': '_func_preproc.nii.gz', 'rois_aal': '_rois_aal.1D', 'rois_cc200': '_rois_cc200.1D', 'rois_ho': '_rois_ho.1D'}
    filenames = []
    subject_IDs = get_ids(short=True)
    subject_IDs = subject_IDs.tolist()
    full_IDs = get_ids(short=False)
    for s in subject_list:
        try:
            if (file_type in filemapping):
                idx = subject_IDs.index(s)
                pattern = (full_IDs[idx] + filemapping[file_type])
            else:
                pattern = (s + file_type)
            filenames.append(os.path.join(root_folder, s, pattern))
        except ValueError:
            filenames.append('N/A')
    return filenames
subject_list : list of short subject IDs in string format
    file_type    : must be one of the available file types

returns:

    filenames    : list of filetypes (same length as subject_list)
def fetch_filenames(subject_list, file_type):
    '\n        subject_list : list of short subject IDs in string format\n        file_type    : must be one of the available file types\n\n    returns:\n\n        filenames    : list of filetypes (same length as subject_list)\n    '
    filemapping = {'func_preproc': '_func_preproc.nii.gz', 'rois_aal': '_rois_aal.1D', 'rois_cc200': '_rois_cc200.1D', 'rois_ho': '_rois_ho.1D'}
    filenames = []
    subject_IDs = get_ids(short=True)
    subject_IDs = subject_IDs.tolist()
    full_IDs = get_ids(short=False)
    for s in subject_list:
        try:
            if (file_type in filemapping):
                idx = subject_IDs.index(s)
                pattern = (full_IDs[idx] + filemapping[file_type])
            else:
                pattern = (s + file_type)
            filenames.append(os.path.join(root_folder, s, pattern))
        except ValueError:
            filenames.append('N/A')
    return filenames