Editing a protein is not quite like shortening a paragraph. Remove the wrong piece and the remaining sequence may no longer fold or function as intended. Raygun, a Duke-developed AI framework reported in July and published in Nature’s September 2026 issue, tackles that problem by redesigning existing proteins across different lengths.[1][2]
Its starting point is a protein language model, trained to recognise patterns in biological sequences. Raygun adds a representation that allows a long protein and a short one to be compared within the same mathematical framework. The aim is not simply to cut off part of a chain. It is to generate a different chain that retains useful characteristics of the original.[1]
A common format for molecules of different sizes
The central idea is to encode a protein as a probability distribution in a fixed-dimensional space, using representations learned by a protein language model. Sequence length can then change without changing the shape of that underlying representation. The authors control sequence alteration and length separately, allowing coordinated substitutions, insertions and deletions.[2]
An analogy is a design brief rather than a photocopy. A brief can describe the essential relationships in an object without specifying that every component must occupy the same position in a replacement. Raygun’s mathematical representation is more technical than that analogy, but it addresses the same obstacle: preserving something useful while allowing the form to change.
The public repository makes the template-based workflow explicit. Researchers begin with an existing sequence, generate alternatives and select candidates for further evaluation. Its guidance recommends producing and filtering multiple designs rather than treating the first output as a validated protein. Code availability opens the computational method to examination; it does not remove the experimental work.[3]
Evidence for different kinds of redesign
| Test | What was established |
|---|---|
| Sequence and structure assessment | Many shortened designs retained predicted structure and functional sites. |
| Fluorescent proteins and TurboID | Selected miniaturised designs were validated in cell-based experiments. |
| Expanded epidermal growth factor | Selected variants had greater measured receptor-binding affinity than the natural form. |
Shorter is a design choice, not a universal improvement
Duke’s account describes potential uses in research tools, biotechnology and eventually targeted medicines. The immediate attraction is flexibility: start with a molecule that already does something useful, then investigate whether its size or other properties can be adjusted. That is a different ambition from asking a model to invent an entirely new biological function.[1]
The laboratory examples also show why “shrink ray” is only part of the story. The method can expand a template as well as reduce it. There is no general reason to assume that the shortest candidate will be the best one. A design objective might favour compactness, a particular interaction or a different balance of properties; those objectives need separate tests.[3][2]
The repository’s workflow reinforces that division of labour. A generator proposes sequences; computational filters narrow the pool; experiments determine whether a selected design does the intended job. Predicting a plausible structure and measuring a useful effect are complementary stages, not substitutes.[3]
For a reader assessing the medical implications, greater receptor affinity is not itself evidence of a safer or more effective treatment. A molecule’s behaviour in a living organism raises additional questions about dose, distribution and unwanted effects. The experiments described here support protein engineering, not a claim that a Raygun-designed medicine has helped patients.
The broader contribution is a new kind of editing freedom. Rather than treating a natural protein’s length as an immovable boundary, researchers can explore it as a design variable. The interesting achievement is not that every shortened protein works. It is that changing length can become a systematic search instead of a succession of isolated guesses.
Sources & further reading
- Like a molecular shrink ray Duke University School of Medicine · 29 Jul 2026 · Accessed 27 Oct 2026
- Miniaturizing and modifying natural proteins with Raygun: publication and abstract Scholars@Duke / Nature · Accessed 27 Oct 2026
- Raygun: Template-based protein design Rohit Singh Lab · Accessed 27 Oct 2026