{"openapi":"3.0.0","info":{"version":"1.3.0","title":"ABB x Atinary Cell Parametrization","description":"Parameter specification and description for self-driving chemical reaction cell. (v1.2.0 - Added root-level experiment schema with metadata)"},"paths":{},"components":{"schemas":{"kit_reaction":{"type":"object","description":"Configuration for plate-based reactions using 24-vial plates. Contains both plate-wide parameters and individual well configurations.","properties":{"plate_params":{"$ref":"#/components/schemas/plate_level_params","description":"Plate-wide parameters that apply uniformly to ALL wells. These include reaction conditions, cooling settings, etc. that cannot be overridden at the well level."},"wells":{"type":"array","description":"Well-specific configurations for reagents and sample data. Each well can have different reagents but inherits reaction parameters from plate_params. Wells cannot override plate-wide reaction conditions.","items":{"$ref":"#/components/schemas/wells_data"}}}},"tube_reaction":{"type":"array","items":{"$ref":"#/components/schemas/tube_level_params"}},"tube_level_params":{"type":"object","description":"Parameters for individual tube reactions. Each tube is independent with its own complete configuration.","properties":{"uuid":{"type":"string","description":"Unique Sample Identifier"},"position":{"$ref":"#/components/schemas/position_tube"},"purification_step":{"type":"boolean"},"reaction_details":{"$ref":"#/components/schemas/reaction_details_schema"},"cooldown_details":{"$ref":"#/components/schemas/cooling_details_schema"},"solid_reagents":{"type":"array","items":{"$ref":"#/components/schemas/reagent_info"}},"liquid_reagents":{"type":"array","items":{"$ref":"#/components/schemas/reagent_info"}},"sampling":{"type":"array","items":{"$ref":"#/components/schemas/sampling_info"}},"hplc_details":{"$ref":"#/components/schemas/hplc_sequence"}}},"plate_level_params":{"type":"object","description":"Plate-wide parameters that apply uniformly to all wells. These settings cannot be overridden at the individual well level and include reaction conditions, cooling parameters, and purification requirements.","properties":{"purification_step":{"type":"boolean","description":"Requirement to perform purification step (applies to entire plate)"},"pre_mixing_velocity":{"type":"integer","format":"int32","description":"Mixing Velocity before reaction (same for all wells) - Unit RPM","minimum":0,"maximum":1200},"reaction_details":{"$ref":"#/components/schemas/reaction_details_schema","description":"Reaction parameters applied uniformly to all wells - no per-well overrides possible"},"cooling_details":{"$ref":"#/components/schemas/cooling_details_schema","description":"Cooling parameters applied uniformly to all wells - no per-well overrides possible"}}},"reaction_details_schema":{"type":"object","description":"Reaction conditions (temperature, time, stirring) - when used in plate_params, applies to ALL wells","properties":{"temperature":{"$ref":"#/components/schemas/reaction_temperature"},"time":{"$ref":"#/components/schemas/reaction_time"},"stirring":{"$ref":"#/components/schemas/reaction_stirring"}}},"reaction_temperature":{"type":"object","properties":{"initial_temperature":{"type":"integer","format":"int32","description":"Initial temperature of the plate prior to the start of the experiment in Celsius","minimum":-20,"maximum":10},"time":{"type":"integer","format":"int32","description":"Time to have the Temperature set for - Unit: Minutes","minimum":0,"maximum":1440},"value":{"type":"integer","format":"int32","description":"Reaction Temperature in Celsius","minimum":0,"maximum":200}},"description":"Reaction temperature setting. In a later state we can consider having this defined as sequence, with a list for time and a list for the temperatures to set."},"reaction_time":{"type":"integer","format":"int32","description":"Reaction Time - Unit: Minutes","minimum":0,"maximum":1440},"reaction_stirring":{"type":"object","properties":{"time":{"type":"integer","format":"int32","description":"time to have the stirring - Unit: Minutes","minimum":0,"maximum":1440},"speed":{"type":"integer","format":"int32","description":"steering speed in RPM","minimum":0,"maximum":1200},"type":{"type":"string","description":"Type of steering in the case of KitReaction, but only Bottom-Magnetic for TubeReaction","enum":["Overhead","Bottom-Magnetic"]}},"description":"Stirring details"},"cooling_details_schema":{"type":"object","description":"Cooling and quenching parameters - when used in plate_params, applies to ALL wells","properties":{"time":{"$ref":"#/components/schemas/cool_down_time"},"quenching":{"$ref":"#/components/schemas/quenching_amount"}}},"cool_down_time":{"type":"integer","format":"int32","description":"Reaction cooldown time in Minutes","minimum":0,"maximum":10},"quenching_amount":{"type":"number","format":"float","description":"Amount of Quenching solution to dispense. Only used for TubeReactions - Unit: micro liters (ul)","minimum":0,"maximum":5000},"wells_data":{"type":"object","description":"Configuration for an individual well. Contains well-specific reagents and analytical settings while inheriting reaction conditions from plate_params.","properties":{"position":{"$ref":"#/components/schemas/position_well"},"uuid":{"type":"string","description":"Unique identifier for the sample in this well"},"solid_reagents":{"type":"array","description":"Well-specific solid reagents. Each well can have different solid reagents.","items":{"$ref":"#/components/schemas/reagent_info"}},"liquid_reagents":{"type":"array","description":"Well-specific liquid reagents. Each well can have different liquid reagents.","items":{"$ref":"#/components/schemas/reagent_info"}},"hplc_details":{"$ref":"#/components/schemas/hplc_sequence","description":"Well-specific HPLC analysis parameters. Each well can have different analytical settings."}}},"reagent_info":{"type":"object","properties":{"name":{"type":"string","description":"Reagent name","example":"Dichloromethane"},"position":{"$ref":"#/components/schemas/position_deck"},"qty":{"type":"number","format":"float","description":"Reagent amount to be dispensed can be volume in the case of liquid and mass for solids - Units: micro liters or micro grams","minimum":0,"maximum":1200000}}},"sampling_info":{"type":"object","properties":{"amount":{"type":"integer","format":"int32","description":"Volume to sample from the Tube to probe - Unit: micro liters","minimum":0,"maximum":1000000},"time":{"type":"integer","format":"int32","description":"time interval to take the sample - Unit: Minutes","minimum":0,"maximum":60},"period":{"type":"integer","format":"int32","description":"how often to do the sampling","minimum":0,"maximum":25},"uuid":{"type":"string","description":"Identifier for the sample."}}},"position_well":{"type":"string","description":"Well position using letter-number notation: A1 - D6)","pattern":"^[A-D]([1-6])$","example":"A1"},"position_tube":{"type":"string","description":"Vial position using number notation: 1-10"},"position_deck":{"type":"string","description":"Reagent deck position using letter-number notation. Solids 1 - 10, liquids 1 - 20, with 16-20 being the bigger bottles.","pattern":"^[1-9][0-9]?$","example":"B15"},"hplc_sequence":{"type":"object","properties":{"action":{"type":"string","description":"Sequence of action for OpenLab. This is set once and is not dynamically defined.","enum":["Inject"]},"vial":{"type":"string","description":"Well Position"},"sample":{"type":"string","description":"","enum":["Sample"]},"acquisition_method":{"type":"string","description":"Acquisition Method","enum":["purity.amx"]},"processing_method":{"type":"string","description":"Processing Method"},"injection_vial":{"type":"integer","description":"how often will we inject from that sample","minimum":1,"maximum":10},"injection_source":{"type":"string","description":"HipsAlp or OpenBed, depending on whether it is a TubeReaction or a KitReaction","enum":["HipsAlp","OpenBed"]},"sample_amount":{"type":"integer","description":"Volume of the sample - Unit: microliters","minimum":0,"maximum":1000},"uuid":{"type":"string","description":"Unique identifier for the sample."},"targets":{"type":"array","items":{"type":"number","format":"float","description":"mass of the reagents to look for in Daltons. This is defined considering the reaction, Reactants and Products. "}}}}}}}