Skip to content

Commit 1bfdafb

Browse files
committed
Updated descriptions of how to modify config files by organizing them around the specific parameters themselves.
1 parent 7b63a7e commit 1bfdafb

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

manuals/AUTOMATIC_TRACKING.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,29 @@ This will generate a folder called `Output tracks`, which contains a folder with
5353

5454
Now you can also set some parameters to clean up the data after tracking. It is advisable to at least remove very short tracks for clarity.
5555

56-
### Key parameters for creating tracks
57-
The algorithm creates tracks using various probabilities, which are initially set with some default values. However, you can adjust these in the `organoid_tracker.ini` file. The first is the probability of a cell disappearing. This is simply the false negative rate of the cell detection plus the death rate of cells in the system. The appearance probability is again given by false negative rate alone. Cells can of course also appear from outside the field of view, to account for this you can set the maximum distance from which a cell could move out of view in a single timepoint. The (dis)appearance probabilities are then adjusted automatically near the edges of the imaging volume. However, note that the exact values of these probabilities should not substantially change the results, so a reasonable estimate will do.
56+
### Troubleshooting
57+
You can modify this step of the anlysis by changing the following values in the configuration file (e.g., `organoid_tracker.ini` within `tracks`).
58+
* `maximum z depth for which we want tracks`: 22 (pixels, default)
59+
_Remove tracks that start or end above this pixel height, as "deeper" slices are noisier and harder to segment and therefore track. Consider decreasing this value to focus on higher quality segmentations when creating tracks._
60+
* `margin_um`: 8 (μm, default)
61+
_Defines a margin at the image edge; positions within that margin have higher probabilities to disappear and appear; consider increasing this margin if cells move a lot._
62+
* `min appearance probability`: 0.01 (default)
63+
_False negative rate of cell detection. This value need not be exact to get good performance as it does not substantially affect results. Can be affected by cells "appearing" from outside the field of view, but the `margin_um` parameter (see above) already accounts for this by automatically increasing probabilites of appearance within the defined border region._
64+
* `min disappearance probability`: 0.01 (default)
65+
_False negative rate of cell detection plus the death rate of cells. Consider adjusting to match the known death rate, but this value need not be exact to get good performance as it does not substantially affect results. Can be affected by cells "disappearing" to outside the field of view, but the `margin_um` parameter (see above) accounts for this by automatically increasing probabilites of disappearance within the defined border region._
5866

5967
Step 5: Calculate error rates
6068
---------------------------------
6169
With both the **images** and **`Final links - clean.aut`** loaded into the OrganoidTracker GUI, select `Tools` -> `Compute marginalized error rates...`. When prompted, select the all possible links file (`All possible links - clean.aut`) and then create a folder for storing the output (e.g., `error_rates`). Run the resulting `organoid_tracker_marginalization` script.
6270

6371
This should be produce a file called `Filtered positions.aut`.
6472

65-
### Key parameters for calculating error rates
66-
In the `organoid_tracker.ini` file you might need to change the so-called 'temperature'. This accounts for the amount of shared information between the individual neural network predictions. If your data is similar to the data the neural networks are trained on, you can use the temperature associated with them (1.5 for our intestinal organoid models). If you have trained your own models, you have to calibrate the marginalization procedure to get a temperature ([See here for how to calibrate](./CALIBRATE_MARGINALIZATION.md)). This temperature is generally able to absorb any miscalibration of the neural network outputs as well.
67-
68-
This step also filters out all low-confidence links. You can also set this confidence threshold in the `organoid_tracker.ini` file.
73+
### Troubleshooting
74+
You can modify this step of the anlysis by changing the following values in the configuration file (e.g., `organoid_tracker.ini` within `error_rates`).
75+
* `maximum error rate`: 0.01 (default)
76+
_Links with marginal probability < (1- `maximum error rate`) are removed (e.g, links must exceed threshold probability of 0.99 for the default value of 0.01). Consider adjusting this value to make the threshold more or less stringent._
77+
* `temperature (to account for shared information)`: 1.5 (default)
78+
_Scales probabilities before calculating marginalized probabilites across all possible states; in this way, accounts for shared information between neural network predictions and can absorb miscalibrations of the neural network outputs. Nonetheless, needs to be calibrated to each model. If your data are sufficiently similar to the intestinal organoid data we trained our models on, you can use the default value. Otherwise, [calibrate yourself](./CALIBRATE_MARGINALIZATION.md)._
6979

7080
Step 6: Manually correct warnings
7181
---------------------------------

0 commit comments

Comments
 (0)