Hi Jason,
So funny, I've just been working on this too! I checked here recently but not recently enough, I should have rechecked here first! If it helps, here are the minor code modifications I have made.
I've been having the following problem. After trying my modified code, I get the following errors. Any ideas? The tracks look fine when viewed with mrview.
dtiSplitInterhemisphericFibers: Splitting every fiber below Z=-10
Error using horzcat
Dimensions of matrices being concatenated are not consistent.
Error in dtiIntersectFibersWithRoi (line 140)
fc = horzcat(fg.fibers{:})';
Error in dtiSplitInterhemisphericFibers (line 67)
[fgToChop,contentiousFibers, keep] = dtiIntersectFibersWithRoi([], {'and'}, [], roi, fg);
Error in AFQ_SegmentFiberGroups (line 205)
fg = dtiSplitInterhemisphericFibers(fg, dt, -10);
Error in AFQ_run (line 169)
fg_classified = AFQ_SegmentFiberGroups(dtFile, fg, [], [],[], antsInvWarp);