Skip to main content

A Python package for analyzing 3D vascular structures from segmentations

Project description

3D Vascular Structure Analysis

Build Status Documentation Code Coverage

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:

  1. Binary (segmentation) to preliminary skeleton

  2. Preliminary skeleton to network representation (including network pruning)

  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vessel_analysis_3d-0.1.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vessel_analysis_3d-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file vessel_analysis_3d-0.1.0.tar.gz.

File metadata

  • Download URL: vessel_analysis_3d-0.1.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for vessel_analysis_3d-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9fa34f5a962e9ed0cfed5536bdddfb4356da3dd84fef09158bb5e210a62a9789
MD5 90f4af33b9345f941f217949e4169434
BLAKE2b-256 0e515fb3f0c6dfeee7b9cfd52b39a50ea95082f748b6d4ac24622fa340605582

See more details on using hashes here.

File details

Details for the file vessel_analysis_3d-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vessel_analysis_3d-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65e0f2c5162123c8470f36713bab28184918c09bfc9c60d65263aacc2cbcece2
MD5 db00592dafa11514fda7ca5fd9abadca
BLAKE2b-256 4ab8dc69a6b5e28e59c690ed13aa89ced379f0a8b83b47dcf7e29d17dfb9e45c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page