-
Notifications
You must be signed in to change notification settings - Fork 1
getting started
This document will get you up and running with the CyAn toolbox.
-
Download the latest version of the toolbox from the Releases page
-
Download the following dependencies:
- Linear Assignment Tracking Toolbox: Version 2.0.0 or later
- BioformatsImage Toolbox: Version 1.1.0 or later
-
Double-click on the toolbox file (.mltbx) and open it with MATLAB, then click Install.
If MATLAB does not start automatically:
- Launch MATLAB
- In MATLAB, navigate to the folder where the downloaded toolbox is saved
- Open the toolbox by double-clicking the file in the Current Folder panel
-
During the installation, you should also be prompted to install the following MATLAB products (if not already installed):
- Curve Fitting Toolbox
- Image Processing Toolbox
- Parallel Computing Toolbox
For more instructions on how to install these Add-Ons, please consult MATLAB's documentation. Please note that you will need an appropriate license to access these Toolboxes.
To check if the toolboxes were installed correctly, open the Add-On Manager: In the Home tab, select Add-Ons > Manage Add-Ons. The toolboxes should be listed.
To uninstall the toolbox:
- Open the Add-Ons manager by clicking on Add-Ons > Manage Add-Ons in the Home tab
- Find the toolbox, and click on ⋮ (vertical ellipsis) to show more options. Select open folder and note the folder location.
- Again, click on ⋮ (vertical ellipsis) to show more options and select uninstall.
(Optional) If you encounter a message saying the some files remain after uninstalling, remove the remaining files by:
- Closing MATLAB
- Navigate to the
Add-Ons/Toolboxesfolder (the parent folder from step 2 above) and delete the folder containing the remaining files. The folder should be named after the toolbox.
The default location of the Add-Ons directory is listed here. Alternatively, you can look up the location by clicking on Preferences in the home tab, and then selecting MATLAB > Add-Ons.
This toolbox defines two main classes:
- CyTracker - This is the main class used to process movies
- DataAnalyzer - This is a class that can be used to develop data analysis
This is the general workflow:
graph LR;
Movie -- Cytracker --> TrackArray -- DataAnalyzer --> Data!;
To start tracking cells, create a CyTracker object by assigning it to a
variable:
CT = CyTracker;You can check the current settings of the object by retrieving the variable:
>> CT
CT =
CyTracker with properties:
FrameRange: Inf
SeriesRange: Inf
OutputMovie: 1
UseMasks: 0
... %truncatedTo change the value of a particular setting, simply assign a new value to the
object property. For example, to change the FrameRange to process only
frames 1 through 10:
>> CT.FrameRange = 1:10;To stop producing output movies:
>> CT.OutputMovie = false;Once the tracker options have been set, call the function process on the
CyTracker object.
Examples:
Calling the function process without any additional arguments will cause a dialog box to pop up, allowing the user to select the file(s) to process:
>> process(CT)Alternatively, supply the filename and output directory path (useful for repeated processing commands):
>> process(CT, 'movie.nd2', 'C:\path\to\output')You can get additional help by using the help command: help CyTracker.<function name>. For example, to get more information about the
process command:
>> help CyTracker.process
process Run segmentation and tracking on ND2 files
process(OBJ) will run the segmentation and tracking
operations using the current settings in CObj. A dialog box
will appear prompting the user to select ND2 file(s) to
process, as well as the output directory.
process(OBJ, FILE1, ..., FILEN, OUTPUTDIR) will run the
processing on the file(s) specified. Note that the files do
not need to be in the same directory. The output files will
be written to OUTPUTDIR.- Follow an example of tracking cells and data analysis
- Browse the user documentation to learn what else the toolbox can do.