140x140ROI-generation

MSparkles offers several ways to create ROIs, called Analysis modes. A core feature of MSparkles is automatic ROI detection. In addition to that, MSparkles offers ROI-grid and Global ROI analyses. Of course, it is also possible to manually dra ROIs, or import a set of ImageJ ROIs. Analysis modes come with the ability to be intersected with each other to create differential analyses of, e.g. cell somata and gliapil/neuropil.

Automatic ROI detection

Automatic ROI detection is performed on the absolute fluorescence range projection along the temporal axes if the normalized image stack. This helps to identify and segment active regions. ROI segmentation can be performed in three ways, usign a watershed transform, superpixel segmentation, or based on temporal correlation. All three methods produce similar results in most cases. However, correlation based segmenttaion can result in more refined ROIs, which in turn can be nenefitial for later signal extraction.
Although this algorithm is not restricted to the location (e.g. somata or gliapil) or the shape of arising signals, it was designed to detect localized signals. Large, global signals will therefore have a negative impact on ROI detection.

 

Configuration

ROI detection can be configured in a guided, but constrained way or, with a freely user-defined detection threshold. In the first case, an upper and lower threshold is computed, using Otsu's multi-threshold algorithm. Modifying the detector sensitivity then calculates the final threshold value inbetween these boundaries by linear interpolation.
The fluorescence range map can be smoothed using a Gaussian and a median filter prior to ROI detection. This can have a positive effect on the quality of the detected ROIs. However, the resulting ROIs appear more rounded and blobby. Smoothing should be adapted for each dataset individually.
The effect of changing detection parameters is immediately shown in the ROI preview.
Please keep in mind that the fluorescence range is computet based on the normalized image stack (ΔF/F0) and a preview is only available once F0 has been computed.

Grid analysis

This mode will automatically generate a regual grid of ROIs, based on the dataset settings. By default, the grid-size is set to 16x16 cells. The size of each individual grid cell will depend on the actual width and height of youre dataset. If your dataset is e.g. 512x512 pixels, each grid cell will cover 32x32 pixels.

Global analysis

Here, MSparkles will generate one single ROI, covering your entire dataset. While this mode will obviously suppress small signals, it can still give you an impression on the overall activity.

Manual analysis

Manual analysis is intended to be a distinct analysis mode where only user-defined ROIs are present. This mode can e.g. be used to investigate ROIs not detected by the automatic detection algorithm. Alternatively, manually drawn ROIs can be intersected with the global ROI and the ROI grid. This allows e.g. to manually draw ROIs only on somata and use the intersected global ROI or ROI grid to create a differential analysis with the gliapil.

ROI import from ImageJ

MSparkles can automatically import ROIs created with ImageJ if these were stored directly in the TIFF file. Any imported ROIs will always be added to a ROI set of type manual, called ImageJ ROIs. To avoid complications and reduce the complexitiy of the import procedure ROI import is only performed once, when the TIFF file is added to MSparkles. However, to allow ROI import for already existing datasets you can always select a dataset and click the ROI import tool in the toolbar.
Automatic ROI import can be disabled in the Global settings.

 

ImageJ supports various types of ROIs. MSparkles is currently able to import the following ROI types: Oval, Rectangular, Polygonal and Freehand. Support for more ROI types will be added in future versions.

 

140x140