Brainlife uses this code to validate and normalize input datasets uploaded by users to make sure that the content and format of the data matches the Brainlife's neuro/dwi datatype.
Currently this App performs following checks
- make sure nibabel runs successfully on specified dwi file
- make sure dwi is 4d
- raise warning if dwi transformation matrix isn't unit matrix (identity matrix)
- make sure bvecs and bvals can be read
- make sure bvecs's cols count matches dwi's 4th dimension number
- make sure bvecs has 3 rows
- make sure bvals's cols count matches dwi's 4th dimension number
- make sure bvals has 1 row
- check for bvecs flipping (x/z and z) - using a similar mechanism for brain-life/app-testflip
This service is not meant to be executed outside Brainlife.
In the future, this repo might be incooporated into to brain-life/datatypes repo
- Soichi Hayashi (hayashis@iu.edu)
- Franco Pestilli (franpest@indiana.edu)