Skip to content
Image analysis suite for whole brain calcium imaging
MATLAB HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets/img
freezeColors
.gitignore
.gitignore~
DetectMotorStatesRefine.m
DomainPatchesPlot.m
DomainSegmentationAssignment.m
Domains2region.m
Iarr2avi.m
Iarr2montage.m
PlotPCspectrum.m
README.md
ReadImageJROI.m
appendCellArray2file.m
arrow.m
batchFetchCorrData.m
batchFetchCorticalCorrData.m
batchFetchDomainProps.m
batchFetchLocationProps.m
batchFetchLocationPropsActvPeriod.m
batchFetchLocationPropsFreq.m
batchFetchMotorCorrData.m
batchFetchMotorStates.m
batchFetchOptFlow.m
batchFetchRegionSize.m
batchFetchSpatialCOMCorrData.m
batchFetchSvdCovEvals.m
batchFetchXCorrMatrix.m
batchTest.m
centroid.m
clickableLegend.m
detectMotorOnsets.m
detectMotorStates.m
domainMarks2Descriptor.m
domainTaggingGui.fig
domainTaggingGui.m
dsplot.m
dxInputParamsOpt.m
dxInputParamsSetup.m
getNonActiveFrameDurations.m
getpos.m
groupMotorStates.m
legendflex.m
license.txt
makeDrugStateStimParams.m
makeMotorStateStimParams.m
makeStimFrameParams.m
makeStimParams.m
makeStimTimeParams.m
myBatchFilter.m
myMovie2avi.m
myPSD.m
myPlotCorrGraphImageLoca.m
myReadImageJROIregionAdd.m
mySTOpen.m
mySpikeDetect.m
myTransformConnComponentStructureToRegion.m
myWholeBrainBackgroundSubstract.m
myginput2.m
notice.txt
openMovie.m
openWholeBrainDomainsTraces.m
otsuthresh.m
plotStimuli.m
plotWholeBrainDomains.fig
plotWholeBrainDomains.m
plotWholeBrainDomainsTraces.fig
plotWholeBrainDomainsTraces.m
prctileThresh.m
printStats.m
rateChannels.m
readtext.m
str_func.m
tagDomains.m
timeColorMapProj.m
viewPCs.m
wholeBrainActivityMapFig.m
wholeBrainActivityMapMulti.m
wholeBrainActivityMapPlot.m
wholeBrainActivityMapProj.m
wholeBrainICAmaps.m
wholeBrainICAsigs.m
wholeBrainSVD.m
wholeBrain_CorticalActiveFractionCorr.m
wholeBrain_MotorSignalCorr.m
wholeBrain_SpatialCOMCorr.m
wholeBrain_activeFraction.m
wholeBrain_actvFractionMotorPlot.m
wholeBrain_batch.m
wholeBrain_corrData.m
wholeBrain_detect.m
wholeBrain_displayActiveFractionPeriods.m
wholeBrain_motorSignal.m
wholeBrain_opticFlowByDomain.m
wholeBrain_opticFlowByFrame.m
wholeBrain_segmentation.m
wholeBrain_segmentationOtsu.m
wholeBrain_workflow.md
writeMovie.m
zbuffer_cdata.m

README.md

Author: James B. Ackman
Date: 2013-07-03 12:16:50

wholeBrainDX

Image analysis software for whole brain calcium imaging movies (Ackman et al. 2012-2014). Please refer to:

Ackman JB, Zeng H, Crair MC. 2014. Structured dynamics of neural activity across developing neocortex. bioRxiv doi: 10.1101/123456

Usage instructions at wholeBrain_workflow.md

Installation

  1. Clone wholeBrainDX from GitHub into your $MATLABHOME user folder.
  2. Add wholeBrainDX to your matlab path
  3. Install the core dependency toolboxes. Add them your matlab search path or use the addpath(genpath('$PATH/$MATLABHOME/toolbox')) syntax at the command prompt when starting up matlab with each toolbox.
  4. Optional: Install the non-core dependency toolboxes. Same as above, add their folders and subfolders to your matlab path.

Requirements

Core dependencies

  • matlab with the image processing and signal processing toolboxes.
  • piotrImageVideoProcessingToolbox. Uses gaussSmooth, xcorrn, and optFlowLk from this toolbox. Note: Currently optFlowLk.m is used from toolbox v.2.61 or eariler, instead of the opticalFlow.m from more recent toolbox versions. If optFlowLk.m isn't found, then optic flow is not computed.

Non-core dependencies

  • FFmpeg. Highly recommended for writing videos (otherwise the matlab builtin function videoWriter is used which will likely be slower). The executable should be 'ffmpeg' and should either be in your matlab search path (windows or mac/unix) or in your system shell path (mac/unix, edit the .bashrc file after install).
  • sigTOOL. Used with the stimulus movies workflow and dealing with motor signals. This program is useful if going to use simultaneously acquired electrophysiology, stimulation data stored in a data format readable by sigtool, such as CED Spike2 .smr files. This toolbox will read those files and output a .kcl matlab data structure file format.
  • parfor loop replacement. Replace for with parfor loops in a few files for possibly increased processing speed. Useful if using an HPC cluster or computers with multiple (>=8?) cpus.
    • To use parfor, use grep (regular expression) find/replacement in a text editor on all files in wholeBrainDX (should find matches among several files):
    • Find: (^[ \t]*?)for([ \tA-Za-z0-9=:]+[A-Za-z0-9\(\)-]*?; %option:parfor)
    • Replace: \1parfor\2
  • bfmatlab, a matlab toolbox containing the bio-formats java plugin and a bfopen.m reader function for opening many different microscopy image/tiff file formats. Useful if opening multichannel data or a non-standard tiff or image file format that matlab's builtin imread can't handle.
  • CalciumDX This can be used to help set up dummy parcellation files for inputs to wholeBrain_batch.m (explained in wholeBrain_workflow.md), or can be used for an alternative grid based or cell based roi analysis workflow. Also contains myOpenOMEtiff.m for tiff movie opening as a helper function to the bfmatlab toolbox for bio-formats.jar based image reading.

License

Copyright (C) 2014 James B. Ackman
Except where otherwise noted, all code in this program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

You can’t perform that action at this time.