-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added configuration documentation & others
- Loading branch information
Showing
18 changed files
with
176 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,31 @@ | ||
Configuration | ||
------------- | ||
|
||
The configuration is at the heart of ultrack, it is used to define the parameters for each step of the pipeline and where to store the intermediate results. | ||
The `MainConfig` is the main configuration that contains the other configurations of the individual steps plus the data configuration. | ||
|
||
The configurations are documented below, the parameters are ordered by importance, most important parameters are at the top of the list. Parameters which should not be changed in most of the cases are at the bottom of the list and contain a ``SPECIAL`` tag. | ||
|
||
.. autosummary:: | ||
|
||
ultrack.config.MainConfig | ||
ultrack.config.DataConfig | ||
ultrack.config.SegmentationConfig | ||
ultrack.config.LinkingConfig | ||
ultrack.config.TrackingConfig | ||
|
||
|
||
.. autopydantic_model:: ultrack.config.MainConfig | ||
:no-index: | ||
|
||
.. autopydantic_model:: ultrack.config.DataConfig | ||
:no-index: | ||
|
||
.. autopydantic_model:: ultrack.config.SegmentationConfig | ||
:no-index: | ||
|
||
.. autopydantic_model:: ultrack.config.LinkingConfig | ||
:no-index: | ||
|
||
.. autopydantic_model:: ultrack.config.TrackingConfig | ||
:no-index: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,3 +97,4 @@ Documentation contents | |
|
||
api | ||
cli | ||
rest_api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
REST API | ||
-------- | ||
|
||
The ultrack REST API is a set of HTTP endpoints that allow you to track your data from a Ultrack server. | ||
This is what enables the :doc:`Ultrack FIJI plugin <fiji>`. | ||
|
||
@ilan TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +0,0 @@ | ||
# Configuration Schema Description | ||
|
||
Configurations have default values, therefore you don't need to set them all from the beginning. | ||
|
||
- main_config: | ||
|
||
- data_config: | ||
- working_dir: Working directory for auxiliary files; | ||
- database: Database type `sqlite` and `postgresql` supported; | ||
- address: Postgresql database path, for example, `postgres@localhost:12345/example`; | ||
- n_workers: Number of worker threads; | ||
|
||
- segmentation_config: | ||
- anisotropy_penalization: Image graph z-axis penalization, positive values will prioritize segmenting the xy-plane first, negative will do the opposite; | ||
- n_workers: Number of worker threads; | ||
- min_area: Minimum segments area, regions smaller than this value are merged or removed when there is no neighboring region; | ||
- max_area: Maximum segments area, regions larger than this value are removed; | ||
- min_frontier: Minimum average contour value, neighboring regions with values below this are merged; | ||
- max_noise: Upper limit of uniform distribution for additive noise on contour map; | ||
- threshold: Threshold used to binary the cell foreground map; | ||
- ws_hierarchy: Watershed hierarchy function from [higra](https://higra.readthedocs.io/en/stable/python/watershed_hierarchy.html) used to construct the hierarchy; | ||
|
||
- linking_config: | ||
- distance_weight: Penalization weight $\gamma$ for distance between segment centroids, $w_{pq} - \gamma \|c_p - c_q\|_2$, where $c_p$ is region $p$ center of mass; | ||
- n_workers: Number of worker threads; | ||
- max_neighbors: Maximum number of neighbors per candidate segment; | ||
- max_distance: Maximum distance between neighboring segments; | ||
|
||
- tracking_config: | ||
- appear_weight: Penalization weight for appearing cell, should be negative; | ||
- disappear_weight: Penalization for disappearing cell, should be negative; | ||
- division_weight: Penalization for dividing cell, should be negative; | ||
- dismiss_weight_guess: Threshold (<=) used to provide 0 valued hint to solver; | ||
- include_weight_guess: Threshold (>=) used to provide 1 valued hint to solver; | ||
- window_size: Time window size for partially solving the tracking ILP; | ||
- overlap_size: Number of frames used to pad each size when partially solving the tracking ILP; | ||
- solution_gap: solver solution gap; | ||
- time_limit: solver execution time limit in seconds; | ||
- method: solver method, (reference)[https://docs.python-mip.com/en/latest/classes.html#lp-method]; | ||
- n_threads: Number of worker threads; | ||
- link_function: Function used to transform the edge weights, `identity` or `power`; | ||
- power: Expoent $\eta$ of power transform, $w_{pq}^\eta$; | ||
- bias: Edge weights bias $b$, $w_{pq} + b$, should be negative; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters