This worked for changing the scouts. The new scouts are visible in head models. I can't get the new scouts to run in the Perm test though.
The issue is that some of the scouts are empty now (= []). The test seems to run if only the scouts with vertices are included in 'scoutsel'. The scouts with and without vertices are going to change across analyses which are done within a loop. Is there a way to run this test without having to select the individual scouts within the Atlas every time? Or to ignore those that are empty = []?
% Process: Perm t-test equal [] H0:(A=B), H1:(A<>B)
sFiles3 = bst_process('CallProcess', 'process_test_permutation2', sFiles1, sFiles2, ...
'timewindow', Times, ...
'scoutsel', {'Desikan-Killiany_02', {'bankssts L', 'bankssts R', 'caudalanteriorcingulate L', 'caudalanteriorcingulate R', 'caudalmiddlefrontal L', 'caudalmiddlefrontal R', 'cuneus L', 'cuneus R', 'entorhinal L', 'entorhinal R', 'frontalpole L', 'frontalpole R', 'fusiform L', 'fusiform R', 'inferiorparietal L', 'inferiorparietal R', 'inferiortemporal L', 'inferiortemporal R', 'insula L', 'insula R', 'isthmuscingulate L', 'isthmuscingulate R', 'lateraloccipital L', 'lateraloccipital R', 'lateralorbitofrontal L', 'lateralorbitofrontal R', 'lingual L', 'lingual R', 'medialorbitofrontal L', 'medialorbitofrontal R', 'middletemporal L', 'middletemporal R', 'paracentral L', 'paracentral R', 'parahippocampal L', 'parahippocampal R', 'parsopercularis L', 'parsopercularis R', 'parsorbitalis L', 'parsorbitalis R', 'parstriangularis L', 'parstriangularis R', 'pericalcarine L', 'pericalcarine R', 'postcentral L', 'postcentral R', 'posteriorcingulate L', 'posteriorcingulate R', 'precentral L', 'precentral R', 'precuneus L', 'precuneus R', 'rostralanteriorcingulate L', 'rostralanteriorcingulate R', 'rostralmiddlefrontal L', 'rostralmiddlefrontal R', 'superiorfrontal L', 'superiorfrontal R', 'superiorparietal L', 'superiorparietal R', 'superiortemporal L', 'superiortemporal R', 'supramarginal L', 'supramarginal R', 'temporalpole L', 'temporalpole R', 'transversetemporal L', 'transversetemporal R'}}, ...
'scoutfunc', 1, ... % Mean
'isnorm', 0, ...
'avgtime', 1, ...
'iszerobad', 1, ...
'Comment', '', ...
'test_type', 'ttest_unequal', ... % Student's t-test (unequal variance) t = (mean(A)-mean(B)) / sqrt(var(A)/nA + var(B)/nB)
'randomizations', 4000, ...
'tail', 'two'); % Two-tailed