Skip to main content

Numorph segmentation of cell nuclei using a 3dunet.

Project description

NuMorph 3DUnet

The package performs cell nuclei segmentation on large light-sheet imaging dataset. The models that the package uses can be found here for download.

This package containes the original 3DUnet used in the NuMorph pipeline. A detailed describtion of the architecture and training procedure can be found in the publication.

The PyPi package is intended to be installed in a Nvidia optimized container with Tensorflow and used as a nextflow module in the pipeline nf-core/lsmquant. The container is hosted by the nf-core community repository on quay.io .

Installation

The package can also be used within a conda environment (not recommended).

Clone the repository to your workstation. The numorphunet.yml defines the necessary dependencies for running the prediction. You need to have conda installed to create the environment with the following command:

conda env create -f numorphunet.yml

Activate the environment with:

conda activate 3dunet

Install the numorph 3DUnet in the 3dunetconda env by using the following command in the directory of the pyproject.toml file :

pip install .

Usage

Once installed, you can run the cell segmentation tool using the command:

numorph_3dunet.predict -i /path/to/input/directory -o /path/to/output/directory --n_channels 1 --sample_name TEST1 --model /path/to/model_file.h5

Required arguments:

  • -i: Input image directory
  • -o: Output directory (will be created if it doesn't exist)
  • --n_channels: Number of channels
  • --sample_name: Sample name for output files
  • --model: Model file (.h5)

Optional arguments:

  • -g: GPU tag (default: 0)
  • --pred_threshold: Prediction threshold (default: 0.5)
  • --int_threshold: Minimum intensity threshold (default: 200)
  • --overlap: Overlap between chunks [x y z] (default: 16 16 8)

See full help with numorph_3dunet.predict --help

Credits

The pip package was originally developed by Carolin Schwitalla and contains the original work of Oleh Krupa who is the main developer of the 3DUnet and corresponding models used by the NuMorph toolbox.

NuMorph: Tools for cortical cellular phenotyping in tissue-cleared whole-brain images

Krupa O, Fragola G, Hadden-Ford E, Mory JT, Liu T, Humphrey Z, Rees BW, Krishnamurthy A, Snider WD, Zylka MJ, Wu G, Xing L, Stein JL.

Cell Rep. 2021 Oct 12, doi: 10.1016/j.celrep.2021.109802

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

numorph_3dunet-0.1.5.tar.gz (42.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

numorph_3dunet-0.1.5-py3-none-any.whl (55.6 kB view details)

Uploaded Python 3

File details

Details for the file numorph_3dunet-0.1.5.tar.gz.

File metadata

  • Download URL: numorph_3dunet-0.1.5.tar.gz
  • Upload date:
  • Size: 42.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for numorph_3dunet-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0d5a294794f14caec4f0466b02d8d05048f6bcad135d062aa9694fc9c655735b
MD5 f728c5359f98211b6fc9799d6dfe11e2
BLAKE2b-256 a4f01cd9e062abea2f07e5a4f1d92c73dcc32f06ef28cf243a544a8fb5fedfac

See more details on using hashes here.

File details

Details for the file numorph_3dunet-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: numorph_3dunet-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 55.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for numorph_3dunet-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9db0777e4989f0a91256fd70498c2350a19a84b8e13ec9ac679d2e34344f6f03
MD5 5da9faa47674dcff28b9a3661b0a3a50
BLAKE2b-256 98e445f240b8ca0d7bc1004606f95efaa48bc964903c10a2cc63a616d31ca664

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page