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.
Metadata
Release files for BioProps 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| BioProps-0.1.0.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| BioProps-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / BioProps-0.1.0.tar.gz
| Download URL | BioProps-0.1.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14b12ae689d45ccf6cdbc0da1c2b02918ea06dcde64c58b32daea98631a634d3
|
|
BLAKE2b-256 checksum How to use checksums |
ad0b270b320d6254319aae93312aa4af11439c2a5dd8f4b1c864181363b7df94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.8.6
|
Release files / BioProps-0.1.0-py3-none-any.whl
| Download URL | BioProps-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0e598c354eb746146582c83eb62a753af49e673620c56fcb0d0374f3e53ce61
|
|
BLAKE2b-256 checksum How to use checksums |
0fc43c0c8adf27495691d58ec7dde8407399fbe5961d15c9963232ed965891e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.8.6
|