{
    "$id": "sequence_information/v1.json",
    "$schema": "http://json-schema.org/draft-07/schema",
    "_attributes": {
        "format": "text/csv",
        "restore": {
            "R": "alabaster.ranges::loadSeqinfo"
        }
    },
    "additionalProperties": false,
    "description": "Sequence information, stored in a CSV file (see [here](https://github.com/ArtifactDB/takane/blob/master/docs/specifications/sequence_information/v1.md) for a detailed specification). This contains a data frame with one row per reference sequence in the custom annotation. It has at least the columns `seqnames` (string), `seqlengths` (integer), `isCircular` (boolean), and `genome` (string).",
    "properties": {
        "$schema": {
            "description": "The schema to use.",
            "type": "string"
        },
        "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"
        },
        "sequence_information": {
            "additionalProperties": false,
            "properties": {
                "compression": {
                    "description": "Type of compression applied to the file.",
                    "enum": [
                        "none",
                        "gzip",
                        "bzip2"
                    ],
                    "type": "string"
                },
                "dimensions": {
                    "description": "Dimensions of a two-dimensional object.",
                    "items": {
                        "type": "integer"
                    },
                    "maxItems": 2,
                    "minItems": 2,
                    "type": "array"
                }
            },
            "required": [
                "compression",
                "dimensions"
            ],
            "type": "object"
        }
    },
    "required": [
        "$schema",
        "md5sum",
        "path",
        "sequence_information"
    ],
    "title": "Sequence information",
    "type": "object"
}
