Skip to main content

tnia-python

A collection of useful python utilities from True North Intelligent Algorithms

If you need support for the library please post a question on the Image.sc Forum.

This project started as a means for me to test ideas and try out new python libraries. As the number of experiments grew I started organizing things into packages. The library is still in the very early stages of development, and is still lacking documentation, however it's at the point where I find it useful for prototyping bio-image processing protocols.

For now, the user-base of the library is mostly people I am working with directly, teaching to in a course, or discussing image processing problems with online. The helper functions make it quick for me to provide examples of image processing issues I am discussing.

There are useful helper function to

  • show max, sum and slice projections of 3D arrays
  • Generate PSFs with simple API to psfmodels and sdeconv
  • Extract PSFs from a bead image
  • Draw circles and spheres in images to create phantom images
  • Apply a forward imaging model (convolution + noise)

In the coming months and years I plan to keep iterating on the library and making it more usable. Please reach out to me if you have any questions.

Dependencies

We tend not to install many of the dependencies via setup.py. The dependencies are complex and not all are needed to run many examples. Thus we leave it up to the user to install dependencies manually, allowing them to potentially install a minimum set of dependencies for the specific code they are interested in running.

Most of the deconvolution related functionality uses clij2-fft. Some functionality uses clesperanto. The current recommended steps to create a conda/mamba environment for tnia-python are as follows

mamba create --name decon-dl-env python=3.9 devbio-napari pyqt -c conda-forge -c pytorch
mamba install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0
pip install cupy-cuda11x
pip install tnia-python
pip install clij2-fft
pip install psfmodels
pip install "tensorflow<2.11"
pip install stardist
pip install raster-geometry

Mac-users please also install this:

conda install -c conda-forge ocl_icd_wrapper_apple

Linux users please also install this:

conda install -c conda-forge ocl-icd-system

Download files

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

Source Distribution

tnia_python-0.2.0.tar.gz (303.3 kB view details)

Uploaded Source

Built Distribution

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

tnia_python-0.2.0-py3-none-any.whl (446.4 kB view details)

Uploaded Python 3

File details

Details for the file tnia_python-0.2.0.tar.gz.

File metadata

  • Download URL: tnia_python-0.2.0.tar.gz
  • Upload date:
  • Size: 303.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for tnia_python-0.2.0.tar.gz
Algorithm Hash digest
SHA256 398cdb8442ad4bcd25cd914d99b886dfe3cc5ba579fcfadc4438115f8a784905
MD5 2ab0e991f7c9cafa278e4949107774a3
BLAKE2b-256 45c115476d1eb5820fc193195ec8e7c489fcc07166984f7eec4fcab6058c2420

See more details on using hashes here.

File details

Details for the file tnia_python-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: tnia_python-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 446.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for tnia_python-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d5c30f2f0b76dfe24ed212edb15d261b09dc5b197de9466bf059b54b5a36fe0
MD5 8aa49209414136c3319407fd2a3d8520
BLAKE2b-256 c4bda4ad18b3639931b83fca3c18d917ada92c9e886a9cb6e07b0ad351fc20ae

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.2

2 files

0.2.1

2 files

This release

0.2.0 This release

2 files

0.1.27

2 files

0.1.26

2 files

0.1.25

2 files

0.1.24

2 files

0.1.23

2 files

0.1.22

2 files

0.1.21

2 files

0.1.20

2 files

0.1.19

1 file

Supported by

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