Reading out fluorescent traces
OK, I've analyzed my cells, but I now want to look at the responses. How do I do it?
Be sure you added cells to the database in the analyzetpstack panel.
Load your cells with the following Matlab commands:
ds = dirstruct(YOURPATH); % where YOURPATH is the data directory, such as '/Volumes/Data2/mydir/2013-12-25'
[cells,cellnames] = tpdoresponseanalysis(ds);
Now you can pull out the data associated with each cell. To see all of this data, use:
A = findassociate(cells{1},'','',''); % now A is a structure with all that is known about this cell.
%Let's print out all this data to the command window:
for i=1:length(A), A(i), end;
Suppose you want the fluorescent data from a particular data set for cell 1.
L = findassociate(cells{1},'unlabeled test','','');
D = findassociate(cells{1},'unlabeled resp raw','','');
% let's plot the first one
plot(D.data{1}.t,D.data{1}.data,'b');
xlabel('Time(s)');
ylabel('F');
title(['Data for cell ' cellnames{1} ', directory ' L.data{1} '.'],'interp','none');
Suppose you want to find the label information for cell 1:
LABEL = findassociate(cells{1},'analyzetpstack labels','','');
Mylabels = LABEL.data;
Mylabels{1} % view the labels