https://github.com/sorgerlab/cycif
Tip revision: 214d60f5c35ea5cf65f1bb27c19d1caaae9db0de authored by Jerry Lin on 05 May 2019, 03:22:41 UTC
A3&A4 scripts: processing & quantify Ashlar tiff
A3&A4 scripts: processing & quantify Ashlar tiff
Tip revision: 214d60f
CycIF_readtable.m
%% Function for reading imageJ table and convert to 2D array
% Jerry Lin 20160822
%
% all mean values plus Area, Circ, X, Y
function cycifarray = CycIF_readtable(channels,myfilename)
%[filename,pathname] = uigetfile(mypath,'Select a CSV file');
imageJtable = CycIF_importcsv(myfilename,2,inf);
cellno = length(imageJtable{:,1})/channels;
allmeans = imageJtable.Mean;
cycifarray = reshape(allmeans,cellno,channels);
cycifarray(:,channels+1) = imageJtable.Area(1:cellno);
cycifarray(:,channels+2) = imageJtable.Circ(1:cellno);
cycifarray(:,channels+3) = imageJtable.X(1:cellno);
cycifarray(:,channels+4) = imageJtable.Y(1:cellno);
return;