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_display_stats_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_display_stats_spatial_chronnectome(schronnInfo)
% Display spatial chronn
    
function [p_masked, p]  = get_sig_pvalues(p, thresh, criteria)
% apply fdr correction

p_masked = thresh;
if (strcmpi(criteria, 'mafdr'))
    p = mafdr(p);
elseif(strcmpi(criteria, 'fdr'))
    p_masked = icatb_fdr(p, thresh);
end