{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "allOf": [
        {
            "anyOf": [
                {
                    "required": [
                        "dti_file"
                    ]
                },
                {
                    "required": [
                        "dti_file_minc"
                    ]
                }
            ]
        },
        {
            "anyOf": [
                {
                    "required": [
                        "desikan"
                    ]
                },
                {
                    "required": [
                        "jhu"
                    ]
                },
                {
                    "required": [
                        "talairach"
                    ]
                },
                {
                    "required": [
                        "aal"
                    ]
                },
                {
                    "required": [
                        "harvardoxford"
                    ]
                },
                {
                    "required": [
                        "cpac200"
                    ]
                }
            ]
        }
    ],
    "dependencies": {
        "dti_file": {
            "properties": {
                "dti_file_minc": {
                    "not": {}
                }
            }
        },
        "dti_file_minc": {
            "properties": {
                "dti_file": {
                    "not": {}
                }
            }
        }
    },
    "description": "Invocation schema for ndmg.",
    "properties": {
        "aal": {
            "enum": [
                "/ndmg_atlases/labels/AAL.nii.gz"
            ]
        },
        "atlas": {
            "enum": [
                "/ndmg_atlases/atlas/MNI152_T1_1mm.nii.gz"
            ]
        },
        "bval_file": {
            "type": "string"
        },
        "bvec_file": {
            "type": "string"
        },
        "clean": {
            "type": "boolean"
        },
        "cpac200": {
            "enum": [
                "/ndmg_atlases/labels/CPAC200.nii.gz"
            ]
        },
        "desikan": {
            "enum": [
                "/ndmg_atlases/labels/desikan.nii.gz"
            ]
        },
        "dti_file": {
            "type": "string"
        },
        "dti_file_minc": {
            "type": "string"
        },
        "extra1": {
            "type": "string"
        },
        "extra2": {
            "type": "string"
        },
        "extra3": {
            "type": "string"
        },
        "harvardoxford": {
            "enum": [
                "/ndmg_atlases/labels/HarvardOxford.nii.gz"
            ]
        },
        "jhu": {
            "enum": [
                "/ndmg_atlases/labels/JHU.nii.gz"
            ]
        },
        "mask": {
            "enum": [
                "/ndmg_atlases/atlas/MNI152_T1_1mm_brain_mask.nii.gz"
            ]
        },
        "mprage_file": {
            "type": "string"
        },
        "outdir": {
            "type": "string"
        },
        "talairach": {
            "enum": [
                "/ndmg_atlases/labels/Talairach.nii.gz"
            ]
        }
    },
    "required": [
        "bval_file",
        "bvec_file",
        "mprage_file",
        "atlas",
        "mask",
        "outdir"
    ],
    "title": "ndmg.invocationSchema",
    "type": "object"
}