The model-first pipeline, and what it costs
Almost every data platform in the life sciences has been assembled in the same order, with each layer resting on the one beneath it:
- A data model is defined, general enough to hold datasets that nobody has yet seen.
- An ETL pipeline is written to reshape every incoming dataset into that model.
- An API is built on top of the model so that the data can be queried.
- An application is built on top of the API so that researchers can see and interact with the results.
This ordering assumes that once the model is in place, each new dataset will simply add more rows of the same kind, so that loading it never requires changing the model itself. Nobody expects that to hold across different assays, because a CRISPR screen and a spatial atlas obviously need different tables, but most platforms do expect it to hold for studies of the same assay, and that is where, in our experience, it breaks down.
Consider one model for drug perturbation data, in which every record is a perturbation, a gene and a fold change, and our three studies of that assay arriving in turn. The first, Study A, ran a dose and time series, and while its measurements load easily, the fitted curves and potencies its publication reports have no table to go into.
Study B tested compounds in pairs, which the model can only record as opaque perturbation labels, leaving behind the synergy scores that are its central finding.
Study C profiled a panel of fifty cell lines, and its comparison by genotype survives, at best, as a column of metadata that no query knows how to use.
With each arrival the team must either change a model on which every layer and every earlier study depends, or load what fits and discard the rest, and under any real deadline the second option wins. The three studies share an assay and its primary measurements, but each answers its own question, and the secondary analyses that publications actually report differ from one study to the next, so a generic model keeps exactly what they have in common and loses what they were run to find.
A platform built that way ends up holding the raw material of many publications while having lost the conclusions of each, so that a researcher who wants a study's dose-response fits or its synergy scores must leave the platform and return to the supplementary files. The loss is easy to overlook precisely because nothing visibly fails: every dataset loads, every query returns rows, and the application appears complete.
So the cost is measured in time rather than in lost information, because a genuinely new kind of dataset touches all four layers of the stack and can therefore take months to reach the scientists who need it. Teams respond to that cost in the only rational way available to them, which is to onboard fewer datasets, or to onboard them so shallowly that the platform ends up holding far more data than it is able to explain.
Each dataset deserves its own model
Our starting position is that each study deserves a data model adjusted to it: one that keeps the measurements its assay shares with other studies, adds the derived results that its own design and analyses produced, and refers to genes, drugs, cell lines and cell types through a vocabulary shared by every study, so that the model is shaped by the publication rather than by the platform that happens to receive it.
This was always the better design, and experienced data engineers have long known it; what made it impractical was its price, since a bespoke model implies a bespoke pipeline, bespoke queries and bespoke screens, and no team could afford to pay that price again for every dataset it took in. The universal schema was never adopted because it was the best representation of the science, but because it was the only way to keep the cost of engineering under control.
What has changed is the cost itself. Reading a methods section, proposing a set of tables, writing the code that loads the raw files and testing the result against published numbers is now work that an AI agent can draft in hours, which means the economics that once justified a single schema for everything have quietly stopped applying, even though most of the industry's architecture has yet to catch up with that fact.
AI drafts the model and the pipeline, and people approve them
A dataset never arrives alone, because it comes accompanied by a publication, by supplementary methods, and by a body of related work that shows how the field has learned to use data of that kind. Taken together, that context describes what the dataset is for, which is precisely what a good data model ought to encode, and it is context that until recently only a human expert could read.
We therefore give the agent the same material that we would hand to a new member of the team:
- The publication, which sets out the experimental design, the figures and the claims the authors chose to make.
- The raw data, in exactly the form in which the authors released it.
- The related literature, which shows how comparable datasets have been analysed elsewhere in the field.
From these inputs the agent drafts a data model shaped like the experiment, the ETL code that loads the raw files into that model, and a set of checks.
It is the checks that carry the most weight. If a paper reports 1,100 compounds across 50 cell lines, or the effect of a well-characterised drug on its known target, then the loaded data should reproduce those results, and a model that cannot reproduce the paper it was derived from is simply wrong, however elegant its structure may appear.
The draft then goes to people, in the form of a pull request that a scientist and an engineer review and approve as they would any other change, because the purpose of the agent is to remove the labour of drafting and not the responsibility of judgement.
We can keep one branch per dataset within a single repository, so that the model, the pipeline and the checks for a given dataset are developed together and merged together. Traceability follows almost for free from that arrangement: for any number a researcher sees on screen, we can point to the code that produced it, the review that approved it and the reasoning recorded along the way, and when the authors release a corrected version of their data we reopen the branch instead of beginning again.
What the builder still owns: the dictionary
If every dataset is allowed a model of its own, the obvious objection is that the system will degenerate into a collection of unrelated databases that happen to share a login page.
What prevents this is that the models differ in structure while continuing to speak about the same things. Whatever the experiment, the data it produces refers to genes, drugs, cell lines and genotypes, so that a drug screen and a CRISPR screen, which share almost nothing in the layout of their tables, will nonetheless both mention TP53 and both mention A549.
The work of the application builder therefore becomes narrower and, we would argue, considerably more valuable. Instead of maintaining one large schema, the builder maintains a dictionary of the common entities and their interactions, in which every gene, drug, cell line and genotype has a single identity together with the synonyms and external identifiers by which different datasets refer to it. Each dataset model remains free in its shape and carries only one obligation, which is that wherever it mentions a common entity it must point to that entity's entry in the dictionary. Study A keeps fitted potencies over dose and time, Study B synergy scores for drug pairs and Study C responses by genotype, so their tables share few columns, yet in all three the drug, the cell line and the gene point to the same entries in the dictionary, and Study C's genotypes point to a controlled vocabulary that the next study profiling mutations will reuse.
A dictionary of this kind is far smaller than a universal schema and changes far more slowly, since new assay types appear every year while the list of human genes barely moves, and that asymmetry is what allows a small team to remain in control of a system whose data models multiply with every dataset it takes in.
Asking across studies: a translation generated at runtime
Researchers do not think in studies, and they ask questions such as “Which drugs suppress this gene, and how strongly?” expecting an answer from everything the system holds; a generic model answers that in one query while many models seem to make it much harder, which is, in fairness, the strongest argument left for the traditional approach.
That single query, however, is simple only because the generic model has already discarded what would make the answer interesting: it returns a fold change from each study, with no way of saying that the first knows each drug's potency, the second knows which pairs act in synergy, and the third knows the genotypes in which the effect holds. We believe the shared model was doing a job that is better done later, and we call its replacement an intermediate translation: an AI-generated description of what each common concept means within each study and of how to query it there.
The single query is simple only because the generic model has already discarded whatever would have made the answer interesting.
Applied to “suppress a gene”, the translation reads each study according to its design.
In Study A, the dose series, it means the potency and maximal effect taken from the fitted curve, the strongest answer the system holds.
In Study B, where each drug was tested at one fixed dose, it means whether a drug suppresses the gene but not how potently, together with the pairs that suppress it in synergy.
In Study C, the cell-line panel, it means a fold change in each of fifty lines, grouped by the genotypes in which the effect appears.
The translation is assembled from two things the system already holds, namely the dictionary and the study models, and it is regenerated whenever a new study is merged, so that nobody has to edit a central schema to make room for the newcomer. The new study's model is read, its relationship to the common concepts is worked out, and the translation grows to include it.
Two properties of this design deserve emphasis. The first is that the translation is explicit: where a generic model conceals the fact that “suppression” was established in a different way by each study, here the difference is written down and travels with the answer, so that a fold change observed at one fixed dose is never silently ranked against a potency fitted across eight. The second is that a study is permitted to answer in part, or not at all, which serves a scientist far better than a uniform column of numbers whose comparability has to be taken on trust.
Dashboards that belong to a dataset
The same argument extends naturally to the user interface. A generic table and a generic chart are capable of displaying any dataset, and for exactly that reason they display none of them particularly well, since a dose-response screen calls for a dose-response explorer and a spatial atlas calls for a view of the tissue it was measured in.
Two developments have made dataset-specific interfaces practical. Agents are now able to write interface code, and artifact frameworks, whether general ones such as Claude's artifacts or bespoke ones built for a particular product, give that code a governed place in which to run. In protoXell we chose the bespoke route, so that our agent does not emit free-form pages but a small, validated definition that names the component to show and the typed query that feeds it, and the application re-runs that query as the person viewing it, which ensures that access rules continue to hold however the component came to exist.
We intend to extend this from single components to whole dashboards. When a dataset is onboarded, the same agent that reads the publication can also propose the dashboards that would make the most of the data, together with the queries and interactions each of them needs, and people can review those proposals alongside the model and the pipeline. The dashboards that result are, in effect, the figures of the paper made interactive, as Study A's curves and Study B's synergy matrix show, and extended to the questions the paper did not have room to ask.
Three kinds of questions
Not every question can be anticipated, and those that can are not all of the same kind. Some belong to a single dataset, and its publication has already asked them: how potent each compound is in Study A, which pairs act in synergy in Study B. They are answered by the dataset's own dashboards, drafted with it at onboarding and reviewed alongside its model.
Most questions, however, reach across datasets, and nobody can say in advance which of them will be asked: “Which cells express MYC?”, or “What else do we know about this target?” These are answered on the spot, with data or with a dashboard assembled for the occasion. The answer serves the person who asked, but it is computed afresh every time, and nobody has reviewed it.
Some of these questions, however, turn out to be common ground, needed by many researchers rather than by one. Those are promoted: their answer is prepared once as a shared layer across the datasets it draws on, and becomes a cross-dataset dashboard, reviewed like any other. It works much like a cache, in which whatever is needed often is prepared once and kept, and the result is a product that grows in the direction of its use.
Summary of our approach
The traditional pipeline asked us to decide what all data looks like before we had seen any of it, and we are convinced that the better order is the reverse:
- Each dataset should keep a model of its own, drafted by AI from the publication and approved by people who understand the science.
- The model, pipeline and dashboards of each dataset should be kept together and traceable, on a branch of a single repository.
- The builder should maintain a dictionary of common entities in place of a universal schema.
- The translation between datasets should be generated when it is needed and regenerated whenever a new dataset arrives.
- Dataset-specific dashboards should ship as micro-frontends, while the questions nobody planned for are answered on demand and promoted to dashboards once they prove common.
The role of the people who build discovery software changes along with the architecture, since less of their work lies in deciding in advance how data must be shaped and far more of it lies in curating the vocabulary of the field, reviewing what the AI proposes, and judging which answers deserve to become a lasting part of the product. We think this is where the whole category is heading, we are building protoXell in that direction, and we will report in later posts on what holds up in practice and what does not.