Metadata-Version: 2.1
Name: epyseg
Version: 0.1.51
Summary: A deep learning based tool to segment epithelial tissues. The epyseg GUI can be uesd to build, train or run custom networks
Home-page: https://github.com/baigouy/EPySeg
Author: Benoit Aigouy
Author-email: benoit.aigouy@gmail.com
License: BSD
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6, <3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tensorflow<2.16.0
Requires-Dist: segmentation-models==1.0.1
Requires-Dist: czifile
Requires-Dist: Markdown
Requires-Dist: matplotlib>=3.5.2
Requires-Dist: numpy
Requires-Dist: Pillow>=8.1.2
Requires-Dist: PyQt6
Requires-Dist: read-lif
Requires-Dist: scikit-image>=0.19.3
Requires-Dist: scipy>=1.7.3
Requires-Dist: scikit-learn>=1.0.2
Requires-Dist: tifffile>=2021.11.2
Requires-Dist: tqdm
Requires-Dist: natsort
Requires-Dist: numexpr
Requires-Dist: urllib3
Requires-Dist: qtawesome
Requires-Dist: pandas
Requires-Dist: numba
Requires-Dist: elasticdeform
Requires-Dist: roifile
Requires-Dist: prettytable
Requires-Dist: pyperclip
Requires-Dist: QtPy>=2.1.0
Requires-Dist: deprecated

# EPySeg

**EPySeg is a package for segmenting 2D epithelial tissues.** EPySeg also ships with a graphical user interface that allows for building, training and running deep learning models. Training can be done with or without data augmentation (2D-xy and 3D-xyz data augmentation are supported). EPySeg relies on the [segmentation_models](https://github.com/qubvel/segmentation_models) library. EPySeg source code is available [here](https://github.com/baigouy/EPySeg). Cloud version available [here](https://github.com/baigouy/notebooks).

# Install

1. Install [Miniconda](https://docs.anaconda.com/free/miniconda/index.html) (if not already present on your system)

2. Then in a command prompt type: 

```
conda create -y -n TA python==3.10.12
conda activate TA
pip install -U pip
pip install -U epyseg
python -m epyseg
```

**NB**:
- To open a **command prompt** on **Windows** press **'Windows'+R** then type **'cmd'**
- To open a **command prompt** on **MacOS** press **'Command'+Space** then type in **'Terminal'**


# Run

To open the graphical user interface, type the following in a command:

 ```
conda activate TA
python -m epyseg
 ```
   
# Third party libraries

Below is a list of the 3<sup>rd</sup> party libraries used by EPySeg and/or pyTA.<br><br> <font color='red'>**IMPORTANTLY: if you disagree with any license below, <u>please uninstall EPySeg</u>**.<br></font>

| Library name            | Use                                                                                                                  | Link                                          | License            |
|-------------------------|----------------------------------------------------------------------------------------------------------------------|-----------------------------------------------|--------------------|
| **tensorflow**          | Deep learning library                                                                                                | https://pypi.org/project/tensorflow/          | Apache 2.0         |
| **segmentation-models** | Models                                                                                                               | https://pypi.org/project/segmentation-models/ | MIT                |
| **czifile**             | Reads Zeiss .czi files                                                                                               | https://pypi.org/project/czifile/             | BSD (BSD-3-Clause) |
| **Markdown**            | Python implementation of Markdown                                                                                    | https://pypi.org/project/Markdown/            | BSD                |
| **matplotlib**          | Plots images and graphs                                                                                              | https://pypi.org/project/matplotlib/          | PSF                |
| **numpy**               | Array/Image computing                                                                                                | https://pypi.org/project/numpy/               | BSD                |
| **Pillow**              | Reads 'basic' images (.bmp, .png, .pnm, ...)                                                                         | https://pypi.org/project/Pillow/              | HPND               |
| **PyQt5**               | Graphical user interface (GUI)                                                                                       | https://pypi.org/project/PyQt5/               | GPL v3             |
| **PyQt6**               | Graphical user interface (GUI)                                                                                       | https://pypi.org/project/PyQt6/               | GPL v3             |
| **read-lif**            | Reads Leica .lif files                                                                                               | https://pypi.org/project/read-lif/            | GPL v3             |
| **scikit-image**        | Image processing                                                                                                     | https://pypi.org/project/scikit-image/        | BSD (Modified BSD) |
| **scipy**               | Great library to work with numpy arrays                                                                              | https://pypi.org/project/scipy/               | BSD                | 
| **tifffile**            | Reads .tiff files (also reads Zeiss .lsm files)                                                                      | https://pypi.org/project/tifffile/            | BSD                |
| **tqdm**                | Command line progress                                                                                                | https://pypi.org/project/tqdm/                | MIT, MPL 2.0       |
| **natsort**             | 'Human' like sorting of strings                                                                                      | https://pypi.org/project/natsort/             | MIT                |
| **numexpr**             | Speeds up image math                                                                                                 | https://pypi.org/project/numexpr/             | MIT                |
| **urllib3**             | Model architecture and trained models download                                                                       | https://pypi.org/project/urllib3/             | MIT                |
| **qtawesome**           | Elegant icons in pyTA                                                                                                | https://pypi.org/project/QtAwesome/           | MIT                |
| **pandas**              | Data analysis toolkit                                                                                                | https://pypi.org/project/pandas/              | BSD (BSD-3-Clause) |
| **numba**               | GPU acceleration of numpy ops                                                                                        | https://pypi.org/project/numba/               | BSD                |
| **elasticdeform**       | Image deformation (data augmentation)                                                                                | https://pypi.org/project/elasticdeform/       | BSD                |
| **CARE/csbdeep**        | pyTA uses custom trained derivatives of the CARE surface projection model to generate (denoised) surface projections | https://pypi.org/project/csbdeep/             | BSD (BSD-3-Clause) |

