{
    "$id": "design_matrix/v1.json",
    "$schema": "http://json-schema.org/draft-07/schema",
    "_attributes": {
        "format": "application/x-hdf5"
    },
    "additionalProperties": false,
    "description": "A design matrix stored in a HDF5 file. The matrix itself is held in the `design` float dataset, where rows represent samples and columns represent model coefficients. Coefficient names are stored in the `coefficients` string dataset while sample names, if any exist, are stored in the `samples` string dataset. If the matrix was constructed from any factors, the names of the factors are saved in the `factors` string dataset.",
    "properties": {
        "$schema": {
            "description": "The schema to use.",
            "type": "string"
        },
        "design_matrix": {
            "additionalProperties": false,
            "properties": {
                "dimensions": {
                    "description": "Dimensions of a two-dimensional object.",
                    "items": {
                        "type": "integer"
                    },
                    "maxItems": 2,
                    "minItems": 2,
                    "type": "array"
                }
            },
            "required": [
                "dimensions"
            ],
            "type": "object"
        },
        "is_child": {
            "default": false,
            "description": "Is this a child document, only to be interpreted in the context of the parent document from which it is linked? This may have implications for search and metadata requirements.",
            "type": "boolean"
        },
        "md5sum": {
            "description": "MD5 checksum for the file.",
            "type": "string"
        },
        "path": {
            "description": "Path to the file in the project directory.",
            "type": "string"
        }
    },
    "required": [
        "$schema",
        "design_matrix",
        "md5sum",
        "path"
    ],
    "title": "Design matrix",
    "type": "object"
}
