Get from Ico-github-logo

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

  • CellsortICA.m
  • CellsortICA_Optimize.m
  • CellsortApplyFilter(fn, i...
    cell_sig = CellsortApplyFilter(fn, ica_segments, flims, movm, subtractmean)
  • CellsortChoosePCs(fn, mix...
    [PCuse] = CellsortChoosePCs(fn, mixedfilters)
  • CellsortFindspikes(ica_si...
    [spmat, spt, spc, zsig] = CellsortFindspikes(ica_sig, thresh, dt, deconvtau, normalization)
  • CellsortICAplot(mode, ica...
    CellsortICAplot(mode, ica_filters, ica_sig, f0, tlims, dt, ratebin, plottype, ICuse, spt, spc)
  • CellsortPCA(fn, flims, nP...
    [mixedsig, mixedfilters, CovEvals, covtrace, movm, movtm] = CellsortPCA(fn, flims, nPCs, dsamp, outputdir, badframes)
  • CellsortPlotPCspectrum(fn...
    CellsortPlotPCspectrum(fn, CovEvals, PCuse)
  • CellsortSegmentation(ica_...
    [ica_segments, segmentlabel, segcentroid] = CellsortSegmentation(ica_filters, smwidth, thresh, arealims, plotting)
  • View all files
5.0 | 3 ratings Rate this file 19 Downloads (last 30 days) File Size: 306 KB File ID: #25405 Version: 1.4
image thumbnail




25 Sep 2009 (Updated )

Toolbox for automated sorting of cellular calcium signals from optical imaging data.

| Watch this File

File Information

This toolbox includes routines for using principal component analysis (PCA) and independent component analysis (ICA) to extract cellular signals from imaging data sets. A full description and validation of the method is provided in the paper, "Automated Analysis of Cellular Signals from Large-Scale Calcium Imaging Data," Neuron, 63:747 (2009):

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
14 Jul 2015 Eran Mukamel

Dear Phanindra - You can find sample code that will illustrate the appropriate parameters here:

The processing time depends on the size of your data set. The majority of computation time is in the PCA dimensional reduction pre-processing; subsequent cell sorting is relatively fast.

Comment only

I need to image segment a tiff calcium image data.I am unable to correctly specify the parameters smwidth and thresh? Can u please tell me what are the typical values? Also how much time does it take to run the whole code till segmentation?

Comment only
19 Mar 2015 Alexander Dumont

What does movm and movtm mean?

Comment only
18 Mar 2015 Eran Mukamel

Hi Alex - The CellSortPCA function requires a TIFF image stack.

Comment only
18 Mar 2015 Alexander Dumont

What file input is necessary for CellSortPCA to work?

06 Mar 2014 Sheng

Sheng (view profile)

04 Feb 2010 Matthias

The associated publication in Neuron 63, 747–760 makes this look promising. However, getting this to run based on the instructions provided in the supplementary publication is very trying for those with less than a mastery of Matlab.

Comment only
18 Jan 2010 Rob Campbell

Rob Campbell (view profile)

These functions are well presented and a lot of care has gone into the code. Well worth a look. However, I have had trouble getting this to work reliably with my data since it has tendency to identify noise as the signal.

24 Nov 2009 1.1

Fixed a minor typo in documentation for CellsortICA - EAM 11/24/09

10 Apr 2013 1.2

Fixed a bug affecting performance in recent versions of MATLAB.

25 Aug 2016 1.4

June 2016: Fixed an inconsistency in CellsortPCA between create_tcov and
creat_xcov. In the current version, both methods agree with the previous
version of create_tcov.

Contact us