{
  "name": "lims",
  "version": "1.0.0",
  "description": "Next-generation sequencing laboratory information management system. Tracks the complete NGS workflow from sample receipt through QC, library preparation, sequencing, and bioinformatics analysis.",
  "domain": "lims",
  "adl_version": "0.3.1",
  "resources": ["Project", "Sample", "Instrument", "Protocol", "Run", "Analysis"],
  "features": [
    "audit",
    "search",
    "export",
    "state_machine",
    "m2m_relationships",
    "permissions",
    "rich_enums",
    "computed_fields"
  ],
  "enums": [
    "SampleType",
    "SampleStatus",
    "RunStatus",
    "InstrumentStatus",
    "AnalysisStatus",
    "Organism",
    "LibraryPrepKit",
    "SequencingPlatform"
  ],
  "state_machines": {
    "Sample": {
      "field": "status",
      "states": ["received", "qc_passed", "qc_failed", "library_prep", "sequencing", "analysis", "complete"],
      "initial": "received"
    },
    "Run": {
      "field": "status",
      "states": ["planned", "loading", "running", "completed", "failed"],
      "initial": "planned"
    },
    "Analysis": {
      "field": "status",
      "states": ["queued", "running", "completed", "failed"],
      "initial": "queued"
    }
  },
  "relationships": {
    "Project_hasMany_Sample": { "type": "hasMany", "from": "Project", "to": "Sample" },
    "Sample_belongsTo_Project": { "type": "belongsTo", "from": "Sample", "to": "Project" },
    "Instrument_hasMany_Run": { "type": "hasMany", "from": "Instrument", "to": "Run" },
    "Run_belongsTo_Instrument": { "type": "belongsTo", "from": "Run", "to": "Instrument" },
    "Run_belongsTo_Protocol": { "type": "belongsTo", "from": "Run", "to": "Protocol" },
    "Run_belongsToMany_Sample": { "type": "belongsToMany", "from": "Run", "to": "Sample", "through": "RunSamples" },
    "Run_hasMany_Analysis": { "type": "hasMany", "from": "Run", "to": "Analysis" },
    "Analysis_belongsTo_Run": { "type": "belongsTo", "from": "Analysis", "to": "Run" }
  },
  "files": {
    "domain": "domain.yaml",
    "seed": "seed.yaml"
  },
  "roles": ["admin", "pi", "lab_tech", "authenticated"],
  "author": "Kalos Team",
  "license": "MIT"
}
