{
    "title": "Invocation manifest for HCP: Functional Preprocessing Pipeline",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "config": {
            "type": "object",
            "properties": {
                "save-on-error": {
                    "type": "boolean",
                    "default": false
                },
                "FREESURFER_LICENSE": {
                    "type": "string"
                },
                "dry-run": {
                    "type": "boolean",
                    "default": false
                },
                "fMRIName": {
                    "type": "string",
                    "default": "rfMRI_REST1_RL",
                    "enum": [
                        "rfMRI_REST1_RL",
                        "rfMRI_REST1_LR",
                        "rfMRI_REST2_RL",
                        "rfMRI_REST2_LR",
                        "tfMRI_WM_RL",
                        "tfMRI_WM_LR",
                        "tfMRI_GAMBLING_RL",
                        "tfMRI_GAMBLING_LR",
                        "tfMRI_MOTOR_RL",
                        "tfMRI_MOTOR_LR",
                        "tfMRI_LANGUAGE_RL",
                        "tfMRI_LANGUAGE_LR",
                        "tfMRI_SOCIAL_RL",
                        "tfMRI_SOCIAL_LR",
                        "tfMRI_RELATIONAL_RL",
                        "tfMRI_RELATIONAL_LR",
                        "tfMRI_EMOTION_RL",
                        "tfMRI_EMOTION_LR"
                    ]
                },
                "BiasCorrection": {
                    "type": "string",
                    "default": "NONE",
                    "enum": [
                        "NONE",
                        "SEBased",
                        "Legacy"
                    ]
                },
                "MotionCorrection": {
                    "type": "string",
                    "default": "MCFLIRT",
                    "enum": [
                        "MCFLIRT",
                        "FLIRT"
                    ]
                },
                "AnatomyRegDOF": {
                    "type": "integer",
                    "default": 6,
                    "enum": [
                        6,
                        12
                    ]
                },
                "RegName": {
                    "type": "string",
                    "default": "Empty",
                    "enum": [
                        "Empty",
                        "FS",
                        "MSMSulc"
                    ]
                }
            },
            "required": [
                "save-on-error",
                "dry-run",
                "fMRIName",
                "BiasCorrection",
                "MotionCorrection",
                "AnatomyRegDOF",
                "RegName"
            ]
        },
        "inputs": {
            "type": "object",
            "properties": {
                "StructZip": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "archive"
                            ]
                        }
                    }
                },
                "fMRITimeSeries": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "nifti"
                            ]
                        }
                    }
                },
                "fMRIScout": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "nifti"
                            ]
                        }
                    }
                },
                "GradientCoeff": {
                    "type": "object",
                    "properties": {}
                },
                "SpinEchoPositive": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "nifti"
                            ]
                        }
                    }
                },
                "SpinEchoNegative": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "nifti"
                            ]
                        }
                    }
                },
                "SiemensGREMagnitude": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "nifti"
                            ]
                        }
                    }
                },
                "SiemensGREPhase": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "enum": [
                                "nifti"
                            ]
                        }
                    }
                },
                "FreeSurferLicense": {
                    "type": "object",
                    "properties": {}
                }
            },
            "required": [
                "StructZip",
                "fMRITimeSeries"
            ]
        }
    },
    "required": [
        "config",
        "inputs"
    ]
}