-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
Description
write a function that takes:
- fg of a set of tracts
- fg of whole brain tractography
- DWI nifti, bvecs, bvals
- coregistered anatomical t1 (for plotting)
- a whole brain white matter segmentation
The function should:
- compute the minmax(X,Y,Z) of the coordinates of all tracts passed it.
- restrict the white matter mask to the cube contained by those coordinates.
- build endpoints roi from the tracts
- clip the whole brain fiber group to this new white-matter volume.
- find tracts similar to the ones passed in present inside the whole brain fiber group by looking at fibers that share both endpoints with the tracts fibers.
- add the found tracts in 5. to the tracts passed in.
- combine the whole brain fiber group and the tracts keeping track of the indices of each individual tract inside the new fiber group.
- build a life model from the new fiber group.
- fit the model.
- test the evidence for each tract.
This can be thought as a general mechanisms for any test when building a whole brian connectome is not possible due to computational limits.