Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
turleyjm committed Mar 20, 2024
1 parent 37f9681 commit 5b18ae5
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,42 @@ pip install git+https://github.com/turleyjm/cell-division-dl-plugin.git

Models (UNetCellDivision10.pth.tar and UNetOrientation.pth.tar) needed to run this plugin can be downloaded from [Zenodo]. Add them to models folder.

(Note requires version >=python3.8)

## Usage

Loading napari can be done by typing `napari` in your terminal with in the virtual environment this will load the napari GUI. Then the video cell divisions are to be detected in can be dragged and dropped in to the GUI. We have added a demo video (focusWoundL18h10-short.tif) to the in the dat folder which can used to demonstrate the method. The plugin can be then be started.

There are 3 options for "Division heatmap", "Division database" and "Division & orientaton database".
After loading the plugin clicking the button "" there are 3 options for "Division heatmap", "Division database" and "Division & orientaton database" these will each produce a different a

### Division heatmap
"Division heatmap" loads and runs the UNetCellDivision10.pth.tar model on the video. It displays the division prediction heatmap showing areas of the video it has detected cell divisions. (Note some of the output signal can be weak in some division and is still detected in the next steps but is by eye more difficult to see. Increasing the bightness/contrast can clearly show these detected divisons)

"Division heatmap" loads and runs the UNetCellDivision10.pth.tar model on the video. It displays the division prediction heatmap showing areas of the video it has detected cell divisions.
<p align="center">
![github](https://github.com/turleyjm/cell-division-dl-plugin/assets/68009166/5bc88141-a4d5-485d-a620-b9790e3db654)
Video of plugin output with blue overlap of the models division event prediction.
</p>

"Division database" will do the first step as above and also locate these divisions from the prediction heatmap and genate a database of cell divisions finding their location in space and time.
### Division database
"Division database" will do the first step as above and also locate these divisions from the prediction heatmap and genate a database of cell divisions finding their location in space and time. Also saves a display video in the folder "output" showing detected cell divisions via a blue overlay.

"Division & orientaton database" follows the same steps as above then loads and runs the UNetOrientation.pth.tar model on each of the detected cell divisions to determine the orientation of cell divisions and saves this in a updated database.
### Division & orientaton database
"Division & orientaton database" follows the same steps as above then loads and runs the UNetOrientation.pth.tar model on each of the detected cell divisions to determine the orientation of cell divisions and saves this in a updated database. Also saves a display video in the folder "output" showing detected cell divisions and their orientation via a blue overlay.

Extracting divisions from the video can take some time to process. As 5 frame videos are used to detect cell divisions, cells dividing in the first or last 3 frames will not have their cell divisions detected.

## Retrain

This model could be used for other 2D cell division data but retraining is likely to be needed for highly accurate models. Here we have used 2 flourencent channels showing cell nuclei and boundaries to supply dynamic information to the model. Other systems may use different markers to label these parts of cell or used different componds altogether (e.g microtubules).

In the folder trainModels we have included the code to train, test and evaluate each of the deep learning models we have used in the paper. The datasets used to train the models can be found in [Zenodo]. Also included is the saved parameters of the trained models.

To retrain a model on a new set of exprimental data can be done by genarating a set of training data following the examples provide in the training data. Then using the proved Jupyter notebooks to train the indivual models. For those less formetat with training deep learning model we recommend the freely avalable [fast.ai] training course.

To retrain a model on a new set of exprimental data can be done by genarating a set of training data following the examples provide in the training data. Then using the proved Jupyter notebooks to train the indivual models. For those less familiar with training deep learning model we recommend the freely avalable [fast.ai] training course.

## Expirmental data and analysis

The data used in the analysis shown in are [paper] can be downloaded from [Zenodo]. The scripts in the folder analysis process the databases and make the figures of the paper. Also the files called "focus{sampleName}.tif" and similar videos can be used as inputs for the plugin.

## License

Distributed under the terms of the [BSD-3] license,
Expand All @@ -69,6 +85,7 @@ If you encounter any problems, please [file an issue] along with a detailed desc
[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin
[paper]: https://www.biorxiv.org/content/10.1101/2023.03.20.533343v3.abstract

[file an issue]: https://github.com/turleyjm/cell-division-dl-plugin/issues

Expand Down

0 comments on commit 5b18ae5

Please sign in to comment.