Skip to main content

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

Metadata

Release files for vessel-analysis-3d 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vessel-analysis-3d 0.1.1
File Size Uploaded Provenance Actions
vessel_analysis_3d-0.1.1.tar.gz 25.8 kB Without provenance Details for vessel_analysis_3d-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vessel-analysis-3d 0.1.1
File Interpreter ABI Platform Actions
vessel_analysis_3d-0.1.1-py3-none-any.whl Python 3 none any Details for vessel_analysis_3d-0.1.1-py3-none-any.whl

Total release size: 49.1 kB

Release files / vessel_analysis_3d-0.1.1.tar.gz

Download URL vessel_analysis_3d-0.1.1.tar.gz
Size 25.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6603a413f0fe6768ebf4bd3f7c30868282bc5b5190bcbcf005f2e00f70c599c7
BLAKE2b-256 checksum
How to use checksums
e23a5cd91bcf3b90df0bef1a1ff2ee63f75c8a056eedc6ad750de1a2d793a76b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release files / vessel_analysis_3d-0.1.1-py3-none-any.whl

Download URL vessel_analysis_3d-0.1.1-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d22026679585c4a5d7b074fc4794042774bbfcdfdcfac18edabc98b923327e1b
BLAKE2b-256 checksum
How to use checksums
732d2f6f0d721ea16b3b8acf0662ffaf9f7db2732b2983ac3f286a2d4959f823
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Security for vessel-analysis-3d 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page