chemart / farmer-immune

View on GitHub

Bitstring immune system model (idiotypic network) — An immune system as a reaction network, and one of the few chemistries that fixes its own rate constants. Antibodies are bitstrings with two sites; when one antibody's paratope matches another's epitope, the recogniser i…

chemistry official · built in bio-inspired fidelity: book+decisions constructive #banzhaf-yamamoto
files / preview.json · 10.8 KB · at d10c66aaa02d Raw
{"species": [{"id": "X1", "structure": "e=01110011 p=00100100"}, {"id": "X2", "structure": "e=11001111 p=10010000"}, {"id": "X3", "structure": "e=10001010 p=01000001"}, {"id": "X4", "structure": "e=11010110 p=10010100"}, {"id": "X5", "structure": "e=01010111 p=00111000"}, {"id": "X6", "structure": "e=01110110 p=01111111"}, {"id": "X7", "structure": "e=00110111 p=10110000"}, {"id": "X8", "structure": "e=01111100 p=10101101"}, {"id": "X9", "structure": "e=01100011 p=11111000"}, {"id": "X10", "structure": "e=01101110 p=01011101"}, {"id": "Y1", "structure": "e=01001110"}, {"id": "Y2", "structure": "e=11001100"}], "reactions": [{"reactants": {"X1": 1, "X2": 1}, "products": {"X1": 2, "X2": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X1": 1, "X4": 1}, "products": {"X4": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X1": 1, "X5": 1}, "products": {"X5": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X1": 1, "X6": 1}, "products": {"X1": 2, "X6": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X1": 1, "X7": 1}, "products": {"X1": 2, "X7": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X1": 1, "X8": 1}, "products": {"X8": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X1": 1, "X10": 1}, "products": {"X1": 2, "X10": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X2": 1, "X1": 1}, "products": {"X1": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X2": 2}, "products": {"X2": 3}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X2": 2}, "products": {"X2": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X2": 1, "X3": 1}, "products": {"X3": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X2": 1, "X4": 1}, "products": {"X2": 2, "X4": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X2": 1, "X5": 1}, "products": {"X5": 1}, "rate": {"law": "mass-action", "k": 3.0}, "count": null}, {"reactants": {"X2": 1, "X7": 1}, "products": {"X2": 2, "X7": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X2": 1, "X7": 1}, "products": {"X7": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X2": 1, "X9": 1}, "products": {"X2": 2, "X9": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X2": 1, "X10": 1}, "products": {"X2": 2, "X10": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X3": 1, "X2": 1}, "products": {"X3": 2, "X2": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X3": 1, "X5": 1}, "products": {"X3": 2, "X5": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X3": 1, "X5": 1}, "products": {"X5": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X3": 1, "X6": 1}, "products": {"X6": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X3": 1, "X8": 1}, "products": {"X3": 2, "X8": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X3": 1, "X10": 1}, "products": {"X10": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X4": 1, "X1": 1}, "products": {"X4": 2, "X1": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X4": 1, "X2": 1}, "products": {"X2": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X4": 2}, "products": {"X4": 3}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X4": 2}, "products": {"X4": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X4": 1, "X5": 1}, "products": {"X4": 2, "X5": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X4": 1, "X5": 1}, "products": {"X5": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X4": 1, "X7": 1}, "products": {"X4": 2, "X7": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X4": 1, "X8": 1}, "products": {"X8": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X4": 1, "X9": 1}, "products": {"X4": 2, "X9": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X4": 1, "X10": 1}, "products": {"X4": 2, "X10": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X5": 1, "X1": 1}, "products": {"X5": 2, "X1": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X5": 1, "X2": 1}, "products": {"X5": 2, "X2": 1}, "rate": {"law": "mass-action", "k": 3.0}, "count": null}, {"reactants": {"X5": 1, "X3": 1}, "products": {"X5": 2, "X3": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X5": 1, "X3": 1}, "products": {"X3": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X5": 1, "X4": 1}, "products": {"X5": 2, "X4": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X5": 1, "X4": 1}, "products": {"X4": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X5": 2}, "products": {"X5": 3}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X5": 2}, "products": {"X5": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X5": 1, "X7": 1}, "products": {"X7": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X5": 1, "X8": 1}, "products": {"X8": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X5": 1, "X9": 1}, "products": {"X5": 2, "X9": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X5": 1, "X9": 1}, "products": {"X9": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X6": 1, "X1": 1}, "products": {"X1": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X6": 1, "X3": 1}, "products": {"X6": 2, "X3": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X6": 1, "X8": 1}, "products": {"X8": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X7": 1, "X1": 1}, "products": {"X1": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X7": 1, "X2": 1}, "products": {"X7": 2, "X2": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X7": 1, "X2": 1}, "products": {"X2": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X7": 1, "X4": 1}, "products": {"X4": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X7": 1, "X5": 1}, "products": {"X7": 2, "X5": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X7": 2}, "products": {"X7": 3}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X7": 2}, "products": {"X7": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X7": 1, "X9": 1}, "products": {"X9": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X7": 1, "X10": 1}, "products": {"X7": 2, "X10": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X8": 1, "X1": 1}, "products": {"X8": 2, "X1": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X8": 1, "X3": 1}, "products": {"X3": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X8": 1, "X4": 1}, "products": {"X8": 2, "X4": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X8": 1, "X5": 1}, "products": {"X8": 2, "X5": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X8": 1, "X6": 1}, "products": {"X8": 2, "X6": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X9": 1, "X2": 1}, "products": {"X2": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X9": 1, "X4": 1}, "products": {"X4": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X9": 1, "X5": 1}, "products": {"X9": 2, "X5": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X9": 1, "X5": 1}, "products": {"X5": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X9": 1, "X7": 1}, "products": {"X9": 2, "X7": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X10": 1, "X1": 1}, "products": {"X1": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X10": 1, "X2": 1}, "products": {"X2": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X10": 1, "X3": 1}, "products": {"X10": 2, "X3": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X10": 1, "X4": 1}, "products": {"X4": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X10": 1, "X7": 1}, "products": {"X7": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X2": 1, "Y1": 1}, "products": {"X2": 2, "Y1": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"Y1": 1, "X2": 1}, "products": {"X2": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X7": 1, "Y1": 1}, "products": {"X7": 2, "Y1": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"Y1": 1, "X7": 1}, "products": {"X7": 1}, "rate": {"law": "mass-action", "k": 2.0}, "count": null}, {"reactants": {"X9": 1, "Y1": 1}, "products": {"X9": 2, "Y1": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"Y1": 1, "X9": 1}, "products": {"X9": 1}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"X1": 1}, "products": {}, "rate": {"law": "mass-action", "k": 0.5}, "count": null}, {"reactants": {"X2": 1}, "products": {}, "rate": {"law": "mass-action", "k": 0.5}, "count": null}, {"reactants": {"X3": 1}, "products": {}, "rate": {"law": "mass-action", "k": 0.5}, "count": null}, {"reactants": {"X4": 1}, "products": {}, "rate": {"law": "mass-action", "k": 0.5}, "count": null}, {"reactants": {"X5": 1}, "products": {}, "rate": {"law": "mass-action", "k": 0.5}, "count": null}, {"reactants": {"X6": 1}, "products": {}, "rate": {"law": "mass-action", "k": 0.5}, "count": null}, {"reactants": {"X7": 1}, "products": {}, "rate": {"law": "mass-action", "k": 0.5}, "count": null}, {"reactants": {"X8": 1}, "products": {}, "rate": {"law": "mass-action", "k": 0.5}, "count": null}, {"reactants": {"X9": 1}, "products": {}, "rate": {"law": "mass-action", "k": 0.5}, "count": null}, {"reactants": {"X10": 1}, "products": {}, "rate": {"law": "mass-action", "k": 0.5}, "count": null}], "status": "complete", "initial_state": null, "inflow": null, "outflow": null, "extras": {}, "chemistry": "farmer-immune", "params": {"N": 10, "M": 2, "l_e": 8, "l_p": 8, "s": 6, "c": 1.0, "k1": 1.0, "k2": 0.5, "k3": 1.0}, "seed": 1}