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.
You can install BioProps using pip:
pip install BioPropsfrom bioprops import properties_from_nifti
nifti_file = 'path_to_your_nifti_file.nii.gz'
properties = properties_from_nifti(nifti_file)
print(properties)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.
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)- numpy
- nibabel
- scipy
- scikit-image
This project is licensed under the MIT License - see the LICENSE file for details.