Possible changes to process_extract_pthresh?

some months ago, in a script of mine, I called the function process_extract_pthresh in this way:

pmap = process_extract_pthresh(‘GetPmap’, res.tmap, res.df);
[pmask, corr_p] = bst_stat_thresh(pmap, StatThreshOptions);
threshold_value = mean(corr_p);

it worked, now instead it outputs the following:


** Error: Line 26: feval
** Undefined function ‘GetPmap’ for input arguments of type ‘double’.
**
** Call stack:
** >bst_call.m at 26
** >macro_methodcall.m at 39
** >process_extract_pthresh.m at 27
** >brainstorm_process_stats_sources.m at 27

I assume you modified something, how can I emulate the previous behaviour?.
thanks in advance
Alberto

Hi Alberto,

This function was indeed moved to a different function for better readability:
brainstorm3/toolbox/math/bst_stat_thresh.m
Check the code directly for help with the input parameters.

Sorry for the inconvenience.
Francois