{
  "contract": "algal.bundle.v1",
  "root": "sha256:4da29e11e19de47a2ced05ca4e2c80832d2f9a2aba93da74e611dc1eea202fa3",
  "manifests": {
    "sha256:4da29e11e19de47a2ced05ca4e2c80832d2f9a2aba93da74e611dc1eea202fa3": {
      "contract": "algal.organism.v1",
      "key": "organism:ratios",
      "name": "ratios",
      "budgets": {
        "maxAgentCalls": 0,
        "maxContextBytes": 65536,
        "maxDepth": 4,
        "maxOutputBytes": 65536,
        "maxSteps": 256,
        "maxWork": 1000000
      },
      "cells": [
        {
          "id": "input",
          "kind": "input",
          "outputs": {
            "samples": {
              "type": "json"
            }
          }
        },
        {
          "id": "result-arg-1",
          "kind": "expr",
          "expr": {
            "contract": "algal.expr.v1",
            "program": [
              "get",
              "value-1"
            ]
          },
          "output": {
            "kind": "json",
            "schema": {}
          },
          "inputs": {
            "value-1": {
              "type": "json"
            }
          }
        },
        {
          "id": "result-each",
          "kind": "each",
          "manifest": "sha256:db83448450592317238d3e16f4ff1fdeda4bb490d89c7a395fd3c30962107a74",
          "over": "sample",
          "maxItems": 3
        },
        {
          "id": "result",
          "kind": "expr",
          "expr": {
            "contract": "algal.expr.v1",
            "program": [
              "get",
              "items"
            ]
          },
          "output": {
            "kind": "json",
            "schema": {
              "type": "array"
            }
          },
          "inputs": {
            "items": {
              "type": "json"
            }
          }
        }
      ],
      "edges": [
        {
          "from": {
            "cell": "input",
            "port": "samples"
          },
          "to": {
            "cell": "result-arg-1",
            "port": "value-1"
          }
        },
        {
          "from": {
            "cell": "result-arg-1",
            "port": "out"
          },
          "to": {
            "cell": "result-each",
            "port": "sample"
          }
        },
        {
          "from": {
            "cell": "result-each",
            "port": "result"
          },
          "to": {
            "cell": "result",
            "port": "items"
          }
        }
      ],
      "interface": {
        "inputs": {
          "samples": {
            "cell": "input",
            "port": "samples"
          }
        },
        "outputs": {
          "result": {
            "cell": "result",
            "port": "out"
          }
        }
      }
    },
    "sha256:db83448450592317238d3e16f4ff1fdeda4bb490d89c7a395fd3c30962107a74": {
      "contract": "algal.organism.v1",
      "key": "organism:ratio",
      "name": "ratio",
      "budgets": {
        "maxAgentCalls": 0,
        "maxContextBytes": 65536,
        "maxDepth": 4,
        "maxOutputBytes": 65536,
        "maxSteps": 256,
        "maxWork": 1000000
      },
      "cells": [
        {
          "id": "input",
          "kind": "input",
          "outputs": {
            "sample": {
              "type": "json"
            }
          }
        },
        {
          "id": "b1-fraction",
          "kind": "expr",
          "expr": {
            "contract": "algal.expr.v1",
            "program": [
              "div",
              [
                "get",
                "value-1",
                "numerator"
              ],
              [
                "get",
                "value-1",
                "denominator"
              ]
            ]
          },
          "output": {
            "kind": "json",
            "schema": {
              "type": "number"
            }
          },
          "inputs": {
            "value-1": {
              "type": "json"
            }
          }
        },
        {
          "id": "result",
          "kind": "expr",
          "expr": {
            "contract": "algal.expr.v1",
            "program": {
              "fraction": [
                "get",
                "value-1"
              ]
            }
          },
          "output": {
            "kind": "json",
            "schema": {
              "type": "object"
            }
          },
          "inputs": {
            "value-1": {
              "type": "json"
            }
          }
        }
      ],
      "edges": [
        {
          "from": {
            "cell": "input",
            "port": "sample"
          },
          "to": {
            "cell": "b1-fraction",
            "port": "value-1"
          }
        },
        {
          "from": {
            "cell": "b1-fraction",
            "port": "out"
          },
          "to": {
            "cell": "result",
            "port": "value-1"
          }
        }
      ],
      "interface": {
        "inputs": {
          "sample": {
            "cell": "input",
            "port": "sample"
          }
        },
        "outputs": {
          "result": {
            "cell": "result",
            "port": "out"
          }
        }
      }
    }
  },
  "values": {}
}
