Skip to main content

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

Metadata

Release files for numorph-3dunet 1.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for numorph-3dunet 1.0.9
File Size Uploaded
numorph_3dunet-1.0.9.tar.gz 41.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for numorph-3dunet 1.0.9
File Interpreter ABI Platform
numorph_3dunet-1.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 97.1 kB

Release files / numorph_3dunet-1.0.9.tar.gz

Download URL numorph_3dunet-1.0.9.tar.gz
Size 41.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6384822c28674a06afea6c6d625ff08dd41965cb66ecfa6b868243ae4dbd1008
BLAKE2b-256 checksum
How to use checksums
3953221155b08ca0c8beb4ebf4b33fb3918f0d60c313ccbcf337d27c46283eee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / numorph_3dunet-1.0.9-py3-none-any.whl

Download URL numorph_3dunet-1.0.9-py3-none-any.whl
Size 55.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3304ac9dda8e345b962df92216557fc626ab0e3b4b27292a9fa525bb51b06fe
BLAKE2b-256 checksum
How to use checksums
bf1be2909e6f2ab09379b177c906ed21a37c52c5355d96b545403d5ddf3ce0a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page