This is is a tool to build an heatmap of the fluorescence of an average S. aureus cells. The code heavily relies on eHooke's (version 1.1) and optionally StarDist.
Given a set of microscopy images the tool automatically runs eHooke in order to segment cells, orients each cell according to their major axis and averages the fluorescence in order to build a model cell. It requires per FoV a base image that eHooke can segment (phase, brightfield or membrane dye) and it works with 1 or 2 fluorescence channels.
If spot detection was done using TrackMate and the output .xml file is provided it can also build an heatmap of the average spot localization. Spot detection HAS to be done using the following gist - https://gist.github.com/antmsbrito/f2250a1a905457436532ee761fa6eab7 (otherwise the order of the XML nodes dont match)
ROOT FOLDER
│
├─── Experiment #1
│ │
│ ├───FoV_1
│ │ ├── Fluor_1.tif
│ │ ├── Fluor_1.xml (optional)
│ │ ├── Fluor_2.tif
│ │ ├── Fluor_1.xml (optional)
│ │ └── Base.tif
│ ├───FoV_1
│ │ ├── Fluor_1.tif
│ │ ├── Fluor_1.xml (optional)
│ │ ├── Fluor_2.tif
│ │ ├── Fluor_1.xml (optional)
│ │ └── Base.tif
│ └─── ...
├─── Experiment #2
│ │
│ ├───FoV_1
│ │ ├── Fluor_1.tif
│ │ ├── Fluor_1.xml (optional)
│ │ ├── Fluor_2.tif
│ │ ├── Fluor_1.xml (optional)
│ │ └── Base.tif
│ ├───FoV_1
│ │ ├── Fluor_1.tif
│ │ ├── Fluor_1.xml (optional)
│ │ ├── Fluor_2.tif
│ │ ├── Fluor_1.xml (optional)
│ │ └── Base.tif
│ └─── ...
...
You have to provide the following information:
- The path to your local eHooke folder
- The path to the root folder where the images are (see above for example)
- The file name of the fluorescence images (without .tif)
- The file name of the base images (without .tif)
- The type of base image provided
You have to edit the example jupyter notebook file according to your needs.