<commit_before>{
    "title": "Biosample",
    "description": "Schema for submitting a biosample.",
    "id": "/profiles/biosample.json",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "required": [ "award", "lab", "biosample_type", "source", "organism", "biosample_term_id"],
    "identifyingProperties": ["uuid","accession","aliases"],
    "additionalProperties": false,
    "mixinProperties": [
        { "$ref": "mixins.json#/schema_version" },
        { "$ref": "mixins.json#/uuid" },
        { "$ref": "mixins.json#/accession" },
        { "$ref": "mixins.json#/biosample_classification" },
        { "$ref": "mixins.json#/aliases" },
        { "$ref": "mixins.json#/attribution" },
        { "$ref": "mixins.json#/standard_status" },
        { "$ref": "mixins.json#/submitted" },
        { "$ref": "mixins.json#/product_id" },
        { "$ref": "mixins.json#/lot_id" },
        { "$ref": "mixins.json#/source" },
        { "$ref": "mixins.json#/references" },
        { "$ref": "mixins.json#/notes" }
    ],
    "dependencies": {
        "transfection_method": ["transfection_type"],
        "depleted_in_term_name": ["depleted_in_term_id"],
        "post_synchronization_time_units": ["post_synchronization_time"],
        "post_synchronization_time": ["post_synchronization_time_units"],
        "depleted_in_term_id": {
            "required": ["depleted_in_term_name"],
            "properties": {
                "biosample_type": {"enum": ["whole organisms", "tissue"]}
            }
        },
        "model_organism_mating_status": {
            "oneOf": [
                {
                    "required": ["model_organism_sex"],
                    "properties": {
                        "model_organism_sex": {
                            "enum": ["male", "female"]
                        }
                    }
                },
                {
                    "not": {
                        "required": ["model_organism_sex"],
                        "properties": {
                            "model_organism_sex": {
                                "enum": ["mixed", "unknown", "hermaphrodite"]
                            }
                        }
                    }
                }
            ]
        },
        "biosample_type": {
            "oneOf": [
                {
                    "properties": {
                        "biosample_type": {
                            "enum": ["whole organisms"]
                        },
                        "organism": {
                            "linkEnum": [
                                "ab546d43-8e2a-4567-8db7-a217e6d6eea0",
                                "5be68469-94ba-4d60-b361-dde8958399ca",
                                "74144f1f-f3a6-42b9-abfd-186a1ca93198",
                                "c3cc08b7-7814-4cae-a363-a16b76883e3f",
                                "d1072fd2-8374-4f9b-85ce-8bc2c61de122",
                                "b9ce90a4-b791-40e9-9b4d-ffb1c6a5aa2b",
                                "0bdd955a-57f0-4e4b-b93d-6dd1df9b766c",
                                "2732dfd9-4fe6-4fd2-9d88-61b7c58cbe20", 
                                "e3ec4c1b-a203-4fe7-a013-96c2d45ab242", 
                                "69efae2b-4df5-4957-81da-346f1b93cb98", 
                                "a7e711b9-534c-44a3-a782-2a15af620739", 
                                "451f9e49-685d-40d5-ad89-760b2512262a",
                                "3413218c-3d86-498b-a0a2-9a406638e786"
                            ]
                        }
                    }
                },
                {
                    "not": {
                        "properties": {
                            "biosample_type": {
                                "enum": ["whole organisms"]
                            },
                            "organism": {
                                "linkEnum": [
                                    "7745b647-ff15-4ff3-9ced-b897d4e2983c"
                                ]
                            }
                        }
                    }
                }
            ]
        },
        "fly_life_stage": {
            "oneOf": [
                {
                    "properties": {
                        "organism": {
                            "linkEnum": [
                                "ab546d43-8e2a-4567-8db7-a217e6d6eea0",
                                "5be68469-94ba-4d60-b361-dde8958399ca",
                                "74144f1f-f3a6-42b9-abfd-186a1ca93198",
                                "c3cc08b7-7814-4cae-a363-a16b76883e3f",
                                "d1072fd2-8374-4f9b-85ce-8bc2c61de122",
                                "b9ce90a4-b791-40e9-9b4d-ffb1c6a5aa2b",
                                "0bdd955a-57f0-4e4b-b93d-6dd1df9b766c"
                            ]
                        }
                    }
                },
                {
                    "not": {
                        "properties": {
                            "organism": {
                                "linkEnum": [
                                    "2732dfd9-4fe6-4fd2-9d88-61b7c58cbe20", 
                                    "e3ec4c1b-a203-4fe7-a013-96c2d45ab242", 
                                    "69efae2b-4df5-4957-81da-346f1b93cb98", 
                                    "a7e711b9-534c-44a3-a782-2a15af620739", 
                                    "451f9e49-685d-40d5-ad89-760b2512262a",
                                    "3413218c-3d86-498b-a0a2-9a406638e786",
                                    "7745b647-ff15-4ff3-9ced-b897d4e2983c"
                                ]
                            }
                        }
                    }
                }
            ]
        },
        "fly_synchronization_stage": {
            "oneOf": [
                {
                    "properties": {
                        "organism": {
                            "linkEnum": [
                                "ab546d43-8e2a-4567-8db7-a217e6d6eea0",
                                "5be68469-94ba-4d60-b361-dde8958399ca",
                                "74144f1f-f3a6-42b9-abfd-186a1ca93198",
                                "c3cc08b7-7814-4cae-a363-a16b76883e3f",
                                "d1072fd2-8374-4f9b-85ce-8bc2c61de122",
                                "b9ce90a4-b791-40e9-9b4d-ffb1c6a5aa2b",
                                "0bdd955a-57f0-4e4b-b93d-6dd1df9b766c"
                            ]
                        }
                    }
                },
                {
                    "not": {
                        "properties": {
                            "organism": {
                                "linkEnum": [
                                    "2732dfd9-4fe6-4fd2-9d88-61b7c58cbe20", 
                                    "e3ec4c1b-a203-4fe7-a013-96c2d45ab242", 
                                    "69efae2b-4df5-4957-81da-346f1b93cb98", 
                                    "a7e711b9-534c-44a3-a782-2a15af620739", 
                                    "451f9e49-685d-40d5-ad89-760b2512262a",
                                    "3413218c-3d86-498b-a0a2-9a406638e786",
                                    "7745b647-ff15-4ff3-9ced-b897d4e2983c"
                                ]
                            }
                        }
                    }
                }
            ]
        },
        "worm_life_stage": {
            "oneOf": [
                {
                    "properties": {
                        "organism": {
                            "linkEnum": [
                                "2732dfd9-4fe6-4fd2-9d88-61b7c58cbe20", 
                                "e3ec4c1b-a203-4fe7-a013-96c2d45ab242", 
                                "69efae2b-4df5-4957-81da-346f1b93cb98", 
                                "a7e711b9-534c-44a3-a782-2a15af620739", 
                                "451f9e49-685d-40d5-ad89-760b2512262a"
                            ]
                        }
                    }
                },
                {
                    "not": {
                        "properties": {
                            "organism": {
                                "linkEnum": [
                                    "ab546d43-8e2a-4567-8db7-a217e6d6eea0",
                                    "5be68469-94ba-4d60-b361-dde8958399ca",
                                    "74144f1f-f3a6-42b9-abfd-186a1ca93198",
                                    "c3cc08b7-7814-4cae-a363-a16b76883e3f",
                                    "d1072fd2-8374-4f9b-85ce-8bc2c61de122",
                                    "b9ce90a4-b791-40e9-9b4d-ffb1c6a5aa2b",
                                    "0bdd955a-57f0-4e4b-b93d-6dd1df9b766c",
                                    "3413218c-3d86-498b-a0a2-9a406638e786",
                                    "7745b647-ff15-4ff3-9ced-b897d4e2983c"
                                    ]
                            }
                        }
                    }
                }
            ]
        },
        "mouse_life_stage": {
            "oneOf": [
                {
                    "properties": {
                        "organism": {
                            "linkEnum": ["3413218c-3d86-498b-a0a2-9a406638e786"]
                        }
                    }
                },
                {
                    "not": {
                        "properties": {
                            "organism": {
                                "linkEnum": [
                                    "ab546d43-8e2a-4567-8db7-a217e6d6eea0",
                                    "5be68469-94ba-4d60-b361-dde8958399ca",
                                    "74144f1f-f3a6-42b9-abfd-186a1ca93198",
                                    "c3cc08b7-7814-4cae-a363-a16b76883e3f",
                                    "d1072fd2-8374-4f9b-85ce-8bc2c61de122",
                                    "b9ce90a4-b791-40e9-9b4d-ffb1c6a5aa2b",
                                    "0bdd955a-57f0-4e4b-b93d-6dd1df9b766c",
                                    "2732dfd9-4fe6-4fd2-9d88-61b7c58cbe20", 
                                    "e3ec4c1b-a203-4fe7-a013-96c2d45ab242", 
                                    "69efae2b-4df5-4957-81da-346f1b93cb98", 
                                    "a7e711b9-534c-44a3-a782-2a15af620739", 
                                    "451f9e49-685d-40d5-ad89-760b2512262a",
                                    "7745b647-ff15-4ff3-9ced-b897d4e2983c"
                                ]
                            }
                        }
                    }
                }
            ]
        }
    },
    "properties": {
        "schema_version": {
            "default": "9"
        },
        "accession": {
            "accessionType": "BS"
        },
        "description": {
            "title": "Description",
            "description": "A plain text description of the biosample. Do not include experiment details, constructs or treatments.",
            "type": "string",
            "default": ""
        },
       "constructs": {
            "title": "DNA constructs",
            "description": "Expression or targeting vectors stably or transiently transfected (not RNAi or TALEN).",
            "type": "array",
            "default": [],
            "items": {
                "title": "DNA Constructs",
                "description": "An expression or targeting vector stably or transiently transfected (not RNAi).",
                "comment": "See contstruct.json for available identifiers.",
                "type":  "string",
                "linkTo": "construct"
            }
        },
        "rnais": {
            "title": "RNAi vectors",
            "description": "RNAi vectors stably or transiently transfected.",
            "type": "array",
            "default": [],
            "items": {
                "title": "RNAi Vector",
                "description": "RNAi vector stably or transiently transfected.",
                "comment": "See rnai.json for available identifiers.",
                "type":  "string",
                "linkTo": "rnai"
            }
        },
        "talens": {
            "title": "TALEN constructs",
            "description": "TALEN constructs used to modify the biosample",
            "type": "array",
            "default": [],
            "items": {
                "title": "TALEN",
                "description": "TALEN used to modify the biosample",
                "comment": "See talen.json for valid identifiers.",
                "type": "string",
                "linkTo": "talen"
            }
        },
        "treatments": {
            "title": "Treatments",
            "type": "array",
            "default": [],
            "items": {
                "title": "Treatment",
                "comment": "See treatment.json for available identifiers.",
                "type": "string",
                "linkTo": "treatment"
            }
        },
        "dbxrefs": {
            "@type": "@id",
            "rdfs:subPropertyOf": "rdfs:seeAlso",
            "title": "External identifiers",
            "description": "Unique identifiers from external resources.",
            "type": "array",
            "default": [],
            "items": {
                "title": "External identifier",
                "description": "A unique identifier from external resource.",
                "type":  "string",
                "pattern": "^(UCSC-ENCODE-cv:[\\S\\s\\d\\-\\(\\)\\+]+)$"
            }
        },
        "protocol_documents": {
            "title": "Protocol documents",
            "description": "Documents that describe the biosample preparation.",
            "type": "array",
            "default": [],
            "items": {
                "title": "Protocol document",
                "description": "A document that describes the biosample preparation.",
                "comment": "See document.json for available identifiers.",
                "type": "string",
                "linkTo": "document"
            }
        },
        "donor": {
            "title": "Donor",
            "comment": "For human biosamples, see human_donor.json for available identifiers. For mouse biosamples, see mouse_donor.json for available identifiers.",
            "type": "string",
            "linkTo": "donor"
        },
        "organism": {
            "title": "Organism",
            "comment": "See organism.json for available identifiers.",
            "type": "string",
            "linkTo": "organism"
        },
        "passage_number": {
            "title": "Passage number",
            "description": "In calculating passage number, include passages from the source.",
            "type": "integer"
        },
        "depleted_in_term_name": {
            "@id": null,
            "type": "array",
            "items": {
                "title": "Depleted in term",
                "description": "UBERON (Uber Anatomy Ontology) term best matching the tissue(s)/body part(s) that were removed from the biosample.",
                "type": "string",
                "enum": [
                    "head",
                    "limb",
                    "salivary gland",
                    "male accessory sex gland",
                    "testis",
                    "female gonad",
                    "digestive system",
                    "arthropod fat body",
                    "antenna",
                    "adult maxillary segment"
                ]
            }
        },
        "depleted_in_term_id": {
            "@type": "@id",
            "type": "array",
            "items": {
                "title": "Depleted in ID",
                "description": "UBERON (Uber Anatomy Ontology) identifier best matching the tissue(s)/body part(s) that were removed from the biosample.",
                "comment": "Based on the choice in depleted_in_term_name use the following guide: head - UBERON:0000033, limb - UBERON:0002101, salivary gland - UBERON:0001044 , male accessory sex gland - UBERON:0010147, testis - UBERON:0000473, female gonad - UBERON:0000992, digestive system - UBERON:0001007, arthropod fat body - UBERON:0003917, antenna - UBERON:0000972, adult maxillary segmant - FBbt:00003016",
                "type": "string",
                "enum": [
                    "UBERON:0000033",
                    "UBERON:0002101",
                    "UBERON:0001044",
                    "UBERON:0010147",
                    "UBERON:0000473",
                    "UBERON:0000992",
                    "UBERON:0001007",
                    "UBERON:0003917",
                    "UBERON:0000972",
                    "FBbt:00003016"
                ]
            }
        },
        "model_organism_mating_status": {
            "title": "Mating status",
            "description": "The mating status of the animal.",
            "type": "string",
            "enum": [
                "mated",
                "virgin",
                "sterile",
                "mixed"
            ]
        },
        "derived_from": {
            "title": "Derived from",
            "description": "A biosample that the sample derives from via a construct or treatment.",
            "comment": "See biosample.json for available identifiers.",
            "type": "string",
            "linkTo": "biosample"
        },
        "pooled_from": {
            "title": "Pooled from",
            "description": "The biosamples from which aliquots were pooled to form the biosample.",
            "type":  "array",
            "default": [],
            "items": {
                "description": "A biosample from which an aliquot was taken to form the biosample.",
                "comment": "See biosample.json for available identifiers.",
                "type": "string",
                "linkTo": "biosample"
            }
        },
        "part_of": {
            "title": "Separated from",
            "description": "A biosample from which a discrete component was taken. That component is this biosample.",
            "comment": "See biosamples.json for available identifiers.",
            "type": "string",
            "linkTo": "biosample"
        },
        "note": {
            "title": "Note",
            "description": "Additional information pertaining to the biosample.",
            "type": "string"
        },
        "subcellular_fraction_term_name": {
            "@id": null,
            "title": "Subcellular fraction name",
            "description": "The GO (Gene Ontology) term name for cellular component that constitutes the biosample.",
            "type": "string",
            "enum": [
                "nucleus", 
                "cytosol", 
                "chromatin",
                "membrane",
                "mitochondria",
                "nuclear matrix",
                "nucleolus",
                "nucleoplasm",
                "polysome"
            ]
        },
        "subcellular_fraction_term_id": {
            "@type": "@id",
            "title": "Subcellular fraction ID",
            "description":  "The GO (Gene Ontology) identifier for cellular component that constitutes the biosample.",
            "comment": "Based on the choice in subcellular_fraction_term_name use the following guide: nucleus - GO:0005634, cytosol - GO:0005829, chromatin - GO:0000785, membrane - GO:0016020, mitochondria - GO:0005739, nuclear matrix - GO:0016363, nucleolus - GO:0005730, nucleoplasm - GO:0005654, polysome - GO:0005844.",
           "type": "string",
            "enum": [
                "GO:0005634",
                "GO:0005829",
                "GO:0000785",
                "GO:0016020",
                "GO:0005739",
                "GO:0016363",
                "GO:0005730",
                "GO:0005654",
                "GO:0005844"
            ]

        },
        "phase": {
            "title": "Cell-cycle phase",
            "type": "string",
            "enum": [
                "G1",
                "G1b",
                "G2",
                "S1",
                "S2",
                "S3",
                "S4"
            ]
        },
        "transfection_type": {
            "title": "Transfection type",
            "description": "The persistence of the transfection construct.",
            "type": "string",
            "enum": [
                "stable", "transient"
            ]
        },
        "transfection_method": {
            "title": "Transfection method",
            "description": "How the transfection was performed on the biosample to introduce the contruct or RNAi.",
            "type": "string",
            "enum": [
                "electroporation", "transduction", "chemical"
            ]
        },
        "culture_harvest_date": {
            "title": "Culture harvest date",
            "description": "For cultured samples, the date the biosample was taken.",
            "comment": "Date can be submitted in as YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSTZD (TZD is the time zone designator; use Z to express time in UTC or for time expressed in local time add a time zone offset from UTC +HH:MM or -HH:MM.",
            "type": "string",
            "anyOf": [
                {"format": "date-time"},
                {"format": "date"}
            ]
        },
        "culture_start_date": {
            "title": "Culture start date",
            "description": "For cultured samples, the date the culture was started. For cell lines, the date this particular growth was started, not the date the line was established.",
            "comment": "Date can be submitted in as YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSTZD ((TZD is the time zone designator; use Z to express time in UTC or for time expressed in local time add a time zone offset from UTC +HH:MM or -HH:MM).",
            "type": "string",            
            "anyOf": [
                {"format": "date-time"},
                {"format": "date"}
            ]
        },
        "date_obtained": {
            "title": "Date obtained",
            "description": "For tissue samples, the date the biosample was taken.",
            "comment": "Date can be submitted in as YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSTZD (TZD is the time zone designator; use Z to express time in UTC or for time expressed in local time add a time zone offset from UTC +HH:MM or -HH:MM).",
            "type": "string",
            "anyOf": [
                {"format": "date-time"},
                {"format": "date"}
            ]
        },
        "starting_amount": {
            "title": "Starting amount",
            "description": "The initial quantity of cells or tissue obtained.",
            "comment": "The pattern is only enforced when the value supplied is a string.",
            "type": ["number", "string"],
            "minimum":0,
            "pattern": "^unknown$"
        },
        "starting_amount_units": {
            "title": "Starting amount units",
            "type": "string",
            "enum": [
                "g",
                "mg",
                "cells/ml",
                "cells", 
                "whole embryos", 
                "items", 
                "μg",
                "whole animals"
            ]
        },
        "url": {
            "title": "URL",
            "description": "An external resource with additional information about the biosample.",
            "type": "string",
            "format": "uri"
        },
        "model_organism_sex": {
            "title": "Model organism sex",
            "type": "string",
            "enum": [
                "male",
                "female",
                "unknown",
                "mixed",
                "hermaphrodite"
            ]
        },
        "mouse_life_stage": {
            "title": "Mouse life stage",
            "type": "string",
            "enum": [
                "adult",
                "unknown",
                "embryonic",
                "postnatal"
            ]
        },
        "fly_life_stage": {
            "title": "Fly life stage",
            "type": "string",
            "enum": [
                "embryonic",
                "larva",
                "first instar larva",
                "second instar larva",
                "third instar larva",
                "wandering third instar larva",
                "prepupa",
                "pupa",
                "adult"
            ]
        },
        "fly_synchronization_stage": {
            "title": "Fly synchronization stage",
            "comment": "Stage at which flies were synchronized. Use in conjunction with time and time units post-synchronization.",
            "type": "string",
            "enum": [
                "fertilization",
                "egg laying",
                "first larval molt",
                "second larval molt",
                "puff stage: PS (1-2), dark blue gut",
                "puff stage: PS (3-6), light blue gut",
                "puff stage: PS (7-9), clear gut",
                "white prepupa",
                "eclosion"
            ]  
        },
        "post_synchronization_time": {
            "title": "Post-synchronization time",
            "comment": "Use in conjunction with fly_sychronization_stage or worm_synchronization_stage to specify time elapsed post-synchronization.",
            "type": "string",
            "pattern": "^(\\d+(\\.[1-9])?(\\-\\d+(\\.[1-9])?)?)|(unknown)$"
        },
        "post_synchronization_time_units": {
            "title": "Post-synchronization time units",
            "comment": "Use in conjunction with post_synchronization_time to specify time elapsed post-synchronization.",
            "type": "string",
            "enum": [
                "minute",
                "hour",
                "day",
                "week",
                "month",
                "stage"
            ]
        },       
        "worm_life_stage":{
            "title": "Worm life stage",
            "type": "string",
            "enum": [
                "early embryonic",
                "late embryonic",
                "mixed stage (embryonic)",
                "mixed stage (late embryonic and L1 larva)",
                "L1 larva",
                "L2 larva",
                "L2d larva",
                "L3 larva",
                "L4 larva",
                "dauer",
                "young adult",
                "adult"
            ]    
        },
        "worm_synchronization_stage": {
            "title": "Worm synchronization stage",
            "comment": "Stage at which worms were synchronized. Use in conjunction with time and time units post-synchronization.",
            "type": "string",
            "enum": [
                "fertilization",
                "egg laying",
                "egg bleaching",
                "starved L1 larva",
                "dauer exit"
            ]
        },
        "model_organism_age": {
            "title": "Model organism donor age",
            "description": " The age or age range of the model donor organism when biological material was sampled.",
            "type": "string",
            "pattern": "^(\\d+(\\.\\d+)?(\\-\\d+(\\.\\d+)?)?)|(unknown)$"
        },
        "model_organism_age_units": {
            "title": "Model organism donor age units",
            "type": "string",
            "enum": [
                "minute",
                "hour",
                "day",
                "week",
                "month",
                "year",
                "stage"
            ]
        },
        "model_organism_health_status": {
            "title": "Model organism donor health status",
            "type": "string"
        },
        "status": {
            "enum" : [
                "in progress",
                "deleted",
                "replaced",
                "released",
                "preliminary",
                "proposed"
            ]
        }
    },
    "facets": {
        "organism.scientific_name": {
            "title": "Organism",
            "type": "string"
        },
        "status": {
            "title": "Biosample status",
            "type": "string"
        },
        "biosample_type": {
            "title": "Biosample type",
            "type": "string"
        },
        "organ_slims": {
            "title": "Organ",
            "type": "array"
        },
        "sex": {
            "title": "Sex",
            "type": "string"
        },
        "life_stage": {
            "title": "Life stage",
            "type": "string"
        },
        "subcellular_fraction_term_name": {
            "title": "Subcellular fraction",
            "type": "string"
        },
        "phase": {
            "title": "Cell cycle phase",
            "type": "string"
        },
        "treatments.treatment_term_name": {
            "title": "Biosample treatment",
            "type": "array"
        },
        "transfection_type": {
            "title": "Transfection type",
            "type": "string"
        },
        "transfection_method": {
            "title": "Transfection method",
            "type": "string"
        },
        "source.title": {
            "title": "Source",
            "type": "string"
        },
        "lab.title": {
            "title": "Lab",
            "type": "string"
        },
        "award.project": {
            "title": "Project",
            "type": "string"
        }
    },
    "columns": {
        "accession": {
            "title": "Accession",
            "type": "string"
        },
        "age": {
            "title": "Age",
            "type": "string"
        },
        "age_units": {
            "title": "Age Units",
            "type": "string"
        },
        "biosample_term_name": {
            "title": "Term",
            "type": "string"
        },
        "biosample_type": {
            "title": "Type",
            "type": "string"
        },
        "synchronization": {
            "title": "Synchronization",
            "type": "string"
        },
        "post_synchronization_time": {
            "title": "Post-synchronization time",
            "type": "string"
        },
        "post_synchronization_time_units": {
            "title": "Post-synchronization time units",
            "type": "string"
        },       
        "organism.scientific_name": {
            "title": "Species",
            "type": "string"
        },
        "source.title": {
            "title": "Source",
            "type": "string"
        },
        "lab.title": {
            "title": "Submitter",
            "type": "string"
        },
        "life_stage": {
            "title": "Life stage",
            "type": "string"
        },
        "status": {
            "title": "Status",
            "type": "string"
        },
        "rnais.target.label": {
            "title": "RNAi target",
            "type": "string"
        },
        "treatments.treatment_term_name": {
            "title": "Treatment",
            "type": "string"
        },
        "constructs.target.label": {
            "title": "Construct",
            "type": "string"
        },
        "culture_harvest_date": {
            "title": "Culture harvest date",
            "type": "string"
        },
        "date_obtained": {
            "title": "Date obtained",
            "type": "string"
        },
        "model_organism_donor_constructs.target.label": {
            "title": "Constructs",
            "type": "string"
        },
        "treatments.length": {
            "title": "Treatments length",
            "type": "array"
        },
        "constructs.length": {
            "title": "Constructs",
            "type": "array"
        }
    },
    "boost_values": {
        "accession": 1.0,
        "aliases": 1.0,
        "alternate_accessions": 1.0,
        "biosample_term_id": 1.0,
        "biosample_term_name": 1.0,
        "organ_slims": 1.0,
        "developmental_slims": 1.0,
        "synonyms": 1.0,
        "dbxrefs": 1.0,
        "subcellular_fraction_term_name": 1.0,
        "phase": 1.0,
        "life_stage": 1.0,
        "synchronization": 1.0,
        "health_status": 1.0,
        "donor.accession": 1.0,
        "donor.alternate_accessions": 1.0,
        "donor.organism.name": 1.0,
        "donor.organism.scientific_name": 1.0,
        "donor.organism.taxon_id": 1.0,
        "award.title": 1.0,
        "award.project": 1.0,
        "submitted_by.email": 1.0,
        "submitted_by.first_name": 1.0,
        "submitted_by.last_name": 1.0,
        "lab.institute_name": 1.0,
        "lab.institute_label": 1.0,
        "lab.title": 1.0,
        "source.title": 1.0,
        "treatments.treatment_type": 1.0,
        "treatments.treatment_term_id": 1.0,
        "treatments.treatment_term_name": 1.0,
        "treatments.dbxrefs": 1.0,
        "treatments.aliases": 1.0,
        "constructs.construct_type": 1.0,
        "constructs.vector_backbone_name": 1.0,
        "constructs.target.gene_name": 1.0,
        "constructs.target.label": 1.0,
        "constructs.target.dbxref": 1.0,
        "constructs.target.aliases": 1.0,
        "derived_from.accession": 1.0,
        "derived_from.alternate_accessions": 1.0,
        "derived_from.biosample_term_id": 1.0,
        "derived_from.biosample_term_name": 1.0,
        "pooled_from.accession": 1.0,
        "pooled_from.alternate_accessions": 1.0,
        "pooled_from.biosample_term_id": 1.0,
        "pooled_from.biosample_term_name": 1.0,
        "characterizations.characterization_method": 1.0,
        "rnais.rnai_type": 1.0,
        "rnais.vector_backbone_name": 1.0,
        "rnais.target.organism.name": 1.0,
        "rnais.target.organism.scientific_name": 1.0,
        "rnais.target.organism.taxon_id": 1.0,
        "rnais.source.title": 1.0,
        "organism.name": 1.0,
        "organism.scientific_name": 1.0,
        "organism.taxon_id": 1.0 
    }
}
<commit_msg>Remove biosample.model_organism_mating_status dependency for now<commit_after>{
    "title": "Biosample",
    "description": "Schema for submitting a biosample.",
    "id": "/profiles/biosample.json",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "required": [ "award", "lab", "biosample_type", "source", "organism", "biosample_term_id"],
    "identifyingProperties": ["uuid","accession","aliases"],
    "additionalProperties": false,
    "mixinProperties": [
        { "$ref": "mixins.json#/schema_version" },
        { "$ref": "mixins.json#/uuid" },
        { "$ref": "mixins.json#/accession" },
        { "$ref": "mixins.json#/biosample_classification" },
        { "$ref": "mixins.json#/aliases" },
        { "$ref": "mixins.json#/attribution" },
        { "$ref": "mixins.json#/standard_status" },
        { "$ref": "mixins.json#/submitted" },
        { "$ref": "mixins.json#/product_id" },
        { "$ref": "mixins.json#/lot_id" },
        { "$ref": "mixins.json#/source" },
        { "$ref": "mixins.json#/references" },
        { "$ref": "mixins.json#/notes" }
    ],
    "dependencies": {
        "transfection_method": ["transfection_type"],
        "depleted_in_term_name": ["depleted_in_term_id"],
        "post_synchronization_time_units": ["post_synchronization_time"],
        "post_synchronization_time": ["post_synchronization_time_units"],
        "depleted_in_term_id": {
            "required": ["depleted_in_term_name"],
            "properties": {
                "biosample_type": {"enum": ["whole organisms", "tissue"]}
            }
        },
        "biosample_type": {
            "oneOf": [
                {
                    "properties": {
                        "biosample_type": {
                            "enum": ["whole organisms"]
                        },
                        "organism": {
                            "linkEnum": [
                                "ab546d43-8e2a-4567-8db7-a217e6d6eea0",
                                "5be68469-94ba-4d60-b361-dde8958399ca",
                                "74144f1f-f3a6-42b9-abfd-186a1ca93198",
                                "c3cc08b7-7814-4cae-a363-a16b76883e3f",
                                "d1072fd2-8374-4f9b-85ce-8bc2c61de122",
                                "b9ce90a4-b791-40e9-9b4d-ffb1c6a5aa2b",
                                "0bdd955a-57f0-4e4b-b93d-6dd1df9b766c",
                                "2732dfd9-4fe6-4fd2-9d88-61b7c58cbe20", 
                                "e3ec4c1b-a203-4fe7-a013-96c2d45ab242", 
                                "69efae2b-4df5-4957-81da-346f1b93cb98", 
                                "a7e711b9-534c-44a3-a782-2a15af620739", 
                                "451f9e49-685d-40d5-ad89-760b2512262a",
                                "3413218c-3d86-498b-a0a2-9a406638e786"
                            ]
                        }
                    }
                },
                {
                    "not": {
                        "properties": {
                            "biosample_type": {
                                "enum": ["whole organisms"]
                            },
                            "organism": {
                                "linkEnum": [
                                    "7745b647-ff15-4ff3-9ced-b897d4e2983c"
                                ]
                            }
                        }
                    }
                }
            ]
        },
        "fly_life_stage": {
            "oneOf": [
                {
                    "properties": {
                        "organism": {
                            "linkEnum": [
                                "ab546d43-8e2a-4567-8db7-a217e6d6eea0",
                                "5be68469-94ba-4d60-b361-dde8958399ca",
                                "74144f1f-f3a6-42b9-abfd-186a1ca93198",
                                "c3cc08b7-7814-4cae-a363-a16b76883e3f",
                                "d1072fd2-8374-4f9b-85ce-8bc2c61de122",
                                "b9ce90a4-b791-40e9-9b4d-ffb1c6a5aa2b",
                                "0bdd955a-57f0-4e4b-b93d-6dd1df9b766c"
                            ]
                        }
                    }
                },
                {
                    "not": {
                        "properties": {
                            "organism": {
                                "linkEnum": [
                                    "2732dfd9-4fe6-4fd2-9d88-61b7c58cbe20", 
                                    "e3ec4c1b-a203-4fe7-a013-96c2d45ab242", 
                                    "69efae2b-4df5-4957-81da-346f1b93cb98", 
                                    "a7e711b9-534c-44a3-a782-2a15af620739", 
                                    "451f9e49-685d-40d5-ad89-760b2512262a",
                                    "3413218c-3d86-498b-a0a2-9a406638e786",
                                    "7745b647-ff15-4ff3-9ced-b897d4e2983c"
                                ]
                            }
                        }
                    }
                }
            ]
        },
        "fly_synchronization_stage": {
            "oneOf": [
                {
                    "properties": {
                        "organism": {
                            "linkEnum": [
                                "ab546d43-8e2a-4567-8db7-a217e6d6eea0",
                                "5be68469-94ba-4d60-b361-dde8958399ca",
                                "74144f1f-f3a6-42b9-abfd-186a1ca93198",
                                "c3cc08b7-7814-4cae-a363-a16b76883e3f",
                                "d1072fd2-8374-4f9b-85ce-8bc2c61de122",
                                "b9ce90a4-b791-40e9-9b4d-ffb1c6a5aa2b",
                                "0bdd955a-57f0-4e4b-b93d-6dd1df9b766c"
                            ]
                        }
                    }
                },
                {
                    "not": {
                        "properties": {
                            "organism": {
                                "linkEnum": [
                                    "2732dfd9-4fe6-4fd2-9d88-61b7c58cbe20", 
                                    "e3ec4c1b-a203-4fe7-a013-96c2d45ab242", 
                                    "69efae2b-4df5-4957-81da-346f1b93cb98", 
                                    "a7e711b9-534c-44a3-a782-2a15af620739", 
                                    "451f9e49-685d-40d5-ad89-760b2512262a",
                                    "3413218c-3d86-498b-a0a2-9a406638e786",
                                    "7745b647-ff15-4ff3-9ced-b897d4e2983c"
                                ]
                            }
                        }
                    }
                }
            ]
        },
        "worm_life_stage": {
            "oneOf": [
                {
                    "properties": {
                        "organism": {
                            "linkEnum": [
                                "2732dfd9-4fe6-4fd2-9d88-61b7c58cbe20", 
                                "e3ec4c1b-a203-4fe7-a013-96c2d45ab242", 
                                "69efae2b-4df5-4957-81da-346f1b93cb98", 
                                "a7e711b9-534c-44a3-a782-2a15af620739", 
                                "451f9e49-685d-40d5-ad89-760b2512262a"
                            ]
                        }
                    }
                },
                {
                    "not": {
                        "properties": {
                            "organism": {
                                "linkEnum": [
                                    "ab546d43-8e2a-4567-8db7-a217e6d6eea0",
                                    "5be68469-94ba-4d60-b361-dde8958399ca",
                                    "74144f1f-f3a6-42b9-abfd-186a1ca93198",
                                    "c3cc08b7-7814-4cae-a363-a16b76883e3f",
                                    "d1072fd2-8374-4f9b-85ce-8bc2c61de122",
                                    "b9ce90a4-b791-40e9-9b4d-ffb1c6a5aa2b",
                                    "0bdd955a-57f0-4e4b-b93d-6dd1df9b766c",
                                    "3413218c-3d86-498b-a0a2-9a406638e786",
                                    "7745b647-ff15-4ff3-9ced-b897d4e2983c"
                                    ]
                            }
                        }
                    }
                }
            ]
        },
        "mouse_life_stage": {
            "oneOf": [
                {
                    "properties": {
                        "organism": {
                            "linkEnum": ["3413218c-3d86-498b-a0a2-9a406638e786"]
                        }
                    }
                },
                {
                    "not": {
                        "properties": {
                            "organism": {
                                "linkEnum": [
                                    "ab546d43-8e2a-4567-8db7-a217e6d6eea0",
                                    "5be68469-94ba-4d60-b361-dde8958399ca",
                                    "74144f1f-f3a6-42b9-abfd-186a1ca93198",
                                    "c3cc08b7-7814-4cae-a363-a16b76883e3f",
                                    "d1072fd2-8374-4f9b-85ce-8bc2c61de122",
                                    "b9ce90a4-b791-40e9-9b4d-ffb1c6a5aa2b",
                                    "0bdd955a-57f0-4e4b-b93d-6dd1df9b766c",
                                    "2732dfd9-4fe6-4fd2-9d88-61b7c58cbe20", 
                                    "e3ec4c1b-a203-4fe7-a013-96c2d45ab242", 
                                    "69efae2b-4df5-4957-81da-346f1b93cb98", 
                                    "a7e711b9-534c-44a3-a782-2a15af620739", 
                                    "451f9e49-685d-40d5-ad89-760b2512262a",
                                    "7745b647-ff15-4ff3-9ced-b897d4e2983c"
                                ]
                            }
                        }
                    }
                }
            ]
        }
    },
    "properties": {
        "schema_version": {
            "default": "9"
        },
        "accession": {
            "accessionType": "BS"
        },
        "description": {
            "title": "Description",
            "description": "A plain text description of the biosample. Do not include experiment details, constructs or treatments.",
            "type": "string",
            "default": ""
        },
       "constructs": {
            "title": "DNA constructs",
            "description": "Expression or targeting vectors stably or transiently transfected (not RNAi or TALEN).",
            "type": "array",
            "default": [],
            "items": {
                "title": "DNA Constructs",
                "description": "An expression or targeting vector stably or transiently transfected (not RNAi).",
                "comment": "See contstruct.json for available identifiers.",
                "type":  "string",
                "linkTo": "construct"
            }
        },
        "rnais": {
            "title": "RNAi vectors",
            "description": "RNAi vectors stably or transiently transfected.",
            "type": "array",
            "default": [],
            "items": {
                "title": "RNAi Vector",
                "description": "RNAi vector stably or transiently transfected.",
                "comment": "See rnai.json for available identifiers.",
                "type":  "string",
                "linkTo": "rnai"
            }
        },
        "talens": {
            "title": "TALEN constructs",
            "description": "TALEN constructs used to modify the biosample",
            "type": "array",
            "default": [],
            "items": {
                "title": "TALEN",
                "description": "TALEN used to modify the biosample",
                "comment": "See talen.json for valid identifiers.",
                "type": "string",
                "linkTo": "talen"
            }
        },
        "treatments": {
            "title": "Treatments",
            "type": "array",
            "default": [],
            "items": {
                "title": "Treatment",
                "comment": "See treatment.json for available identifiers.",
                "type": "string",
                "linkTo": "treatment"
            }
        },
        "dbxrefs": {
            "@type": "@id",
            "rdfs:subPropertyOf": "rdfs:seeAlso",
            "title": "External identifiers",
            "description": "Unique identifiers from external resources.",
            "type": "array",
            "default": [],
            "items": {
                "title": "External identifier",
                "description": "A unique identifier from external resource.",
                "type":  "string",
                "pattern": "^(UCSC-ENCODE-cv:[\\S\\s\\d\\-\\(\\)\\+]+)$"
            }
        },
        "protocol_documents": {
            "title": "Protocol documents",
            "description": "Documents that describe the biosample preparation.",
            "type": "array",
            "default": [],
            "items": {
                "title": "Protocol document",
                "description": "A document that describes the biosample preparation.",
                "comment": "See document.json for available identifiers.",
                "type": "string",
                "linkTo": "document"
            }
        },
        "donor": {
            "title": "Donor",
            "comment": "For human biosamples, see human_donor.json for available identifiers. For mouse biosamples, see mouse_donor.json for available identifiers.",
            "type": "string",
            "linkTo": "donor"
        },
        "organism": {
            "title": "Organism",
            "comment": "See organism.json for available identifiers.",
            "type": "string",
            "linkTo": "organism"
        },
        "passage_number": {
            "title": "Passage number",
            "description": "In calculating passage number, include passages from the source.",
            "type": "integer"
        },
        "depleted_in_term_name": {
            "@id": null,
            "type": "array",
            "items": {
                "title": "Depleted in term",
                "description": "UBERON (Uber Anatomy Ontology) term best matching the tissue(s)/body part(s) that were removed from the biosample.",
                "type": "string",
                "enum": [
                    "head",
                    "limb",
                    "salivary gland",
                    "male accessory sex gland",
                    "testis",
                    "female gonad",
                    "digestive system",
                    "arthropod fat body",
                    "antenna",
                    "adult maxillary segment"
                ]
            }
        },
        "depleted_in_term_id": {
            "@type": "@id",
            "type": "array",
            "items": {
                "title": "Depleted in ID",
                "description": "UBERON (Uber Anatomy Ontology) identifier best matching the tissue(s)/body part(s) that were removed from the biosample.",
                "comment": "Based on the choice in depleted_in_term_name use the following guide: head - UBERON:0000033, limb - UBERON:0002101, salivary gland - UBERON:0001044 , male accessory sex gland - UBERON:0010147, testis - UBERON:0000473, female gonad - UBERON:0000992, digestive system - UBERON:0001007, arthropod fat body - UBERON:0003917, antenna - UBERON:0000972, adult maxillary segmant - FBbt:00003016",
                "type": "string",
                "enum": [
                    "UBERON:0000033",
                    "UBERON:0002101",
                    "UBERON:0001044",
                    "UBERON:0010147",
                    "UBERON:0000473",
                    "UBERON:0000992",
                    "UBERON:0001007",
                    "UBERON:0003917",
                    "UBERON:0000972",
                    "FBbt:00003016"
                ]
            }
        },
        "model_organism_mating_status": {
            "title": "Mating status",
            "description": "The mating status of the animal.",
            "type": "string",
            "enum": [
                "mated",
                "virgin",
                "sterile",
                "mixed"
            ]
        },
        "derived_from": {
            "title": "Derived from",
            "description": "A biosample that the sample derives from via a construct or treatment.",
            "comment": "See biosample.json for available identifiers.",
            "type": "string",
            "linkTo": "biosample"
        },
        "pooled_from": {
            "title": "Pooled from",
            "description": "The biosamples from which aliquots were pooled to form the biosample.",
            "type":  "array",
            "default": [],
            "items": {
                "description": "A biosample from which an aliquot was taken to form the biosample.",
                "comment": "See biosample.json for available identifiers.",
                "type": "string",
                "linkTo": "biosample"
            }
        },
        "part_of": {
            "title": "Separated from",
            "description": "A biosample from which a discrete component was taken. That component is this biosample.",
            "comment": "See biosamples.json for available identifiers.",
            "type": "string",
            "linkTo": "biosample"
        },
        "note": {
            "title": "Note",
            "description": "Additional information pertaining to the biosample.",
            "type": "string"
        },
        "subcellular_fraction_term_name": {
            "@id": null,
            "title": "Subcellular fraction name",
            "description": "The GO (Gene Ontology) term name for cellular component that constitutes the biosample.",
            "type": "string",
            "enum": [
                "nucleus", 
                "cytosol", 
                "chromatin",
                "membrane",
                "mitochondria",
                "nuclear matrix",
                "nucleolus",
                "nucleoplasm",
                "polysome"
            ]
        },
        "subcellular_fraction_term_id": {
            "@type": "@id",
            "title": "Subcellular fraction ID",
            "description":  "The GO (Gene Ontology) identifier for cellular component that constitutes the biosample.",
            "comment": "Based on the choice in subcellular_fraction_term_name use the following guide: nucleus - GO:0005634, cytosol - GO:0005829, chromatin - GO:0000785, membrane - GO:0016020, mitochondria - GO:0005739, nuclear matrix - GO:0016363, nucleolus - GO:0005730, nucleoplasm - GO:0005654, polysome - GO:0005844.",
           "type": "string",
            "enum": [
                "GO:0005634",
                "GO:0005829",
                "GO:0000785",
                "GO:0016020",
                "GO:0005739",
                "GO:0016363",
                "GO:0005730",
                "GO:0005654",
                "GO:0005844"
            ]

        },
        "phase": {
            "title": "Cell-cycle phase",
            "type": "string",
            "enum": [
                "G1",
                "G1b",
                "G2",
                "S1",
                "S2",
                "S3",
                "S4"
            ]
        },
        "transfection_type": {
            "title": "Transfection type",
            "description": "The persistence of the transfection construct.",
            "type": "string",
            "enum": [
                "stable", "transient"
            ]
        },
        "transfection_method": {
            "title": "Transfection method",
            "description": "How the transfection was performed on the biosample to introduce the contruct or RNAi.",
            "type": "string",
            "enum": [
                "electroporation", "transduction", "chemical"
            ]
        },
        "culture_harvest_date": {
            "title": "Culture harvest date",
            "description": "For cultured samples, the date the biosample was taken.",
            "comment": "Date can be submitted in as YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSTZD (TZD is the time zone designator; use Z to express time in UTC or for time expressed in local time add a time zone offset from UTC +HH:MM or -HH:MM.",
            "type": "string",
            "anyOf": [
                {"format": "date-time"},
                {"format": "date"}
            ]
        },
        "culture_start_date": {
            "title": "Culture start date",
            "description": "For cultured samples, the date the culture was started. For cell lines, the date this particular growth was started, not the date the line was established.",
            "comment": "Date can be submitted in as YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSTZD ((TZD is the time zone designator; use Z to express time in UTC or for time expressed in local time add a time zone offset from UTC +HH:MM or -HH:MM).",
            "type": "string",            
            "anyOf": [
                {"format": "date-time"},
                {"format": "date"}
            ]
        },
        "date_obtained": {
            "title": "Date obtained",
            "description": "For tissue samples, the date the biosample was taken.",
            "comment": "Date can be submitted in as YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSTZD (TZD is the time zone designator; use Z to express time in UTC or for time expressed in local time add a time zone offset from UTC +HH:MM or -HH:MM).",
            "type": "string",
            "anyOf": [
                {"format": "date-time"},
                {"format": "date"}
            ]
        },
        "starting_amount": {
            "title": "Starting amount",
            "description": "The initial quantity of cells or tissue obtained.",
            "comment": "The pattern is only enforced when the value supplied is a string.",
            "type": ["number", "string"],
            "minimum":0,
            "pattern": "^unknown$"
        },
        "starting_amount_units": {
            "title": "Starting amount units",
            "type": "string",
            "enum": [
                "g",
                "mg",
                "cells/ml",
                "cells", 
                "whole embryos", 
                "items", 
                "μg",
                "whole animals"
            ]
        },
        "url": {
            "title": "URL",
            "description": "An external resource with additional information about the biosample.",
            "type": "string",
            "format": "uri"
        },
        "model_organism_sex": {
            "title": "Model organism sex",
            "type": "string",
            "enum": [
                "male",
                "female",
                "unknown",
                "mixed",
                "hermaphrodite"
            ]
        },
        "mouse_life_stage": {
            "title": "Mouse life stage",
            "type": "string",
            "enum": [
                "adult",
                "unknown",
                "embryonic",
                "postnatal"
            ]
        },
        "fly_life_stage": {
            "title": "Fly life stage",
            "type": "string",
            "enum": [
                "embryonic",
                "larva",
                "first instar larva",
                "second instar larva",
                "third instar larva",
                "wandering third instar larva",
                "prepupa",
                "pupa",
                "adult"
            ]
        },
        "fly_synchronization_stage": {
            "title": "Fly synchronization stage",
            "comment": "Stage at which flies were synchronized. Use in conjunction with time and time units post-synchronization.",
            "type": "string",
            "enum": [
                "fertilization",
                "egg laying",
                "first larval molt",
                "second larval molt",
                "puff stage: PS (1-2), dark blue gut",
                "puff stage: PS (3-6), light blue gut",
                "puff stage: PS (7-9), clear gut",
                "white prepupa",
                "eclosion"
            ]  
        },
        "post_synchronization_time": {
            "title": "Post-synchronization time",
            "comment": "Use in conjunction with fly_sychronization_stage or worm_synchronization_stage to specify time elapsed post-synchronization.",
            "type": "string",
            "pattern": "^(\\d+(\\.[1-9])?(\\-\\d+(\\.[1-9])?)?)|(unknown)$"
        },
        "post_synchronization_time_units": {
            "title": "Post-synchronization time units",
            "comment": "Use in conjunction with post_synchronization_time to specify time elapsed post-synchronization.",
            "type": "string",
            "enum": [
                "minute",
                "hour",
                "day",
                "week",
                "month",
                "stage"
            ]
        },       
        "worm_life_stage":{
            "title": "Worm life stage",
            "type": "string",
            "enum": [
                "early embryonic",
                "late embryonic",
                "mixed stage (embryonic)",
                "mixed stage (late embryonic and L1 larva)",
                "L1 larva",
                "L2 larva",
                "L2d larva",
                "L3 larva",
                "L4 larva",
                "dauer",
                "young adult",
                "adult"
            ]    
        },
        "worm_synchronization_stage": {
            "title": "Worm synchronization stage",
            "comment": "Stage at which worms were synchronized. Use in conjunction with time and time units post-synchronization.",
            "type": "string",
            "enum": [
                "fertilization",
                "egg laying",
                "egg bleaching",
                "starved L1 larva",
                "dauer exit"
            ]
        },
        "model_organism_age": {
            "title": "Model organism donor age",
            "description": " The age or age range of the model donor organism when biological material was sampled.",
            "type": "string",
            "pattern": "^(\\d+(\\.\\d+)?(\\-\\d+(\\.\\d+)?)?)|(unknown)$"
        },
        "model_organism_age_units": {
            "title": "Model organism donor age units",
            "type": "string",
            "enum": [
                "minute",
                "hour",
                "day",
                "week",
                "month",
                "year",
                "stage"
            ]
        },
        "model_organism_health_status": {
            "title": "Model organism donor health status",
            "type": "string"
        },
        "status": {
            "enum" : [
                "in progress",
                "deleted",
                "replaced",
                "released",
                "preliminary",
                "proposed"
            ]
        }
    },
    "facets": {
        "organism.scientific_name": {
            "title": "Organism",
            "type": "string"
        },
        "status": {
            "title": "Biosample status",
            "type": "string"
        },
        "biosample_type": {
            "title": "Biosample type",
            "type": "string"
        },
        "organ_slims": {
            "title": "Organ",
            "type": "array"
        },
        "sex": {
            "title": "Sex",
            "type": "string"
        },
        "life_stage": {
            "title": "Life stage",
            "type": "string"
        },
        "subcellular_fraction_term_name": {
            "title": "Subcellular fraction",
            "type": "string"
        },
        "phase": {
            "title": "Cell cycle phase",
            "type": "string"
        },
        "treatments.treatment_term_name": {
            "title": "Biosample treatment",
            "type": "array"
        },
        "transfection_type": {
            "title": "Transfection type",
            "type": "string"
        },
        "transfection_method": {
            "title": "Transfection method",
            "type": "string"
        },
        "source.title": {
            "title": "Source",
            "type": "string"
        },
        "lab.title": {
            "title": "Lab",
            "type": "string"
        },
        "award.project": {
            "title": "Project",
            "type": "string"
        }
    },
    "columns": {
        "accession": {
            "title": "Accession",
            "type": "string"
        },
        "age": {
            "title": "Age",
            "type": "string"
        },
        "age_units": {
            "title": "Age Units",
            "type": "string"
        },
        "biosample_term_name": {
            "title": "Term",
            "type": "string"
        },
        "biosample_type": {
            "title": "Type",
            "type": "string"
        },
        "synchronization": {
            "title": "Synchronization",
            "type": "string"
        },
        "post_synchronization_time": {
            "title": "Post-synchronization time",
            "type": "string"
        },
        "post_synchronization_time_units": {
            "title": "Post-synchronization time units",
            "type": "string"
        },       
        "organism.scientific_name": {
            "title": "Species",
            "type": "string"
        },
        "source.title": {
            "title": "Source",
            "type": "string"
        },
        "lab.title": {
            "title": "Submitter",
            "type": "string"
        },
        "life_stage": {
            "title": "Life stage",
            "type": "string"
        },
        "status": {
            "title": "Status",
            "type": "string"
        },
        "rnais.target.label": {
            "title": "RNAi target",
            "type": "string"
        },
        "treatments.treatment_term_name": {
            "title": "Treatment",
            "type": "string"
        },
        "constructs.target.label": {
            "title": "Construct",
            "type": "string"
        },
        "culture_harvest_date": {
            "title": "Culture harvest date",
            "type": "string"
        },
        "date_obtained": {
            "title": "Date obtained",
            "type": "string"
        },
        "model_organism_donor_constructs.target.label": {
            "title": "Constructs",
            "type": "string"
        },
        "treatments.length": {
            "title": "Treatments length",
            "type": "array"
        },
        "constructs.length": {
            "title": "Constructs",
            "type": "array"
        }
    },
    "boost_values": {
        "accession": 1.0,
        "aliases": 1.0,
        "alternate_accessions": 1.0,
        "biosample_term_id": 1.0,
        "biosample_term_name": 1.0,
        "organ_slims": 1.0,
        "developmental_slims": 1.0,
        "synonyms": 1.0,
        "dbxrefs": 1.0,
        "subcellular_fraction_term_name": 1.0,
        "phase": 1.0,
        "life_stage": 1.0,
        "synchronization": 1.0,
        "health_status": 1.0,
        "donor.accession": 1.0,
        "donor.alternate_accessions": 1.0,
        "donor.organism.name": 1.0,
        "donor.organism.scientific_name": 1.0,
        "donor.organism.taxon_id": 1.0,
        "award.title": 1.0,
        "award.project": 1.0,
        "submitted_by.email": 1.0,
        "submitted_by.first_name": 1.0,
        "submitted_by.last_name": 1.0,
        "lab.institute_name": 1.0,
        "lab.institute_label": 1.0,
        "lab.title": 1.0,
        "source.title": 1.0,
        "treatments.treatment_type": 1.0,
        "treatments.treatment_term_id": 1.0,
        "treatments.treatment_term_name": 1.0,
        "treatments.dbxrefs": 1.0,
        "treatments.aliases": 1.0,
        "constructs.construct_type": 1.0,
        "constructs.vector_backbone_name": 1.0,
        "constructs.target.gene_name": 1.0,
        "constructs.target.label": 1.0,
        "constructs.target.dbxref": 1.0,
        "constructs.target.aliases": 1.0,
        "derived_from.accession": 1.0,
        "derived_from.alternate_accessions": 1.0,
        "derived_from.biosample_term_id": 1.0,
        "derived_from.biosample_term_name": 1.0,
        "pooled_from.accession": 1.0,
        "pooled_from.alternate_accessions": 1.0,
        "pooled_from.biosample_term_id": 1.0,
        "pooled_from.biosample_term_name": 1.0,
        "characterizations.characterization_method": 1.0,
        "rnais.rnai_type": 1.0,
        "rnais.vector_backbone_name": 1.0,
        "rnais.target.organism.name": 1.0,
        "rnais.target.organism.scientific_name": 1.0,
        "rnais.target.organism.taxon_id": 1.0,
        "rnais.source.title": 1.0,
        "organism.name": 1.0,
        "organism.scientific_name": 1.0,
        "organism.taxon_id": 1.0 
    }
}

{'fraction_non_alphanumeric': 0.12695190968621292, 'fraction_numerical': 0.053927523778482325, 'mean_word_length': 1.139158268365342, 'pattern_counts': {'":': 1009, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 80, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7301109', 'n_tokens_mistral': 21982, 'n_tokens_neox': 19010, 'n_words': 3530}