Back

pykarambola: Minkowski tensor morphometry of 3D structures

Khurana, Y.; Ishihara, K.

2026-06-18 bioinformatics
10.64898/2026.06.16.730752 bioRxiv
Show abstract

Three-dimensional biological morphologies encode functional and physiological state, yet the directional, orientational, and topological properties of these shapes are rarely captured by morphometric tools available for bioimage analysis. Minkowski tensors are mathematically rigorous tensor-valued measures that encode surface curvature and directionality for objects of arbitrary topology, with tensor eigensystems that directly quantify elongation axes and anisotropy. A C++ implementation, karambola (1), computes Minkowski tensors for triangulated surfaces but is inaccessible within Python-based bioimage workflows. Here we present pykarambola, a pip installable Python package that accepts NumPy arrays and standard mesh formats and returns Minkowski tensors, including derived anisotropy and orientation quantities. A high-level label-image API converts 3D integer arrays into per-object Minkowski tensors in a single call, making pykarambola directly compatible with the output of widely used segmentation tools. An optional Cython extension accelerates graph-traversal steps of mesh initialization for large-scale analyses. Benchmarked on 1,584 adrenal gland meshes, pykarambola reproduces all 121 C++ karambola output features to near-floating-point agreement and, in the pure-Python build, is 2.8x faster at 283 and 1.5x faster at 643 voxel resolution, with speedups primarily attributable to karambolas sequential per-object file I/O. pykarambola is freely available as an open-source software package.

Matching journals

The top 4 journals account for 50% of the predicted probability mass.

1
Bioinformatics
1204 papers in training set
Top 0.5%
31.3%
2
PLOS Computational Biology
1863 papers in training set
Top 4%
7.9%
3
BMC Bioinformatics
457 papers in training set
Top 1%
6.8%
4
Nature Methods
385 papers in training set
Top 2%
5.5%
50% of probability mass above
5
Bioinformatics Advances
203 papers in training set
Top 1%
4.1%
6
Nature Communications
5641 papers in training set
Top 35%
3.2%
7
GigaScience
212 papers in training set
Top 1%
3.2%
8
PLOS ONE
5266 papers in training set
Top 41%
2.7%
9
Scientific Reports
3612 papers in training set
Top 47%
2.1%
10
eLife
5828 papers in training set
Top 44%
2.1%
11
Communications Biology
993 papers in training set
Top 10%
2.1%
12
Journal of Open Source Software
25 papers in training set
Top 0.2%
1.7%
13
Philosophical Transactions of the Royal Society B: Biological Sciences
72 papers in training set
Top 0.6%
1.7%
14
SoftwareX
15 papers in training set
Top 0.1%
1.5%
15
Science Advances
1243 papers in training set
Top 27%
1.1%
16
Methods in Ecology and Evolution
176 papers in training set
Top 2%
0.9%
17
PeerJ
308 papers in training set
Top 11%
0.9%
18
Briefings in Bioinformatics
354 papers in training set
Top 7%
0.9%
19
Neuroinformatics
46 papers in training set
Top 0.8%
0.9%
20
Frontiers in Neuroinformatics
41 papers in training set
Top 0.6%
0.9%
21
Advanced Science
286 papers in training set
Top 9%
0.8%
22
Imaging Neuroscience
282 papers in training set
Top 4%
0.6%
23
Biology Open
156 papers in training set
Top 4%
0.6%
24
Frontiers in Genetics
230 papers in training set
Top 6%
0.6%
25
Frontiers in Physiology
106 papers in training set
Top 3%
0.6%
26
Nature
645 papers in training set
Top 11%
0.6%
27
Journal of Cell Science
393 papers in training set
Top 5%
0.6%
28
Communications Medicine
113 papers in training set
Top 6%
0.6%
29
Molecular Cancer Research
49 papers in training set
Top 1%
0.6%