solve_dilution
Solve C₁V₁ = C₂V₂ for whichever of the four quantities is left empty (stock concentration, stock volume, final concentration, final volume), each in its own unit: molar (M to fM), mass per volume (mg/mL to ng/mL), fold (X) or percent. Returns all four, the fold and the diluent volume to add. Refuses a 'dilution' that would raise the concentration, and two concentrations of different dimensions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. | |
| final_volume | No | final volume (V₂). Leave exactly one of the four quantities empty: that one is calculated. | |
| stock_volume | No | stock volume (V₁). Leave exactly one of the four quantities empty: that one is calculated. | |
| final_volume_unit | No | the unit of the final volume, given or solved. | mL |
| stock_volume_unit | No | the unit of the stock volume, given or solved. | µL |
| final_concentration | No | final concentration (C₂). Leave exactly one of the four quantities empty: that one is calculated. | |
| stock_concentration | No | stock concentration (C₁). Leave exactly one of the four quantities empty: that one is calculated. | |
| final_concentration_unit | No | the unit of the final concentration, given or solved. | µM |
| stock_concentration_unit | No | the unit of the stock concentration, given or solved. | mM |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fold | Yes | C₁/C₂, how many times the stock is diluted | |
| unit | Yes | the solved quantity's unit | |
| value | Yes | the solved quantity, in its own unit | |
| solved | Yes | which quantity was solved, by its parameter name | |
| diluent | Yes | V₂ − V₁, the diluent to add, in V₂'s unit |