Skip to content

Commit df5153d

Browse files
committed
add doc
1 parent e5bfb17 commit df5153d

7 files changed

Lines changed: 126 additions & 1 deletion

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Concatenate EpiCured movies
2+
3+
[Concatenate temporally two EpiCured movies](https://gitlab.pasteur.fr/gletort/epicure/-/wikis/Concatenate-movies): to treat a huge movie, it can be convenient to split it temporally in two (or more movies). You can then correct each movie with EpiCure, and recombine it with this option.

docs/Segment-option.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Segment with EpySeg
2+
3+
When starting EpiCure, once you have selected the movie to process and the junction channel, you have to load the file containing the segmentation of the epithelia movie. If you haven't done it yet, you can use the `Segment now with EpySeg` button that appears in the `Start EpiCure` interface.
4+
This option uses the [napari-epyseg](https://github.com/gletort/napari-epyseg) plugin to directly run [EpySeg](https://github.com/baigouy/EPySeg) on the movie. It will run with the default parameters. If you want to change some parameters, either use directly the napari-epyseg plugin within Napari (limited number of options) or use the original distribution of EpySeg (you can launch it with `python -m epyseg` in your python environement).
5+
6+
Note that the option requires to install the napari-epyseg plugin which is not installed by default in the EpiCure release. You can install it by typing `pip install napari-epyseg` in the environement or by going to `Plugins>Install\Uninstall Plugins` in Napari interface.

docs/Start-epicure.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
## Loading the movies
3+
4+
In the `Start EpiCure` step, you have a dedicated interface in the right part of the main interface.
5+
6+
The first file to choose is the movie containing the epithelial staining, with th `image file` parameter.
7+
It should be _2D(+time), .tif file_.
8+
9+
If the file contains several chanels, the plugin should detect it and show the `junction_chanel` parameter, to choose the chanel that contains the junction staining. The plugin will display only this chanel. If you wish to also see the other chanels, use the option `show other chanels` in the [advanced parameters](#advanced-parameters) panel.
10+
11+
The second file is the segmentation of this movie (also a `.tif` file). It can be a binarized file of the junctions (skeletonized) or a labelled file (each cell is filled by a unique number).
12+
13+
_Note that if you haven't done the segmentation yet, there's an [additional option](#segment-with-epyseg) in EpiCure to directly run [EpySeg](https://github.com/baigouy/EPySeg) on the loaded movie._
14+
15+
![start interface](./imgs/starting.png)
16+
17+
## Advanced parameters
18+
19+
`output dirname` is the name of directory where all files generated by `EpiCure` will be saved. By default, it is placed in the input movie directory and called `epics`.
20+
21+
`show other chanels` will display the other chanels of the original movie.
22+
23+
`epithelial cells`: EpiCure has been developed and optimized for epithelia movies, with jointive cells. However, you can still use it for non jointive cells by unselecting this option. Note that some options might not be usable in that case
24+
25+
`process frames parallel`: if this is checked, some operations will be performed in parallel, processing multiple frames at the same time. The number of parallel threads run together is defined by the parameter `nbparallel_threads`, which is by default 75% of the computer's cpu numbers.
26+
27+
`verbose level` defines the amount of messages that are printed to the user. By default, some information or warning messages are shown. If this parameter is put to 0, very few messages will appear while if it's put to 3, a lot of information useful for debugging will be shown.
28+

docs/imgs/onglets.png

5.72 KB
Loading

docs/imgs/starting.png

360 KB
Loading

docs/index.md

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,88 @@
11
# EpiCure ![snap](imgs/epicure_logo.png)
22

3+
## Installation
4+
5+
You can install EpiCure with pip: `pip install epicure` in a python virtual environment.
6+
For more precision about the installation, see the [Installation](./Installation.md) page.
7+
38
## Usage
49

5-
You can install EpiCure with pip: `pip install epicure` and use it by starting Napari and going to `Plugins>epicure>start`
10+
You can launch `EpiCure` in Napari by going to `Plugins>epicure>Start`. It will open an interface at the right side of the window where you can select the files to use.
11+
12+
The first file to choose is the movie containing the epithelial staining.
13+
It should be _2D(+time), .tif file_.
14+
15+
The second file is the segmentation of this movie (also a `.tif` file). It can be a binarized file of the junctions (skeletonized) or a labelled file (each cell is filled by a unique number).
16+
_Note that if you haven't done the segmentation yet, there's an [additional option](#segment-with-epyseg) in EpiCure to directly run [EpySeg](https://github.com/baigouy/EPySeg) on the loaded movie._
17+
18+
Additionnal options are available to tune it to your usage, please see [Start epicure](./Start-epicure.md) page for more informations.
19+
20+
Then click on `START CURE` to start the main process.
21+
22+
## Main interface
23+
24+
![onglets](imgs/onglets.png)
25+
26+
When you have selected the two files, you can start editing by clicking on the `Start cure` button. It will open the two movies and open the interface that let you choose the steps to do:
27+
28+
* [Edit](https://gitlab.pasteur.fr/gletort/epicure/-/wikis/Edit): clean the segmentation or correct manually errors through EpiCure options :wrench:
29+
* [Inspect](https://gitlab.pasteur.fr/gletort/epicure/-/wikis/Inspect): determine cells suspicious of having an error, based on a few morphological or track features, or handle cellular events as divisions :mag:
30+
* [Track](https://gitlab.pasteur.fr/gletort/epicure/-/wikis/Track): links the labels from one frame to another to reconstruct the whole cell track.
31+
* [Output](https://gitlab.pasteur.fr/gletort/epicure/-/wikis/Output): measure/display cell or track features, export results to other plugins/softwares :outbox_tray:
32+
* [Display](https://gitlab.pasteur.fr/gletort/epicure/-/wikis/Display): display additional informations (segmentation skeleton, general informations...) or a spatial grid :mag:
33+
* [Preferences](https://gitlab.pasteur.fr/gletort/epicure/-/wikis/Preferences): to set-up user-specific preferences as keyboard shortcuts :capital_abcd:
34+
35+
# General principle
36+
37+
In EpiCure, the segmented cells are represented as labels: each cell is assigned a unique number, that will be conserved in all time frames that the cell is present. All pixels belonging to the cell are assigned to its value.
38+
They are represented in EpiCure in a Napari Label layer called `Segmentation`.
39+
40+
`Tracks` displays the trajectory of each cell by marking its centroid at each time frame. The value of a track is the same as the cell label.
41+
42+
`Inspect` helps the user to correct the segmentation by flagging some cell that might be wrongly segmented or handling other cellular events as divisions.
43+
44+
EpiCure has several keyboard or mouse shortcuts to allow interactive corrections.
45+
EpiCure shortcuts are linked to the `Segmentation` layer, so it should be selected in Napari for the shortcuts to work.
46+
47+
### Shortcut customisation
48+
49+
You can redefine EpiCure shortcuts to put your favorite keys instead of EpiCure default ones.
50+
For this, open the `Preferences` option in `Napari>Plugins>EpiCure>Edit preferences`.
51+
Choose the shortcuts to use and save them.
52+
See the [Preferences](https://gitlab.pasteur.fr/gletort/epicure/-/wikis/Preferences) page for more information.
53+
54+
:heavy_exclamation_mark: the new shortcut configuration will be active only at the next EpiCure session. If you already have an EpiCure opened, restart it to apply the new shortcuts.
55+
56+
57+
### General options
58+
59+
* Press <kbd>s</kbd> to save the current state of the segmentation. The file will be saved in the output folder, named `**imagename**_labels.tif` and can be reloaded later. Additional informations specific to EpiCure (cell groups, tracks graph (lineage), suspects) are saved at the same time, in a file named `**imagename**_epidata.pkl`. When the EpiCure files are re-opened, this file will be reloaded.
60+
61+
* **Press <kbd>h</kbd> to show/hide the main `EpiCure` shortcuts** list. Press it several times to go through the different shortcut lists.
62+
63+
* Press <kbd>a</kbd> to open a new op-up window that list ALL the EpiCure shortcuts.
64+
65+
* Press <kbd>Shift-s</kbd> to save screenshots of the whole movie, with the current display.
66+
67+
### Visualization :eye: shortcuts:
68+
69+
* The labels (cells) can be displayed as filled areas (put `contour` to 0) or only the contour lines can be shown with the `contour` option.
70+
Shortcut: **<kbd>Ctrl-c</kbd> or <kbd>Ctrl-d</kbd> to increase (or decrease) the `contour` size.**
71+
* To see only the current label (the pixels which have the value that is currently active in the `label` field), check the `show selected` box on the left panel.
72+
* Click on the eye icon next to the `Movie` layer to show/hide it.
73+
Shortcut: **press <kbd>v</kbd> to show/hide the movie** (visible).
74+
* Click on the eye icon next to the `Segmentation` layer to show/hide it.
75+
Shortcut: _press <kbd>b</kbd> to show/hide the segmentation_ (binary).
76+
* **Press <kbd>5</kbd> to switch to zoom/moving mode**.
77+
* **Press <kbd>c</kbd> to see only the movie layer**.
78+
* **Press <kbd>g</kbd> to show/hide a grid to have a spatial repere**. See [Display](https://gitlab.pasteur.fr/gletort/epicure/-/wikis/Display) documentation for more details.
79+
80+
81+
## Additional options
82+
83+
EpiCure also proposes specific options outside of the main pipeline:
84+
85+
* [Concatenate EpiCured movies](./Concatenate-epicured-movies.md): to combine two movies (from the same original one that was splitted before temporally) already analysed with EpiCure into one big epicured movie.
86+
This is usefull for huge movie where the user prefered to split it in sub-movies temporally to reduce the loaded data size and allow for more responsiveness of the interface.
87+
* [Segment](./Segment-option.md): by default, EpiCure doesn't perform segmentation to allow for more generability by using already existing solutions. This option links directly EpiCure with [napari-epyseg](https://github.com/gletort/napari-epyseg) plugin to perform the segmentation directly.
88+

mkdocs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ repo_url: https://github.com/gletort/Epicure/
55
nav:
66
- Home: index.md
77
- Installation: Installation.md
8+
- Usage:
9+
- Start EpiCure: Start-epicure.md
10+
- Additionnal options:
11+
- Concatenate movies: Concatenate-epicured-movies.md
12+
- Segment option: Segment-options.md
813

914
theme:
1015
logo: imgs/epicure_logo.png

0 commit comments

Comments
 (0)