Browse code

studychange works. added gui elements for spatial and temporal grouping

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@200 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on30/07/2009 20:05:36
Showing1 changed files
... ...
@@ -12,7 +12,7 @@ function StudyArgs = load_study(studyFile,model)
12 12
     set(model.subjectSelector,'UserData',StudyArgs.subjectSelectString);
13 13
     set(model.subjectSelector,'Value',StudyArgs.subjectSelectValue);
14 14
     
15
-    set(model.txtClassDef,'String',sprintf(StudyArgs.classdefString));
15
+    set(model.txtClassDef,'String',StudyArgs.classdefString);
16 16
     
17 17
     set(model.txtPSTHStart,     'String',sprintf(StudyArgs.pststart));
18 18
     set(model.txtPSTHEnd,       'String',sprintf(StudyArgs.pstend));
... ...
@@ -25,16 +25,19 @@ function StudyArgs = load_study(studyFile,model)
25 25
     set(model.imageTypeSelection, 'UserData',StudyArgs.imageTypeSelectionString);
26 26
     set(model.imageTypeSelection, 'Value'   ,StudyArgs.imageTypeSelectionValue);
27 27
     
28
-    set(model.txtVoxelDef,'String',sprintf(StudyArgs.voxelString));
28
+    set(model.txtVoxelDef,'String',StudyArgs.voxelString);
29 29
     
30
-    set(model.selNormPST, 'Value',StudyArgs.selNormPSTValue);
31
-    set(model.chkColBias, 'Value',StudyArgs.chkColBiasValue);
30
+    set(model.selNormPST,       'Value',StudyArgs.selNormPSTValue);
31
+    set(model.chkColBias,       'Value',StudyArgs.chkColBiasValue);
32
+    set(model.selRoiGrouping,   'Value',StudyArgs.roiGroupingValue);
32 33
     
33 34
     %%%% 
34 35
     
35 36
     set(model.txtFrameShiftStart,'String', StudyArgs.frameshiftstart );
36 37
     set(model.txtFrameShiftEnd,'String',StudyArgs.frameshiftend);
37 38
     set(model.txtFrameShiftDur,'String',StudyArgs.frameshiftdur);
39
+    
40
+    set(model.selTimeframeGrouping,'Value',StudyArgs.timeframeGroupingValue);
38 41
 
39 42
     set(model.txtSVMopts,'String',StudyArgs.svmoptstring );
40 43
     set(model.txtSVMnfold,'String',StudyArgs.svmnfold );
Browse code

almost all "change study" features implemented. needs testing.

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@199 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on30/07/2009 18:46:52
Showing1 changed files
... ...
@@ -29,6 +29,25 @@ function StudyArgs = load_study(studyFile,model)
29 29
     
30 30
     set(model.selNormPST, 'Value',StudyArgs.selNormPSTValue);
31 31
     set(model.chkColBias, 'Value',StudyArgs.chkColBiasValue);
32
+    
33
+    %%%% 
34
+    
35
+    set(model.txtFrameShiftStart,'String', StudyArgs.frameshiftstart );
36
+    set(model.txtFrameShiftEnd,'String',StudyArgs.frameshiftend);
37
+    set(model.txtFrameShiftDur,'String',StudyArgs.frameshiftdur);
38
+
39
+    set(model.txtSVMopts,'String',StudyArgs.svmoptstring );
40
+    set(model.txtSVMnfold,'String',StudyArgs.svmnfold );
41
+    set(model.chkSVMrnd,'Value',StudyArgs.svmrnd );
42
+
43
+    set(model.txtSomM,'String',StudyArgs.somM);
44
+    set(model.txtSomN,'String',StudyArgs.somN);
45
+    set(model.selSomLattice,'Value',StudyArgs.latticeModelValue);
46
+    set(model.txtSOMnfold,'String',StudyArgs.somnfold );
47
+
48
+    set(model.txtSearchlightRadius,'String',StudyArgs.searchlightradius );
49
+    set(model.txtSearchlightTimeline,'String',StudyArgs.searchlightTimeline);
50
+
32 51
 end
33 52
 
34 53
 
Browse code

first eventually working study switch functionality

git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@198 83ab2cfd-5345-466c-8aeb-2b2739fb922d

Christoph Budziszewski authored on29/07/2009 15:51:21
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,35 @@
1
+function StudyArgs = load_study(studyFile,model)
2
+    studyID = strrep(studyFile,'.mat','');
3
+    display(['LOAD STUDY ' studyID]);
4
+
5
+    global SVMCROSSVAL_STUDYDIR;
6
+    StudyArgs = load(fullfile(SVMCROSSVAL_STUDYDIR,studyFile));
7
+
8
+    set(model.txtBaseDir,'String',StudyArgs.baseDir);
9
+    set(model.txtStudyID,'String',studyID);
10
+        
11
+    set(model.subjectSelector,'String',StudyArgs.subjectSelectString);
12
+    set(model.subjectSelector,'UserData',StudyArgs.subjectSelectString);
13
+    set(model.subjectSelector,'Value',StudyArgs.subjectSelectValue);
14
+    
15
+    set(model.txtClassDef,'String',sprintf(StudyArgs.classdefString));
16
+    
17
+    set(model.txtPSTHStart,     'String',sprintf(StudyArgs.pststart));
18
+    set(model.txtPSTHEnd,       'String',sprintf(StudyArgs.pstend));
19
+    set(model.txtBaselineStart, 'String',sprintf(StudyArgs.baselinestart));
20
+    set(model.txtBaselineEnd,   'String',sprintf(StudyArgs.baselineend));
21
+    set(model.txtTrFactor,      'String',sprintf(StudyArgs.trfactor));
22
+    set(model.labelTR,          'String',sprintf(StudyArgs.trlabel));
23
+    
24
+    set(model.imageTypeSelection, 'String'  ,StudyArgs.imageTypeSelectionString);
25
+    set(model.imageTypeSelection, 'UserData',StudyArgs.imageTypeSelectionString);
26
+    set(model.imageTypeSelection, 'Value'   ,StudyArgs.imageTypeSelectionValue);
27
+    
28
+    set(model.txtVoxelDef,'String',sprintf(StudyArgs.voxelString));
29
+    
30
+    set(model.selNormPST, 'Value',StudyArgs.selNormPSTValue);
31
+    set(model.chkColBias, 'Value',StudyArgs.chkColBiasValue);
32
+end
33
+
34
+
35
+