scilus / scilpy

The Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox
Other
54 stars 59 forks source link

[WIP] Bundle fixel analysis script #1004

Open karanphil opened 2 weeks ago

karanphil commented 2 weeks ago

Quick description

Here is a script that computes a fixel_density_maps by associating each segment of streamlines in each voxel to one of the fixels. In other words, you give peaks and a list of bundles (.trk) as input, and it computes the fraction of each bundle per peak, for every voxel. It uses either the streamline count or some streamline weight in data_per_streamline, to compute the density of bundles. From the fixel_density_maps, we also get the fixel_density_masks (masked version of the map using thresholds), the voxel_density_maps, the voxel_density_masks, the nb_bundles_per_fixel and the nb_bundles_per_voxel. Please read the documentation of the script for more info.

@mdesco, @frheault this is the script we talked about! I would recommend using the default values to start with. So simply give the peaks and --in_bundles.

...

Type of change

Check the relevant options.

Provide data, screenshots, command line to test (if relevant)

...

Checklist

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 76.08696% with 33 lines in your changes missing coverage. Please review.

Project coverage is 68.36%. Comparing base (99ad51e) to head (24da64a). Report is 15 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1004 +/- ## ========================================== + Coverage 68.24% 68.36% +0.11% ========================================== Files 419 422 +3 Lines 21405 21579 +174 Branches 3214 3232 +18 ========================================== + Hits 14608 14752 +144 - Misses 5532 5561 +29 - Partials 1265 1266 +1 ``` | [Components](https://app.codecov.io/gh/scilus/scilpy/pull/1004/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | Coverage Δ | | |---|---|---| | [Scripts](https://app.codecov.io/gh/scilus/scilpy/pull/1004/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | `69.41% <97.43%> (+0.17%)` | :arrow_up: | | [Library](https://app.codecov.io/gh/scilus/scilpy/pull/1004/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | `66.84% <48.33%> (+0.02%)` | :arrow_up: |