private/load_study.m
9e39a52b
 function StudyArgs = load_study(studyFile,model)
     studyID = strrep(studyFile,'.mat','');
     display(['LOAD STUDY ' studyID]);
 
     global SVMCROSSVAL_STUDYDIR;
     StudyArgs = load(fullfile(SVMCROSSVAL_STUDYDIR,studyFile));
 
     set(model.txtBaseDir,'String',StudyArgs.baseDir);
     set(model.txtStudyID,'String',studyID);
         
     set(model.subjectSelector,'String',StudyArgs.subjectSelectString);
     set(model.subjectSelector,'UserData',StudyArgs.subjectSelectString);
     set(model.subjectSelector,'Value',StudyArgs.subjectSelectValue);
     
     set(model.txtClassDef,'String',sprintf(StudyArgs.classdefString));
     
     set(model.txtPSTHStart,     'String',sprintf(StudyArgs.pststart));
     set(model.txtPSTHEnd,       'String',sprintf(StudyArgs.pstend));
     set(model.txtBaselineStart, 'String',sprintf(StudyArgs.baselinestart));
     set(model.txtBaselineEnd,   'String',sprintf(StudyArgs.baselineend));
     set(model.txtTrFactor,      'String',sprintf(StudyArgs.trfactor));
     set(model.labelTR,          'String',sprintf(StudyArgs.trlabel));
     
     set(model.imageTypeSelection, 'String'  ,StudyArgs.imageTypeSelectionString);
     set(model.imageTypeSelection, 'UserData',StudyArgs.imageTypeSelectionString);
     set(model.imageTypeSelection, 'Value'   ,StudyArgs.imageTypeSelectionValue);
     
     set(model.txtVoxelDef,'String',sprintf(StudyArgs.voxelString));
     
     set(model.selNormPST, 'Value',StudyArgs.selNormPSTValue);
     set(model.chkColBias, 'Value',StudyArgs.chkColBiasValue);
de857369
     
     %%%% 
     
     set(model.txtFrameShiftStart,'String', StudyArgs.frameshiftstart );
     set(model.txtFrameShiftEnd,'String',StudyArgs.frameshiftend);
     set(model.txtFrameShiftDur,'String',StudyArgs.frameshiftdur);
 
     set(model.txtSVMopts,'String',StudyArgs.svmoptstring );
     set(model.txtSVMnfold,'String',StudyArgs.svmnfold );
     set(model.chkSVMrnd,'Value',StudyArgs.svmrnd );
 
     set(model.txtSomM,'String',StudyArgs.somM);
     set(model.txtSomN,'String',StudyArgs.somN);
     set(model.selSomLattice,'Value',StudyArgs.latticeModelValue);
     set(model.txtSOMnfold,'String',StudyArgs.somnfold );
 
     set(model.txtSearchlightRadius,'String',StudyArgs.searchlightradius );
     set(model.txtSearchlightTimeline,'String',StudyArgs.searchlightTimeline);
 
9e39a52b
 end