The Skeleton Analysis package provides tools to process spatial graphs exported from Amira. It allows for the correction of collapsed vessels, extraction of topological metrics, and visualization of the processed networks.
The package enables:
- Correction of collapsed vessels in spatial graphs
- Extraction of vascular and network metrics, including:
- Topological Generation
- Strahler Order
- K-means Cluster Order
- Tortuosity
- Mean Radius
- Murray’s Law
- Branching Angle (between child vessels and parent-child connections)
- Intervessel Length-Diameter Ratio
- Branching Ratio
- Visualization of computed metrics in Amira
- Graph merging for combined analysis of multiple spatial graphs
- Detection and correction of bad edges
- Outlier correction for accurate metric computation
# Clone the repository from GitLab
git clone https://github.com/JosephBrunet/skeleton-analysis.git
cd skeleton-analysis
# Install skeleton-analysis
pip install .- Export your Amira spatial graph as an ASCII file.
- Identify the root node IDs using Amira.
- Save the spatial graph in
.amformat.
from skeleton_analysis import run_ordering
input_file = "path/to/spatial_graph.am"
output_file = "path/to/output_graph.am"
run_ordering(input_file, output_file)This process corrects the spatial graph and computes the Strahler Order and Topological Generation.
....
Contributions are welcome! To contribute:
- Clone the repository from GitHub.
git clone https://github.com/JosephBrunet/skeleton-analysis.git
- Create a feature branch:
git checkout -b feature-branch
- Commit your changes:
git commit -m "Add new feature" - Push to GitHub:
git push origin feature-branch
- Create a Pull Request (PR)! 🎉
If you encounter any issues or have feature requests, please open an issue on GitLab.
This project is licensed under the MIT License.
For questions or support, feel free to reach out to:
- Claire Walsh – c.walsh.11@ucl.ac.uk
- Joseph Brunet – j.brunet@ucl.ac.uk
Thank you for using skeleton-analysis! --🚌
