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.1.tar.gz (25.8 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.1-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

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

Hashes for vessel_analysis_3d-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6603a413f0fe6768ebf4bd3f7c30868282bc5b5190bcbcf005f2e00f70c599c7
MD5 428a67167380ca9841a20b979d61cf6d
BLAKE2b-256 e23a5cd91bcf3b90df0bef1a1ff2ee63f75c8a056eedc6ad750de1a2d793a76b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vessel_analysis_3d-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d22026679585c4a5d7b074fc4794042774bbfcdfdcfac18edabc98b923327e1b
MD5 1aeb26e58933d50c528200f138fddc37
BLAKE2b-256 732d2f6f0d721ea16b3b8acf0662ffaf9f7db2732b2983ac3f286a2d4959f823

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