{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "required": [
        "config",
        "inputs"
    ],
    "type": "object",
    "properties": {
        "inputs": {
            "required": [
                "dwi_file",
                "bvecs_file",
                "subsampling_vec",
                "bvals_file"
            ],
            "type": "object",
            "properties": {
                "dwi_file": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "nifti"
                            ]
                        }
                    }
                },
                "bvecs_file": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "bvec"
                            ]
                        }
                    }
                },
                "subsampling_vec": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "tabular data"
                            ]
                        }
                    }
                },
                "bvals_file": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "bval"
                            ]
                        }
                    }
                }
            }
        },
        "config": {
            "required": [
                "sh_filename",
                "mean_diffusion_length",
                "spherical_harmonics_order"
            ],
            "type": "object",
            "properties": {
                "sh_filename": {
                    "default": "sumas_sh_coeff.nii",
                    "type": "string",
                    "description": "Output filename of 4D spherical harmonic coefficient data."
                },
                "mean_diffusion_length": {
                    "default": 1.2,
                    "type": "number",
                    "description": "The mean diffusion length for reconstruction of GQI matrix."
                },
                "spherical_harmonics_order": {
                    "default": 8,
                    "type": "integer",
                    "description": "Maximum order of spherical harmonics."
                }
            }
        }
    },
    "title": "Invocation manifest for HDFT Subsampled Diffusion Reconstruction"
}