Skip to main content

Numerical IMage Analyses.

Project description

NImA

PyPI CI codecov RtD

A library and a command-line interface (CLI) designed to assist with image analysis tasks using scipy.ndimage and scikit-image.

  • Version: “0.9.0”

Features

  • Bias and Flat Correction
  • Automatic Cell Segmentation
  • Multi-Ratio Ratiometric Imaging, enabling users to analyze multiple ratios with ease.

Installation

You can get the library directly from PyPI using pip:

pip install nima

Alternatively, you can use pipx to install it in an isolated environment:

pipx install nima

To enable auto completion for the nima command, follow these steps:

  1. Generate the completion script by running the following command:

    _CLOP_COMPLETE=bash_source nima > ~/.local/bin/nima-complete.bash
    
  2. Source the generated completion script to enable auto completion:

    source ~/.local/bin/nima-complete.bash
    

Usage

Library

To use nima in your python code, import it as follows:

from nima import nima, generat, utils

Command-Line Interface (CLI)

The CLI for this project provides two main commands: nima and bima. You can find detailed usage information and examples in the documentation. Here are some examples of how to use each command:

nima

The nima command is used to perform multi-ratio ratiometric imaging analyses on multi-channel TIFF time-lapse stacks.

To perform multi-ratio ratiometric imaging analyses on a multichannel TIFF time-lapse stack, use the following command:

nima <TIFFSTK> CHANNELS

Replace <TIFFSTK> with the path to the TIFF time-lapse stack file, and CHANNELS with the channel names. By default, the channels are set to ["G", "R", "C"].

bima

The bima command is used to compute bias, dark, and flat corrections.

To estimate the detector bias frame:

bima bias <FPATH>

Replace <FPATH> with the paths to the bias stack (Light Off - 0 acquisition time).

To estimate the system dark (multi-channel) frame:

bima dark <FPATH>

Replace <FPATH> with the paths to the dark stack (Light Off - Long acquisition time).

Note: The estimation of the system dark may be removed in future versions because it risks being redundant with the flat estimation. It is likely to be removed soon.

To estimate the system flat (multi-channel) frame:

bima flat --bias <BIAS_PATH> <FPATH>

Replace <FPATH> with the path to the tf8 stack and <BIAS_PATH> with the path to the bias image.

Contributing

Contributions to the project are welcome!

If you are interested in contributing to the project, please read our contributing and development environment guides, which outline the guidelines and conventions that we follow for contributing code, documentation, and other resources.

License

We use a shared copyright model that enables all contributors to maintain the copyright on their contributions - see the revised BSD license for details.

Acknowledgments

Special thanks to the developers of scipy.ndimage and scikit-image for their invaluable contributions to image processing in Python.

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

nima-0.9.0.tar.gz (7.6 MB view details)

Uploaded Source

Built Distribution

nima-0.9.0-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file nima-0.9.0.tar.gz.

File metadata

  • Download URL: nima-0.9.0.tar.gz
  • Upload date:
  • Size: 7.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for nima-0.9.0.tar.gz
Algorithm Hash digest
SHA256 3fd55cdc03a9f8b96f55c3ff52b1a60f1000b6c34c2edebe1c2667ecbb850d9f
MD5 a168796ea1a5af75f8d3075a3d0bb9e0
BLAKE2b-256 1987c11cc2b5043d84b80c45b3c87a111b778b9e17160c4d1ce7eab8d7e2e7a9

See more details on using hashes here.

File details

Details for the file nima-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: nima-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for nima-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9d03335f4ad2ddbaffd0a2ee22efd52f40e98606d3ff70bf58b78a547fadbd7
MD5 05bbc0938cc17211ba0c6d81ad649c67
BLAKE2b-256 f8cd8593e9528dc7c093c899f6da93a258e9725b523dcb0ffe527653ac656770

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