Skip to content

blochchainlab/misc_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Miscellaneous small scripts

  • Inspect bvec to compare the quality of the approximate uniform spread with and without antipodal symmetry
  • Fit DTI over multi-shell dataset to evaluate diffusivity for postmortem scan

Optimal b-value calculation helper scripts

These scripts work best on dataset with large number of different b-value

invMD_bmax.py
Produces helper maps to evaluate a choice of postmortem b-value

  • DTI WLS fit over the full bvec/bval dataset and a mask
  • returns various maps
    • mean diffusivity: MD
    • MD-1
    • Fractional Anisotropy: FA
    • Inverse Largest eigenvalue: λmax-1
    • Maximum DTI signal contrast on last shell: ΔS = exp(-bmaxλmin) - exp(-bmaxλmax)

bvalue_estimator.py
Produces helper histograms to choose of postmortem b-value

  • fit DTI WLS using all bvecs/bvals up to some bmax and iteratively increases bmax
  • returns various metrics based on the MD distributions
    • Histograms of MD for each bmax
    • Graph of inverse histogram peaks as a function of bmax
    • Graph of inverse 50%-quantile of histogram as a function of bmax

deltaS_estimator.py
Produces helper histograms to choose of postmortem b-value

  • fit DTI WLS using all bvecs/bvals up to some bmax and iteratively increases bmax
  • returns various metrics based on the distributions of Maximum DTI signal contrast on last shell ΔS = exp(-bmaxλmin) - exp(-bmaxλmax)
    • Histograms of \Delta S for each bmax
    • Graph of inverse 25%- 50%- and 75%- quantile of histogram as a function of bmax

deltaS_estimator.py
Produces helper histograms to choose of postmortem b-value

  • fit DTI WLS using each b-value shell
  • returns various metrics based on the distributions of Maximum DTI signal contrast on shell ΔS = exp(-bλmin) - exp(-bλmax)
    • Histograms of \Delta S for each b-value
    • Graph of inverse 25%- 50%- and 75%- quantile of histogram as a function of b-value

TODO

List each script with more details
Give example call for each script
List dependencies for each scrip

About

Miscellaneous small scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages