First attempt at script-run-workflow
This commit is contained in:
BIN
workflow/templates/qhtcp/Exp4/.DS_Store
vendored
Normal file
BIN
workflow/templates/qhtcp/Exp4/.DS_Store
vendored
Normal file
Binary file not shown.
53
workflow/templates/qhtcp/Exp4/ExpFrontend.m
Normal file
53
workflow/templates/qhtcp/Exp4/ExpFrontend.m
Normal file
@@ -0,0 +1,53 @@
|
||||
%FrontEnd utility to copy source result sheet into Exp_ folders of
|
||||
%StudiesQHTCP/StudyName/Exp1(2,3,4). This allow the automation of path
|
||||
%capture to the StudiesDataArchieve.txt study log.
|
||||
%Select, copy and Capture Study Exp_ details to study log
|
||||
|
||||
%Exp meta data collection
|
||||
W=pwd;
|
||||
%Load matlab stored data file into workspace
|
||||
try
|
||||
ExpLabel= strcat('Exp',W(end))
|
||||
questdlg('\fontsize{20} Select the !!Results File','File Selection','OK', struct('Default','OK','Interpreter','tex'));
|
||||
[resFile,resPath]= uigetfile('*.txt')
|
||||
copyfile((fullfile(resPath,resFile)),fullfile(W))
|
||||
resDate= char(regexp(resFile, '(\d\d\_\d\d\d\d)|( \d\d\_\d\d\d\d|\d\d\d\d\d\d)','match'))
|
||||
cd ..
|
||||
Wstudy= pwd
|
||||
studyDate= datetime("today");
|
||||
S.sDate(1) = {studyDate};
|
||||
if ispc
|
||||
lastSep=max(strfind(Wstudy,'\'))
|
||||
studyName= Wstudy((lastSep+1):end)
|
||||
else
|
||||
lastSep=max(strfind(Wstudy,'/'))
|
||||
studyName= Wstudy((lastSep+1):end)
|
||||
end
|
||||
|
||||
S.sDate(1)= {studyDate};
|
||||
S.sName(1)= {studyName}
|
||||
S.sPath(1)= {Wstudy}
|
||||
S.ELabel(1)= {ExpLabel}
|
||||
S.EresDate(1)= {resDate}
|
||||
S.EresFile(1)= {resFile}
|
||||
S.EresPath(1)= {resPath}
|
||||
|
||||
cd ..
|
||||
|
||||
fid = fopen('StudiesDataArchive.txt','a');
|
||||
fprintf(fid,'StudyDate\tStudyName\tStudyPath\tExpNum\tExpDate\tExpPath\tResultFile\n');
|
||||
fprintf(fid, '%s\t %s\t %s\t %s\t %s\t %s\t %s \n',S.sDate{1},S.sName{1},S.sPath{1},S.ELabel{1},S.EresDate{1},S.EresPath{1},S.EresFile{1});
|
||||
fclose(fid);
|
||||
%save((fullfile(pwd,'studyLog.mat')), 'S')
|
||||
fclose('all');
|
||||
|
||||
catch
|
||||
cd(W)
|
||||
disp('Error: Unable to Execute ExpFrontend.m')
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
0
workflow/templates/qhtcp/Exp4/NotesExp4
Normal file
0
workflow/templates/qhtcp/Exp4/NotesExp4
Normal file
2730
workflow/templates/qhtcp/Exp4/Z_InteractionTemplate.R
Normal file
2730
workflow/templates/qhtcp/Exp4/Z_InteractionTemplate.R
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user