[WIP] Bundle fixel analysis script #1004
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 thefixel_density_maps
, we also get thefixel_density_masks
(masked version of the map using thresholds), thevoxel_density_maps
, thevoxel_density_masks
, thenb_bundles_per_fixel
and thenb_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