You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: icatb_setup_spatial_chronnectome.m
    path of file: ./repos/gift/GroupICAT/icatb/icatb_helper_functions
    
    the code of the file until where you have to start completion: function icatb_setup_spatial_chronnectome(param_file)
%% Setup spatial chronnectome
%
% Inputs:
% 1. param_file - ICA Parameter file or spatial chronnectome parameter file

    
function icatb_setup_spatial_chronnectome(param_file)
%% Setup spatial chronnectome
%
% Inputs:
% 1. param_file - ICA Parameter file or spatial chronnectome parameter file
%
%

icatb_defaults;
global UI_FS;
global PARAMETER_INFO_MAT_FILE;

%% Select spatial chronnectome file
if (~exist('param_file', 'var'))
    param_file = icatb_selectEntry('title', 'Select ICA/spatial chronnectome Parameter File', 'typeEntity', 'file', 'typeSelection', 'single', 'filter', ['*', PARAMETER_INFO_MAT_FILE, '.mat;*schronn.mat']);
    drawnow;
    if (isempty(param_file))
        error('ICA/spatial chronnectome parameter file is not selected');
    end