Skip to main content

A collection of utilities

Project description

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

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

tnia_python-0.1.23.tar.gz (174.8 kB view details)

Uploaded Source

Built Distribution

tnia_python-0.1.23-py3-none-any.whl (257.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tnia_python-0.1.23.tar.gz
  • Upload date:
  • Size: 174.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for tnia_python-0.1.23.tar.gz
Algorithm Hash digest
SHA256 a06ae1036f078df96bbbb4af9a3ee16f60a535883f9a1c06cc82546fabaf7c6e
MD5 d46b699a28da82ea401e766c69faeef5
BLAKE2b-256 3df62f1d8b2a3aa7aeb34917904bcfb1992945d9e844e2b66d241b086bb6511e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tnia_python-0.1.23-py3-none-any.whl
  • Upload date:
  • Size: 257.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for tnia_python-0.1.23-py3-none-any.whl
Algorithm Hash digest
SHA256 7f21b783bed4c3221be2c36340f25d9ed0dddb6bbe007fe8bc69723ef48ddcf5
MD5 6017b23d760ed26f695a0bd8beb24874
BLAKE2b-256 53acd74975c5e08d205603433f6787ac214b1a2a7a14cdbd7eccc80f3826c3ab

See more details on using hashes here.

Supported by

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