{ "$defs": { "AccessionID": { "additionalProperties": false, "description": "Accession identifier", "properties": { "name": { "description": "Accession name", "type": "string" }, "url": { "description": "Accession URL", "format": "uri", "type": "string" } }, "title": "AccessionID", "type": "object" }, "Author": { "additionalProperties": false, "description": "Person or organization; uri is an ORCID URI", "properties": { "name": { "description": "Name of the person or organization", "type": "string" }, "nameType": { "$ref": "#/$defs/NameType", "description": "Whether the author is a person (Personal) or an organization (Organizational), as DataCite nameType" }, "uri": { "description": "ORCID URI", "format": "uri", "pattern": "^https://orcid\\.org/[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0-9X]$", "type": "string" } }, "title": "Author", "type": "object" }, "BuscoMode": { "description": "BUSCO run modes", "enum": [ "proteins", "transcriptome", "genome" ], "title": "BuscoMode", "type": "string" }, "Completeness": { "additionalProperties": false, "description": "BUSCO completeness as counts, with the lineage dataset whose name gives its version (for example primates_odb10)", "properties": { "buscoVersion": { "description": "Version of BUSCO", "type": "string" }, "completeDuplicated": { "description": "Complete duplicated BUSCOs (D)", "minimum": 0, "type": "integer" }, "completeSingle": { "description": "Complete single-copy BUSCOs (S)", "minimum": 0, "type": "integer" }, "fragmented": { "description": "Fragmented BUSCOs (F)", "minimum": 0, "type": "integer" }, "lineageDataset": { "description": "BUSCO lineage dataset, including its version suffix", "pattern": "^[a-z0-9_]+_odb[0-9]+$", "type": "string" }, "missing": { "description": "Missing BUSCOs (M)", "minimum": 0, "type": "integer" }, "mode": { "$ref": "#/$defs/BuscoMode", "description": "BUSCO mode" }, "total": { "description": "Number of BUSCO groups searched (n)", "minimum": 1, "type": "integer" } }, "required": [ "lineageDataset", "completeSingle", "completeDuplicated", "fragmented", "missing", "total" ], "title": "Completeness", "type": "object" }, "DerivationRelationship": { "description": "Provisional relationship vocabulary for derivedFrom. Values and any PROV-O / Relation Ontology mapping await a maintainer decision (FAIR-bioHeaders-Specification#54).", "enum": [ "annotates", "transcribedFrom", "translatedFrom", "filteredFrom", "assembledFrom" ], "title": "DerivationRelationship", "type": "string" }, "DerivedFrom": { "additionalProperties": false, "description": "Link to a parent file by its FHR-family checksum (specs/004-shared-core-schema FR-003). Provisional until the relationship vocabulary is decided (FAIR-bioHeaders-Specification#54).", "properties": { "accessionID": { "$ref": "#/$defs/AccessionID", "description": "Accession of the parent file" }, "checksum": { "description": "FHR-family checksum of the parent file", "pattern": "^[A-Za-z0-9+/]{43}=$", "type": "string", "minLength": 44, "maxLength": 44 }, "headerType": { "$ref": "#/$defs/HeaderType", "description": "FAIR-bioHeaders type of the parent file" }, "relationship": { "$ref": "#/$defs/DerivationRelationship", "description": "How this file relates to the parent. Provisional vocabulary: a PROV-O or Relation Ontology mapping is pending a maintainer decision (FAIR-bioHeaders-Specification#54)." }, "seqcol_id": { "description": "Sequence collection digest of the parent, if supplied", "pattern": "^[A-Za-z0-9_-]{32}$", "type": "string", "minLength": 32, "maxLength": 32 } }, "required": [ "headerType", "checksum", "relationship" ], "title": "DerivedFrom", "type": "object" }, "FHP": { "additionalProperties": false, "description": "Metadata for protein FASTA files (proteomes and protein sets).", "properties": { "accessionID": { "$ref": "#/$defs/AccessionID", "description": "Accession of the protein set" }, "checksum": { "description": "sha2-512/256 checksum value for hashing", "pattern": "^[A-Za-z0-9+/]{43}=$", "type": "string", "minLength": 44, "maxLength": 44 }, "completeness": { "$ref": "#/$defs/Completeness", "description": "BUSCO completeness of the protein set, as counts" }, "dateCreated": { "description": "Date the protein set was created", "format": "date", "type": "string" }, "derivedFrom": { "description": "Parent files this file was derived from, identified by their FHR-family checksum. Header types opt in by listing this slot; FHR schemaVersion 1 does not include it.", "items": { "$ref": "#/$defs/DerivedFrom" }, "type": "array" }, "documentation": { "description": "Documentation about the protein set", "type": "string" }, "funding": { "description": "Grant line item", "type": "string" }, "geneticCode": { "anyOf": [ { "maximum": 6, "minimum": 1 }, { "maximum": 16, "minimum": 9 }, { "maximum": 33, "minimum": 21 } ], "description": "NCBI translation table ID used to translate the sequences (1-6, 9-16 or 21-33); omitted when unknown or when the file mixes tables", "type": "integer" }, "identifier": { "description": "Identifiers of the protein set", "items": { "pattern": "^[A-Za-z0-9._-]+:.+$", "type": "string" }, "type": "array" }, "isoformPolicy": { "$ref": "#/$defs/IsoformPolicy", "description": "Which protein isoforms of each gene the set contains" }, "metadataAuthor": { "description": "Authors of the FHP instance", "items": { "$ref": "#/$defs/Author" }, "type": "array" }, "predictionProtocol": { "description": "Prediction or annotation protocol or workflow reference URI", "format": "uri", "type": "string" }, "predictionSoftware": { "description": "Software that produced the gene models or translations", "items": { "$ref": "#/$defs/Software" }, "type": "array" }, "proteome": { "description": "Name of the protein set", "type": "string" }, "relatedLink": { "description": "Related URLs to the protein set", "items": { "format": "uri", "type": "string" }, "type": "array" }, "reuseConditions": { "description": "Reuse conditions or license for the protein set", "type": "string" }, "schema": { "description": "URL of the FHP JSON Schema this record follows (raw-main, a release's raw tag URL or its w3id URL; docs/SCHEMA-VERSIONS.md); it identifies the header type (FR-011)", "pattern": "^(https://raw\\.githubusercontent\\.com/FAIR-bioHeaders/(FHR|FAIR-bioHeaders)-Specification/(main|v[0-9]+\\.[0-9]+\\.[0-9]+)/fhp\\.json|https://w3id\\.org/fair-bioheaders/fhp/v[0-9]+\\.[0-9]+\\.[0-9]+/?)$", "type": "string" }, "schemaVersion": { "description": "Version of the FHP schema contract (\"MAJOR.MINOR\")", "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$", "type": "string", "enum": [ "1.0" ] }, "scholarlyArticle": { "description": "Scholarly article where the protein set was published", "pattern": "^10\\.[0-9]+(\\.[0-9]+)*/\\S+$", "type": "string" }, "sequenceStats": { "$ref": "#/$defs/SequenceStats", "description": "Counts describing the protein set, as asserted by the producer" }, "source": { "description": "Sources of the sequences that are not FAIR-bioHeaders files, as asserted by the producer; never verified by checksum", "items": { "$ref": "#/$defs/Source" }, "type": "array" }, "sourceType": { "$ref": "#/$defs/SourceType", "description": "Where the sequences came from: predicted (a gene-prediction or annotation run), database (a published database release, set or annotation run) or mixed (more than one origin). Not a review status." }, "taxon": { "$ref": "#/$defs/Taxon", "description": "Species name and URL of the species information at identifiers.org" }, "version": { "description": "Version of the protein set", "type": "string" }, "voucherSpecimen": { "description": "Description of the physical sample", "type": "string" } }, "required": [ "schema", "schemaVersion", "proteome", "sourceType", "taxon", "version", "metadataAuthor", "dateCreated", "checksum" ], "title": "FHP", "type": "object" }, "HeaderType": { "description": "FAIR-bioHeaders header types", "enum": [ "FHR", "FHT", "FHP", "FHGFF3" ], "title": "HeaderType", "type": "string" }, "IsoformPolicy": { "description": "Which protein isoforms of each gene a set contains", "enum": [ "all", "longestPerGene", "canonicalPerGene" ], "title": "IsoformPolicy", "type": "string" }, "NameType": { "description": "Kind of author, with the values of DataCite nameType", "enum": [ "Personal", "Organizational" ], "title": "NameType", "type": "string" }, "SequenceStats": { "additionalProperties": false, "description": "Counts describing a protein set", "properties": { "geneCount": { "description": "Number of genes the sequences represent", "minimum": 0, "type": "integer" }, "sequenceCount": { "description": "Number of protein sequences in the file", "minimum": 0, "type": "integer" }, "totalResidues": { "description": "Total number of residues in the file", "minimum": 0, "type": "integer" } }, "title": "SequenceStats", "type": "object" }, "Software": { "additionalProperties": false, "description": "Software with its version and options.", "properties": { "commandLineOption": { "description": "Command-line options given to the software, in order", "items": { "type": "string" }, "type": "array" }, "name": { "description": "Name of the software", "type": "string" }, "uri": { "description": "URI of the software", "format": "uri", "type": "string" }, "version": { "description": "Version of the software", "type": "string" } }, "required": [ "name" ], "title": "Software", "type": "object" }, "Source": { "additionalProperties": false, "description": "A source of sequences that is not a FAIR-bioHeaders file: a database release, set, annotation run or other contribution", "properties": { "assemblyAccession": { "description": "Genome assembly accession that the source states for this set; an assertion by the source, not a checksum link", "type": "string" }, "description": { "description": "What was taken from the source, or how the sequences were contributed", "type": "string" }, "name": { "description": "Name of the database, resource or contribution", "type": "string" }, "release": { "description": "Release or annotation run of the source, as the source names it", "type": "string" }, "sequenceCount": { "description": "Number of sequences in the file that came from this source", "minimum": 0, "type": "integer" }, "setIdentifier": { "description": "Identifier of the set taken from the source, for example a UniProt proteome ID", "type": "string" }, "url": { "description": "URL of the source or set", "format": "uri", "type": "string" } }, "required": [ "name" ], "title": "Source", "type": "object" }, "SourceType": { "description": "Where the sequences of a protein set came from (FR-005)", "enum": [ "predicted", "database", "mixed" ], "title": "SourceType", "type": "string" }, "Taxon": { "additionalProperties": false, "description": "Species name and taxonomy URI", "properties": { "name": { "description": "Name of the species", "type": "string" }, "uri": { "description": "Taxonomy URI", "format": "uri", "pattern": "^https://identifiers\\.org/taxonomy:[0-9]+$", "type": "string" } }, "title": "Taxon", "type": "object" } }, "$id": "https://raw.githubusercontent.com/FAIR-bioHeaders/FAIR-bioHeaders-Specification/main/fhp.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "Metadata for protein FASTA files (proteomes and protein sets).", "properties": { "accessionID": { "$ref": "#/$defs/AccessionID", "description": "Accession of the protein set" }, "checksum": { "description": "sha2-512/256 checksum value for hashing", "pattern": "^[A-Za-z0-9+/]{43}=$", "type": "string", "minLength": 44, "maxLength": 44 }, "completeness": { "$ref": "#/$defs/Completeness", "description": "BUSCO completeness of the protein set, as counts" }, "dateCreated": { "description": "Date the protein set was created", "format": "date", "type": "string" }, "derivedFrom": { "description": "Parent files this file was derived from, identified by their FHR-family checksum. Header types opt in by listing this slot; FHR schemaVersion 1 does not include it.", "items": { "$ref": "#/$defs/DerivedFrom" }, "type": "array" }, "documentation": { "description": "Documentation about the protein set", "type": "string" }, "funding": { "description": "Grant line item", "type": "string" }, "geneticCode": { "anyOf": [ { "maximum": 6, "minimum": 1 }, { "maximum": 16, "minimum": 9 }, { "maximum": 33, "minimum": 21 } ], "description": "NCBI translation table ID used to translate the sequences (1-6, 9-16 or 21-33); omitted when unknown or when the file mixes tables", "type": "integer" }, "identifier": { "description": "Identifiers of the protein set", "items": { "pattern": "^[A-Za-z0-9._-]+:.+$", "type": "string" }, "type": "array" }, "isoformPolicy": { "$ref": "#/$defs/IsoformPolicy", "description": "Which protein isoforms of each gene the set contains" }, "metadataAuthor": { "description": "Authors of the FHP instance", "items": { "$ref": "#/$defs/Author" }, "type": "array" }, "predictionProtocol": { "description": "Prediction or annotation protocol or workflow reference URI", "format": "uri", "type": "string" }, "predictionSoftware": { "description": "Software that produced the gene models or translations", "items": { "$ref": "#/$defs/Software" }, "type": "array" }, "proteome": { "description": "Name of the protein set", "type": "string" }, "relatedLink": { "description": "Related URLs to the protein set", "items": { "format": "uri", "type": "string" }, "type": "array" }, "reuseConditions": { "description": "Reuse conditions or license for the protein set", "type": "string" }, "schema": { "description": "URL of the FHP JSON Schema this record follows (raw-main, a release's raw tag URL or its w3id URL; docs/SCHEMA-VERSIONS.md); it identifies the header type (FR-011)", "pattern": "^(https://raw\\.githubusercontent\\.com/FAIR-bioHeaders/(FHR|FAIR-bioHeaders)-Specification/(main|v[0-9]+\\.[0-9]+\\.[0-9]+)/fhp\\.json|https://w3id\\.org/fair-bioheaders/fhp/v[0-9]+\\.[0-9]+\\.[0-9]+/?)$", "type": "string" }, "schemaVersion": { "description": "Version of the FHP schema contract (\"MAJOR.MINOR\")", "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$", "type": "string", "enum": [ "1.0" ] }, "scholarlyArticle": { "description": "Scholarly article where the protein set was published", "pattern": "^10\\.[0-9]+(\\.[0-9]+)*/\\S+$", "type": "string" }, "sequenceStats": { "$ref": "#/$defs/SequenceStats", "description": "Counts describing the protein set, as asserted by the producer" }, "source": { "description": "Sources of the sequences that are not FAIR-bioHeaders files, as asserted by the producer; never verified by checksum", "items": { "$ref": "#/$defs/Source" }, "type": "array" }, "sourceType": { "$ref": "#/$defs/SourceType", "description": "Where the sequences came from: predicted (a gene-prediction or annotation run), database (a published database release, set or annotation run) or mixed (more than one origin). Not a review status." }, "taxon": { "$ref": "#/$defs/Taxon", "description": "Species name and URL of the species information at identifiers.org" }, "version": { "description": "Version of the protein set", "type": "string" }, "voucherSpecimen": { "description": "Description of the physical sample", "type": "string" } }, "required": [ "schema", "schemaVersion", "proteome", "sourceType", "taxon", "version", "metadataAuthor", "dateCreated", "checksum" ], "title": "FHP", "type": "object" }