{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "required": [
        "config",
        "inputs"
    ],
    "type": "object",
    "properties": {
        "inputs": {
            "required": [
                "bvec",
                "dwi",
                "bval"
            ],
            "type": "object",
            "properties": {
                "bvec": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "bvec"
                            ]
                        }
                    }
                },
                "dwi": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "nifti"
                            ]
                        }
                    }
                },
                "bval": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "bval"
                            ]
                        }
                    }
                },
                "anatomical": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "nifti"
                            ]
                        }
                    }
                }
            }
        },
        "config": {
            "required": [
                "dwOutMm-2",
                "numBootStrapSamples",
                "noiseCalcMethod",
                "flipLrApFlag",
                "rotateBvecsWithCanXform",
                "dwOutMm-1",
                "phaseEncodeDir",
                "eddyCorrect",
                "dwOutMm-3",
                "rotateBvecsWithRx",
                "fitMethod",
                "bsplineInterpFlag",
                "nStep"
            ],
            "type": "object",
            "properties": {
                "eddyCorrect": {
                    "default": 1,
                    "type": "integer"
                },
                "numBootStrapSamples": {
                    "default": 500,
                    "type": "integer"
                },
                "noiseCalcMethod": {
                    "default": "b0",
                    "type": "string"
                },
                "flipLrApFlag": {
                    "default": 0,
                    "type": "integer"
                },
                "rotateBvecsWithCanXform": {
                    "default": 1,
                    "type": "integer"
                },
                "dwOutMm-1": {
                    "default": 2,
                    "type": "integer"
                },
                "phaseEncodeDir": {
                    "default": 2,
                    "type": "integer"
                },
                "dwOutMm-2": {
                    "default": 2,
                    "type": "integer"
                },
                "nStep": {
                    "default": 50,
                    "type": "integer"
                },
                "rotateBvecsWithRx": {
                    "default": 0,
                    "type": "integer"
                },
                "fitMethod": {
                    "default": "ls",
                    "type": "string"
                },
                "bsplineInterpFlag": {
                    "default": 0,
                    "type": "integer"
                },
                "dwOutMm-3": {
                    "default": 2,
                    "type": "integer"
                }
            }
        }
    },
    "title": "Invocation manifest for VISTALAB: dtiInit - Diffusion Data Initialization Pipeline"
}