In a lab at Duke University in Durham, North Carolina, a team of scientists has built an AI tool that can shrink, stretch, or reshape proteins the way a tailor might alter a piece of clothing — without destroying what makes the protein useful. The tool, called Raygun, opens up new possibilities for designing medicines that work better and fit more easily into the body.

Proteins are the workhorses of living cells. They help wounds heal, carry signals between cells, and speed up chemical reactions that keep us alive. Every protein is built from a chain of smaller pieces called amino acids, and the way those pieces fold together gives each protein its unique shape and job. Scientists have long wanted to modify proteins for medical use, but making changes without breaking the protein's function has been incredibly difficult.

"There is a language that governs how a protein's amino acid sequence gives rise to its shape and function, but scientists don't fully understand that language," said Rohit Singh, a researcher at Duke University School of Medicine who co-led the study.

Raygun works by taking proteins of any size and converting them into a standardized mathematical format that AI can understand and manipulate. Think of it like converting different sized books into the same ebook format, so you can easily add or remove chapters while keeping the story intact. The tool uses two simple controls: one that decides how much the protein changes, and another that determines whether the protein gets shorter or longer.

The researchers tested their tool on several different proteins. They modified fluorescent proteins used to make cells glow in laboratory imaging. They changed enzymes that carry out important jobs inside living cells. And they redesigned variants of epidermal growth factor, a protein involved in wound healing that also plays a role in certain cancers.

In every case, the modified proteins kept their basic structure and continued doing their jobs. The AI-generated proteins maintained their shape and preserved the specific sites that allow them to interact with other molecules.

The findings, published in the journal Nature, could eventually help researchers design more efficient tools for gene therapy, biotechnology, and drug development. Engineers might use Raygun to create proteins that are smaller and more stable, making them easier to deliver into the body as medicines.

Singh and his team believe the approach could also teach scientists more about how proteins evolve in nature. By testing how much proteins can change while still working, researchers can learn which parts are essential and which parts are flexible — insights that could guide the design of entirely new proteins from scratch.