yeatmanlab / pyAFQ

Automated Fiber Quantification ... in Python
http://yeatmanlab.github.io/pyAFQ/
BSD 2-Clause "Simplified" License
56 stars 34 forks source link

[ENH] Auto detect B-vector issues #1152

Open 36000 opened 1 month ago

36000 commented 1 month ago

If the bvec file is defined wrong, and some of the bvec's seem to be pointing in the opposite direction, we should throw an error or warning then flip the bvecs. This could be done by looking at regions where there is no crossing fibers and the angle of the predominant signal should be clear. There may be a simpler way to test this.

arokem commented 1 month ago

My inclination is that this is something that needs to be done well before pyAFQ, as part of the preprocessing. For example, I believe that qsiprep does a check based on the q form (see this table).