andvazva / FFClust

GNU General Public License v3.0
5 stars 1 forks source link

FFClust

Reference paper

This code is the implementation of FFClust: Fast fiber clustering for large tractography datasets for a detailed study of brain connectivity. https://doi.org/10.1016/j.neuroimage.2020.117070

Code Dependencies

To use the code, it is necessary to install the following libraries:

OPTION 1: Dependency installation via pip3 in Ubuntu

pip3 install numpy
pip3 install scikit-learn
pip3 install scipy
pip3 install networkx

OPTION 2: Dependency installation via apt in Ubuntu

sudo apt install python3-numpy
sudo apt-get install python3-sklearn
sudo apt install python3-scipy
sudo apt-get install python3-networkx

Example data

In the following link a subject resampled in 21 points is available. https://drive.google.com/file/d/1RX2KcKbxxYlfQl_mxPRi0-xfUf8Vw5gM/view?usp=sharing

Use example

If necessary, compile before the segmentation code in segmentation_clust_v1.2/

gcc -fPIC -shared  -O3 -o segmentation.so segmentation.c -fopenmp -ffast-math

FFclust algorithm execution:

python3 main.py --infile example_data/21ptos-1mfibras-ARCHI.bundles --outdir result

Input parameters

Input/output data format

Input files

Sample subject is provided in https://drive.google.com/file/d/1RX2KcKbxxYlfQl_mxPRi0-xfUf8Vw5gM/view?usp=sharing.

Output files