Skip to content
Snippets Groups Projects
SaveTranscriptions.m 1.11 KiB
Newer Older
Christophe Bradley Smith's avatar
Christophe Bradley Smith committed
% I am not happy with how these files work


% 1. load in the transcribed file + the original
% 2. Purge the labels from the original
    % resetLabelValues(lss)
% 3. Copy the transcribed labels to the original
    % setLabelValue?

% For testing
load('C:\Users\chris\Box\Nelson Lab Data\Other Data\NTAud Transcription\Transcript_OrigAudio_AudSentStim.mat', 'lss');
test = load('C:\Users\chris\Box\Nelson Lab Data\Other Data\NTAud Transcription\Transcript_Version2_AudSent.mat');
ls = test.lss;

% Search the workspace for ls and lss

% Remove labels for lss
resetLabelValues(lss)

% Relable lss using ls
nTrials = height(test.lss.Labels);
for iTrial = 1:nTrials
    nWords = height(test.lss.Labels.Words{iTrial});
    setLabelValue(lss, iTrial, 'Words', test.lss.Labels.Words{iTrial}.ROILimits, test.lss.Labels.Words{iTrial}.Value)
end

% 

% Code will be run after student saves the file to the workspace
    % Check workspace to find ls, lss, and 

% add functionality to check if sessions have been edited compare ROI and
% script

% Save the file and save the current progress
    % Use a uiget element to delect save location