González Rodríguez Lazara Liset, Osorio Ignacio, Cofre G Alejandro, Hernandez Larzabal Hernan, Román Claudio, Poupon Cyril, Mangin Jean-François, Hernández Cecilia, Guevara Pamela
Department of Electrical Engineering, Faculty of Engineering, Universidad de Concepción, Concepción, Chile.
Latin American Brain Health Institute (BrainLat), Universidad Adolfo Ibañez, Santiago, Chile.
Front Neurosci. 2024 Mar 11;18:1333243. doi: 10.3389/fnins.2024.1333243. eCollection 2024.
We present a Python library (Phybers) for analyzing brain tractography data. Tractography datasets contain streamlines (also called fibers) composed of 3D points representing the main white matter pathways. Several algorithms have been proposed to analyze this data, including clustering, segmentation, and visualization methods. The manipulation of tractography data is not straightforward due to the geometrical complexity of the streamlines, the file format, and the size of the datasets, which may contain millions of fibers. Hence, we collected and structured state-of-the-art methods for the analysis of tractography and packed them into a Python library, to integrate and share tools for tractography analysis. Due to the high computational requirements, the most demanding modules were implemented in C/C++. Available functions include brain Bundle Segmentation (FiberSeg), Hierarchical Fiber Clustering (HClust), Fast Fiber Clustering (FFClust), normalization to a reference coordinate system, fiber sampling, calculation of intersection between sets of brain fibers, tools for cluster filtering, calculation of measures from clusters, and fiber visualization. The library tools were structured into four principal modules: Segmentation, Clustering, Utils, and Visualization (Fibervis). Phybers is freely available on a GitHub repository under the GNU public license for non-commercial use and open-source development, which provides sample data and extensive documentation. In addition, the library can be easily installed on both Windows and Ubuntu operating systems through the library.
我们展示了一个用于分析脑纤维束成像数据的Python库(Phybers)。纤维束成像数据集包含由代表主要白质通路的三维点组成的流线(也称为纤维)。已经提出了几种算法来分析这些数据,包括聚类、分割和可视化方法。由于流线的几何复杂性、文件格式以及数据集的大小(可能包含数百万条纤维),纤维束成像数据的处理并非易事。因此,我们收集并整理了用于纤维束成像分析的最新方法,并将它们打包到一个Python库中,以集成和共享纤维束成像分析工具。由于计算要求较高,最耗时的模块是用C/C++实现的。可用的功能包括脑束分割(FiberSeg)、分层纤维聚类(HClust)、快速纤维聚类(FFClust)、归一化到参考坐标系、纤维采样、脑纤维集之间交点的计算、聚类过滤工具、聚类度量的计算以及纤维可视化。库工具被组织成四个主要模块:分割、聚类、实用工具和可视化(Fibervis)。Phybers在GNU公共许可证下可在GitHub仓库上免费获取,用于非商业用途和开源开发,该仓库提供示例数据和详细文档。此外,通过该库可以轻松地在Windows和Ubuntu操作系统上安装该库。