Skip to main content

A Python library for computing properties of cell nuclei and colonies from NIfTI files, enabling analysis of cellular structures in medical images.

Project description

BioProps

BioProps is a Python library for computing properties from medical images, particularly for analyzing cell nuclei and colonies in 3D space. It provides functions to calculate properties such as elongation, flatness, volume, size, and edge lengths from NIfTI files representing binary cell data.

Installation

You can install BioProps using pip:

pip install BioProps

Usage

from bioprops import properties_from_nifti

nifti_file = 'path_to_your_nifti_file.nii.gz'
properties = properties_from_nifti(nifti_file)
print(properties)

Functions

properties_from_nifti(nifti_file)

Calculates properties of cell nuclei and colonies from a NIfTI file.

  • Parameters:

    • nifti_file (str): Path to the NIfTI file.
  • Returns:

    • (str): JSON-formatted string containing computed properties.

Example

For example, to calculate properties from a NIfTI file:

from bioprops import properties_from_nifti

nifti_file = 'example.nii.gz'
properties = properties_from_nifti(nifti_file)
print(properties)

Dependencies

  • numpy
  • nibabel
  • scipy
  • scikit-image

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

BioProps-0.1.0.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

BioProps-0.1.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

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