Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
quality plot for shift correction
Browse files Browse the repository at this point in the history
deadly7 committed Oct 9, 2016
1 parent 6146544 commit 55f7cc3
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions functions/CellSortLoadTrialsShiftCorrOnTrials.m
Original file line number Diff line number Diff line change
@@ -51,4 +51,13 @@
end

disp('Finished Loading Trial Files!');
%calculate quality plot
reference = mean(data_r_array, 3);
qualityPlot = zeros(1,size(data_r_array, 3));
parfor i = 1:size(data_r_array,3)
qualityPlot(i) = squeeze(mean(mean(data_r_array(:,:,i) - reference,1),2));
end
qualityPlot = qualityPlot.^2;
figure;
plot(qualityPlot);
end
2 changes: 1 addition & 1 deletion main.m
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
CellSortXCorr(inFolder, outFolder, nSubIm, binningFactor);
%% load files
%go to corr folder
outFolder = 'F:\Arbeit\testData\PCAICA';
outFolder = 'C:\Users\ftvol\Desktop\data';
%[data_g, data_r, frames, fn_green, fn_red, fileNamesGreen, fileNamesRed] = CellSortLoadTrials(outFolder);
[data_g, data_r, frames, fn_green, fn_red, fileNamesGreen, fileNamesRed] = CellSortLoadTrialsShiftCorrOnTrials(outFolder);
%If you want to load single files, use the functions below.

0 comments on commit 55f7cc3

Please sign in to comment.