This repository contains a script designed for the analysis of tractography data using DSI Studio. The script computes a range of tract properties as described in Yeh, F. C. (2020)
This app computes detailed tract properties, including:
- Length
- Span
- Volume
- Diameter
- Surface Area
- Curl
- Elongation
- Irregularity
The results are exported as structured statistics for further analysis.
Gabriele Amorosino ([email protected])
You can run the dsi-studio-trk-ana
app on the Brainlife.io platform via the web user interface (UI) or using the Brainlife CLI. With both methods, inputs and outputs are managed on the Brainlife.io platform, and computations are performed using its cloud computing resources.
- Navigate to the Brainlife.io platform and locate the
dsi-studio-trk-ana
app. - Click the "Execute" tab and specify the required dataset inputs.
- Install the Brainlife CLI on your UNIX/Linux-based system by following the instructions at Brainlife CLI Installation.
- Log in to the Brainlife CLI using your Brainlife.io credentials:
bl login
- Run the app using the following command:
The output will be stored in the specified project identified by
bl app run --id <app_id> --project <project_id> --input tt:<tt_object_id>
<project_id>
.
Follow these steps to run the script locally on your machine:
-
Clone the repository:
git clone https://github.com/gamorosino/dsi-studio-trk-ana.git cd dsi-studio-trk-ana
-
Create a
config.json
file in the repository directory, specifying the required input paths. Example:{ "tt": "/path/to/tract.trk" }
-
Run the script:
./main
The script will:
- Use DSI Studio via a Singularity container to analyze the tract file.
- Export computed statistics to
stat/tractmeasure.tsv
.
- Singularity: Ensure Singularity is installed and accessible.
- Statistics: The results of the analysis will be stored in
stat/tractmeasure.tsv
.
If you use this app in your research, please cite the following:
-
DSI Studio function:
- Yeh, F. C. (2020). Shape analysis of the human association pathways. Neuroimage, 223, 117329. doi:10.1016/j.neuroimage.2020.117329
-
Brainlife.io:
- Hayashi, Soichi, et al. "brainlife.io: a decentralized and open-source cloud platform to support neuroscience research." Nature methods, 21(5), 809-813. (2024). https://doi.org/10.1038/s41592-024-02237-2