vollseg


Namevollseg JSON
Version 32.2.1 PyPI version JSON
download
home_pagehttps://github.com/Kapoorlabs-CAPED/vollseg
SummarySegmentation tool for biological cells of irregular size and shape in 3D and 2D.
upload_time2023-10-08 14:11:07
maintainer
docs_urlNone
authorVarun Kapoor,Claudia Carabana Garcia,Mari Tolonen,Jakub Sedzinski
requires_python>=3.8
licenseBSD-3-Clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # VollSeg

[![Build Status](https://travis-ci.com/kapoorlab/vollseg.svg?branch=master)](https://travis-ci.com/github/kapoorlab/vollseg)
[![PyPI version](https://img.shields.io/pypi/v/vollseg.svg?maxAge=2591000)](https://pypi.org/project/vollseg/)
[![License](https://img.shields.io/pypi/l/napari-metroid.svg?color=green)](https://github.com/kapoorlab/napari-vollseg/raw/main/LICENSE)
[![Twitter Badge](https://badgen.net/badge/icon/twitter?icon=twitter&label)](https://twitter.com/entracod)

3D segmentation tool for irregular shaped cells
![Segmentation](https://github.com/kapoorlab/VollSeg/blob/main/images/Seg_compare-big.png)


## Installation
This package can be installed by 


`pip install --user vollseg`

`mamba install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia`

If you are building this from the source, clone the repository and install via

```bash
git clone https://github.com/kapoorlab/vollseg/

cd vollseg

pip install --user -e .

`mamba install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia`

```


### Pipenv install

Pipenv allows you to install dependencies in a virtual environment.

```bash
# install pipenv if you don't already have it installed
pip install --user pipenv

# clone the repository and sync the dependencies
git clone https://github.com/kapoorlab/vollseg/
cd vollseg
pipenv sync

# make the current package available
pipenv run python setup.py develop
`mamba install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia`
# you can run the example notebooks by starting the jupyter notebook inside the virtual env
pipenv run jupyter notebook
```

Access the `example` folder and run the cells.

## Algorithm
![Algorithm](https://github.com/kapoorlab/VollSeg/blob/main/images/Seg_pipe-git.png)

Schematic representation showing the segmentation approach used in VollSeg. First, we input the raw fluorescent image in 3D (A) and preprocess it to remove noise. Next, we obtain the star convex approximation to the cells using Stardist (B) and the U-Net prediction labelled via connected components (C). We then obtain seeds from the centroids of labelled image in B, for each labelled region of C in order to create bounding boxes and centroids. If there is no seed from B in the bounding box region from U-Net, we add the new centroid (in yellow) to the seed pool (D). Finally, we do a marker controlled watershed in 3D using skimage implementation on the probability map shown in (E) to obtain final cell segmentation result shown in (F). All images are displayed in Napari viewer with 3D display view.
     
## Example

To try the provided notebooks we provide an example dataset of Arabidopsis, [Binary Images](https://doi.org/10.5281/zenodo.5217367), [Raw Images](https://doi.org/10.5281/zenodo.5217394) and [Labelled images](https://doi.org/10.5281/zenodo.5217341) and trained models: [stardist](https://doi.org/10.5281/zenodo.5227304), [Denoising](https://doi.org/10.5281/zenodo.5227316), [U-Net](https://doi.org/10.5281/zenodo.5227301). For training the networks use this notebook in [Colab](https://github.com/kapoorlab/VollSeg/blob/main/examples/Train/ColabTrainModel.ipynb). To train a denoising model using noise to void use this [notebook](https://github.com/kapoorlab/VollSeg/blob/main/examples/Train/ColabN2VTrain.ipynb) 



## Docker

A Docker image can be used to run the code in a container. Once inside the project's directory, build the image with:

~~~bash
docker build -t voll .
~~~

Now to run the `track` command:

~~~bash
# show help
docker run --rm -it voll
~~~


## Requirements

- Python 3.7 and above.


## License

Under MIT license. See [LICENSE](LICENSE).

## Authors

- Varun Kapoor <randomaccessiblekapoor@gmail.com>
- Claudia CarabaƱa
- Mari Tolonen

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Kapoorlabs-CAPED/vollseg",
    "name": "vollseg",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Varun Kapoor,Claudia Carabana Garcia,Mari Tolonen,Jakub Sedzinski",
    "author_email": "randomaccessiblekapoor@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b7/a0/c2e74a6e99766400a7eed4db5393878314deee5be7a94baf7403dae1864d/vollseg-32.2.1.tar.gz",
    "platform": null,
    "description": "# VollSeg\n\n[![Build Status](https://travis-ci.com/kapoorlab/vollseg.svg?branch=master)](https://travis-ci.com/github/kapoorlab/vollseg)\n[![PyPI version](https://img.shields.io/pypi/v/vollseg.svg?maxAge=2591000)](https://pypi.org/project/vollseg/)\n[![License](https://img.shields.io/pypi/l/napari-metroid.svg?color=green)](https://github.com/kapoorlab/napari-vollseg/raw/main/LICENSE)\n[![Twitter Badge](https://badgen.net/badge/icon/twitter?icon=twitter&label)](https://twitter.com/entracod)\n\n3D segmentation tool for irregular shaped cells\n![Segmentation](https://github.com/kapoorlab/VollSeg/blob/main/images/Seg_compare-big.png)\n\n\n## Installation\nThis package can be installed by \n\n\n`pip install --user vollseg`\n\n`mamba install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia`\n\nIf you are building this from the source, clone the repository and install via\n\n```bash\ngit clone https://github.com/kapoorlab/vollseg/\n\ncd vollseg\n\npip install --user -e .\n\n`mamba install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia`\n\n```\n\n\n### Pipenv install\n\nPipenv allows you to install dependencies in a virtual environment.\n\n```bash\n# install pipenv if you don't already have it installed\npip install --user pipenv\n\n# clone the repository and sync the dependencies\ngit clone https://github.com/kapoorlab/vollseg/\ncd vollseg\npipenv sync\n\n# make the current package available\npipenv run python setup.py develop\n`mamba install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia`\n# you can run the example notebooks by starting the jupyter notebook inside the virtual env\npipenv run jupyter notebook\n```\n\nAccess the `example` folder and run the cells.\n\n## Algorithm\n![Algorithm](https://github.com/kapoorlab/VollSeg/blob/main/images/Seg_pipe-git.png)\n\nSchematic representation showing the segmentation approach used in VollSeg. First, we input the raw fluorescent image in 3D (A) and preprocess it to remove noise. Next, we obtain the star convex approximation to the cells using Stardist (B) and the U-Net prediction labelled via connected components (C). We then obtain seeds from the centroids of labelled image in B, for each labelled region of C in order to create bounding boxes and centroids. If there is no seed from B in the bounding box region from U-Net, we add the new centroid (in yellow) to the seed pool (D). Finally, we do a marker controlled watershed in 3D using skimage implementation on the probability map shown in (E) to obtain final cell segmentation result shown in (F). All images are displayed in Napari viewer with 3D display view.\n     \n## Example\n\nTo try the provided notebooks we provide an example dataset of Arabidopsis, [Binary Images](https://doi.org/10.5281/zenodo.5217367), [Raw Images](https://doi.org/10.5281/zenodo.5217394) and [Labelled images](https://doi.org/10.5281/zenodo.5217341) and trained models: [stardist](https://doi.org/10.5281/zenodo.5227304), [Denoising](https://doi.org/10.5281/zenodo.5227316), [U-Net](https://doi.org/10.5281/zenodo.5227301). For training the networks use this notebook in [Colab](https://github.com/kapoorlab/VollSeg/blob/main/examples/Train/ColabTrainModel.ipynb). To train a denoising model using noise to void use this [notebook](https://github.com/kapoorlab/VollSeg/blob/main/examples/Train/ColabN2VTrain.ipynb) \n\n\n\n## Docker\n\nA Docker image can be used to run the code in a container. Once inside the project's directory, build the image with:\n\n~~~bash\ndocker build -t voll .\n~~~\n\nNow to run the `track` command:\n\n~~~bash\n# show help\ndocker run --rm -it voll\n~~~\n\n\n## Requirements\n\n- Python 3.7 and above.\n\n\n## License\n\nUnder MIT license. See [LICENSE](LICENSE).\n\n## Authors\n\n- Varun Kapoor <randomaccessiblekapoor@gmail.com>\n- Claudia Caraba\u00f1a\n- Mari Tolonen\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Segmentation tool for biological cells of irregular size and shape in 3D and 2D.",
    "version": "32.2.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/Kapoorlabs-CAPED/vollseg/issues",
        "Documentation": "https://github.com/Kapoorlabs-CAPED/vollseg#README.md",
        "Homepage": "https://github.com/Kapoorlabs-CAPED/vollseg",
        "Source Code": "https://github.com/Kapoorlabs-CAPED/vollseg",
        "User Support": "https://github.com/Kapoorlabs-CAPED/vollseg/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8c00001afcd2d3e471394f1114c1f5003acdb394537ccb80d67d982b17ff8715",
                "md5": "cb441b33051bb2ca5bdc2ed699a692f8",
                "sha256": "1461566419fdff93044a0cc665e1d4e6506658dc7174840c15f70b3cdf1b89e1"
            },
            "downloads": -1,
            "filename": "vollseg-32.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cb441b33051bb2ca5bdc2ed699a692f8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 95035,
            "upload_time": "2023-10-08T14:11:05",
            "upload_time_iso_8601": "2023-10-08T14:11:05.239856Z",
            "url": "https://files.pythonhosted.org/packages/8c/00/001afcd2d3e471394f1114c1f5003acdb394537ccb80d67d982b17ff8715/vollseg-32.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b7a0c2e74a6e99766400a7eed4db5393878314deee5be7a94baf7403dae1864d",
                "md5": "9a6a9381df720177eb3f5eec0e17faed",
                "sha256": "1d5306fbd2dd66086fd7964607c3353eb0d28ac59ae267334f07ce668bf06233"
            },
            "downloads": -1,
            "filename": "vollseg-32.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "9a6a9381df720177eb3f5eec0e17faed",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2210591,
            "upload_time": "2023-10-08T14:11:07",
            "upload_time_iso_8601": "2023-10-08T14:11:07.981514Z",
            "url": "https://files.pythonhosted.org/packages/b7/a0/c2e74a6e99766400a7eed4db5393878314deee5be7a94baf7403dae1864d/vollseg-32.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-08 14:11:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Kapoorlabs-CAPED",
    "github_project": "vollseg",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "vollseg"
}
        
Elapsed time: 0.12388s