{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "version": {
            "type": "string"
        },
        "resources": {
            "type": "object",
            "properties": {
                "reference": {
                    "type": "string"
                },
                "dbsnp": {
                    "type": "string"
                }
            }
        },
        "globalQsub": {
            "type": "object"
        },
        "analyses": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "analysis": {
                        "type": "string"
                    },
                    "description": {
                        "type": "string"
                    },
                    "inputFormat": {
                        "type": "string"
                    },
                    "program": {
                        "type": "string"
                    },
                    "enable": {
                        "type": "integer",
                        "enum": [
                            0,
                            1
                        ]
                    },
                    "outdirs": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "outfiles": {
                        "type": "array",
                        "items": {
                            "type": "object"
                        }
                    },
                    "dependencies": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "modules": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "jar": {
                        "type": "string"
                    },
                    "javavm": {
                        "type": "string"
                    },
                    "qsub": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "slots": {
                                "type": "integer"
                            },
                            "mem": {
                                "type": "string"
                            },
                            "time": {
                                "type": "string"
                            },
                            "directory": {
                                "type": "string"
                            },
                            "queue": {
                                "type": "string"
                            },
                            "project": {
                                "type": "string"
                            },
                            "host": {
                                "type": "string"
                            },
                            "pe": {
                                "type": "string"
                            },
                            "account": {
                                "type": "string"
                            }
                        }
                    },
                    "params": {
                        "type": "object"
                    },
                    "args": {
                        "description": "An array of command-line arguments.",
                        "type": "array"
                    }
                },
                "additionalProperties": false
            }
        }
    },
    "additionalProperties": false
}