A Python package for analyzing 3D vascular structures from segmentations
Project description
3D Vascular Structure Analysis
A Python package for analyzing 3D vascular structures from segmentations
Quick Start
In general, the analysis pipeline aims to convert segmented 3d vascular structures into statistics, with the following 3 steps:
-
Binary (segmentation) to preliminary skeleton
-
Preliminary skeleton to network representation (including network pruning)
-
Extract statistics
You can run analysis like run_vessel_analysis --config ./example_configs/example.yaml.
Or, you can do this analysis in other functions by calling the processing pipeline
from vessel_analysis_3d.processing_pipeline import Pipeline3D
from skimage.morphology import skeletonize
import numpy as np
# Suppose SEG is the segmentation
# get preliminary skeleton
SKL = skeletonize(SEG > 0, method="lee")
SKL = SKL.astype(np.uint8)
SKL[SKL > 0] = 1
# Support PARAMS contains all parameters
skl_final, brPts, endPts, reports = Pipeline3D.process_one_file(SEG, SKL, PARAMS)
# skl_final is your final skeleton
# brPts and endPts are two lists for the positions of branch points and end points
# reports contain three pandas DataFrames ready for plotting
Installation
Before starting, we recommend to create a new conda environment or a virtual environment with Python 3.10+.
conda create -y -n 3danalysis -c conda-forge python=3.11
conda activate 3danalysis
Stable Release: pip install vessel_analysis_3d
(not released yet)
Development Head: pip install git+https://github.com/MMV-Lab/vessel_analysis_3d.git
Documentation
For full package documentation please visit MMV-Lab.github.io/vessel_analysis_3d.
Development
See CONTRIBUTING.md for information related to developing the code.
MIT license
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vessel_analysis_3d-0.1.1.tar.gz.
File metadata
- Download URL: vessel_analysis_3d-0.1.1.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6603a413f0fe6768ebf4bd3f7c30868282bc5b5190bcbcf005f2e00f70c599c7
|
|
| MD5 |
428a67167380ca9841a20b979d61cf6d
|
|
| BLAKE2b-256 |
e23a5cd91bcf3b90df0bef1a1ff2ee63f75c8a056eedc6ad750de1a2d793a76b
|
File details
Details for the file vessel_analysis_3d-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vessel_analysis_3d-0.1.1-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d22026679585c4a5d7b074fc4794042774bbfcdfdcfac18edabc98b923327e1b
|
|
| MD5 |
1aeb26e58933d50c528200f138fddc37
|
|
| BLAKE2b-256 |
732d2f6f0d721ea16b3b8acf0662ffaf9f7db2732b2983ac3f286a2d4959f823
|