|
1 | 1 | # EpiCure  |
2 | 2 |
|
| 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 | + |
3 | 8 | ## Usage |
4 | 9 |
|
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 | + |
| 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 | + |
0 commit comments