_Our standard rig plan‎ > ‎Modules‎ > ‎Two-Photon‎ > ‎

Reading out fluorescent traces

OK, I've analyzed my cells, but I now want to look at the responses. How do I do it?

  1. Be sure you added cells to the database in the analyzetpstack panel.
  2. 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);
  3. 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; 

  4. 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
    title(['Data for cell ' cellnames{1} ', directory ' L.data{1} '.'],'interp','none');
  5. 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