2026-11-26 15:40 UTC

Protuna releases an open-source framework for iterative protein engineering

state: seedheat: mediumuncertainty: mediumrelevance: highai-for-biology protein-design open-source-toolsKumar Shreshtha

What is this?

Protuna is an MIT-licensed, Python 3.12+ framework by Kumar Shreshtha for iterative, AI-guided protein engineering. Its GitHub repository documents an initial public v0.1.0 release and a pip-installable package. A pipeline defines allowed sequence variants, generates candidates, scores them with predictors, applies constraints, and selects a batch using an acquisition strategy. The project also describes reward-guided protein-language-model generation, distributed inference, and optional recycling of promising candidates into later rounds. The supplied evidence is the project’s own documentation and a Hacker News post linking to it; it does not independently establish experimental results or adoption.

Why it matters

Protuna packages the propose–score–select loop used in protein engineering as a configurable, open-source toolkit. That could make it easier for researchers to assemble and adapt computational design campaigns, including screening larger candidate sets, but the software does not itself demonstrate that its predictions produce better proteins in the lab. Its significance is practical access and workflow infrastructure, not a validated biological breakthrough.

Current assessment

Newly documented: Protuna v0.1.0 is presented by its author as an available framework for optimization campaigns, with installation via pip and an MIT license. The pipeline separates design-space definition, candidate sampling, prediction and constraint handling, and experimental batch selection; acquisition methods can account for predicted fitness, uncertainty, or diversity. The README’s example uses an MSA-based zero-shot score and selects up to 20 candidates from generated variants. It also describes Ray-based distributed screening, cloud artifact storage, reward-guided generation, and optional iterative recycling. These are documented capabilities, not evidence of improved wet-lab outcomes. The project cautions that using a single starting datapoint depends on alignment between goals, proxy scores, and sampler likelihoods. Training tools and recipes are marked as coming soon, not currently available. The available sources do not establish independent benchmarking, adoption, or the size of any performance gain; treat the release as an enabling tool whose impact will depend on model quality, experimental validation, and researchers’ ability to run assays.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 605h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-01 11:25 (minted)⭐ origin echo-reconstructedThe GitHub repository is the origin artifact: it describes Protuna as “an optimization framework for iterative protein engineering campaigns
Kumar Shreshtha on github (echo) · attributed from hn.story.50324337 · published time unknown
—
11-01 10:39first on hacker news · published · lag ?Protuna: Optuna but for Proteins
kshreshtha
—
11-01 10:39amplified on hacker news 👑hn.story.50324337
kshreshtha
peak 1 · 0 comments · 103% of case engagement
11-01 11:22our radar first saw it · lag ?discovery anchor: hn.story.50324337—
pace: p11 vs 1845 stories at the 336h mark (now 605h old) — behind adobe-max-ai-agents-creative-tools-mcp (0.5x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnProtuna: Optuna but for Proteins
Retrieved article excerpt

Open article · Retrieved 2026-11-01T11:23:46.965717+00:00

[Protuna](https://raw.githubusercontent.com/kumarshreshtha/protuna/main/docs/_static/protuna-wordmark-readme-dark.svg#gh-dark-mode-only)
[Protuna](https://raw.githubusercontent.com/kumarshreshtha/protuna/main/docs/_static/protuna-wordmark-readme-light.svg#gh-light-mode-only)

[Tests](https://github.com/kumarshreshtha/protuna/actions/workflows/ci.yml)
[Version](https://camo.githubusercontent.com/dd9921c11aabc3990e22c30f0cc700899ae77036e906bd892972f6d09fbeaab5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6b756d61727368726573687468612f70726f74756e61)
[Language](https://camo.githubusercontent.com/a7cbd1c761b91093cf445d558d01024ca08f75e65fc38ddcca25e8913fa54a9f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f707974686f6e2d332e31322d79656c6c6f773f6c6f676f3d707974686f6e266c6f676f436f6c6f723d7768697465)
[Docs](https://protuna.readthedocs.io/en/latest/)
[License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)

Protuna is an optimization framework for iterative protein engineering campaigns. Starting from historical mutagenesis data or a single hit[1](https://github.com/kumarshreshtha/protuna#user-content-fn-1-60b0acc5927aaaf4bf10ce825e4d1177), it proposes the batch of variants to test next.

## Features

- **Guided generation:** Steer protein language models towards your design objectives with reward-guided generation – Feynman–Kac steering, classifier guidance, and beam search.
- **Scalable screening:** Ray-based distributed streaming APIs for large-scale screening on local accelerators or clusters.
- **Modular campaigns:** Combine interchangeable samplers, predictors, constraints, and acquisition strategies.
- **Multiple design goals:** Optimize for multiple properties with a primary objective and inequality constraints on the others.

## Getting Started

### Installation

Protuna requires Python 3.12 or higher.

```
pip install protuna
```

### Building with AI Agents

The `protuna-skills` plugin gives AI coding agents the guidance and examples needed
to work with Protuna. Use it to build, and run optimization pipelines,
configure distributed inference, or extend the framework with custom components.

See the [plugin guide](https://github.com/kumarshreshtha/protuna/blob/main/protuna-skills/README.md) for installation instructions for
coding and science agents.

### Quickstart

The following code builds and runs a simple `Pipeline`.

It starts by defining which mutations are allowed and how to sample narrower search
spaces. The pipeline then samples random protein sequences in those subspaces,
uses a multiple sequence alignment (MSA) to score them based on amino acid
frequencies at the mutated sites, and selects up to 20 of the highest-scoring
sequences.

```
from protuna import data
from protuna import optim
from protuna.optim import acquisitions
from protuna.optim import predictors
from protuna.optim import rules
from protuna.optim import samplers
from protuna.optim import spaces

dataset = data.get_dataset("gb1", source=data.DatasetSource.FLIP)
tokens = data.tokenizer.encode(dataset.target_sequence)
msa = data.TokenizedMSA.from_file(
    dataset.get_msa_path(data.MSAProtocol.ColabFold), format="a3m"
)
design_space = spaces.DesignSpace.from_rules(
    rules=[
        # Positions are illustrative and use zero-based indexing.
        rules.AllowOnly(positions=list(range(100, 125))),
        rules.DenyResidues(amino_acids=["C"]),
        rules.FixSites(positions=[105, 120]),
        # Protect sites where the query residue is >= 95% conserved.
        rules.MSAConserved(tokenized_msa=msa, threshold=0.95),
    ],
    init_sequences=[tokens],
    # Explore up to 4 subspaces, each with at most 3 mutable sites.
    space_sampler=spaces.RandomMaskSampler(max_mutations=3, n_subspaces=4),
)
pipeline = optim.Pipeline(
    design_space=design_space,
    sampler=samplers.RandomSampler(max_samples=100),  # Propose up to 4x100 variants
    objective=predictors.PSSMZeroshotPredictor(tokens, msa, laplace_smoothing=True),
    acquisition=acquisitions.Greedy(budget=20),
)
output = pipeline.run()
# Up to 20 sequences
candidates = data.tokenizer.decode(list(output.selection.token_ids))
```

See the [pipeline documentation](https://protuna.readthedocs.io/en/latest/concepts/pipeline.html) for configuration options or read the [concepts overview](https://protuna.readthedocs.io/en/latest/concepts/overview.html) to understand Protuna's workflow and core primitives.

### Storage

Protuna stores cached downloads and default pipeline artifacts under `$PROTUNA_HOME/protuna`. If `PROTUNA_HOME` is unset, it uses `$XDG_CACHE_HOME/protuna`, falling back to `$HOME/.cache/protuna`.

You can configure pipeline runs to store artifacts in another folder or directly in cloud storage (AWS, Azure, or GCP) to support large exploration campaigns.

## Concepts

[Protuna optimization pipeline](https://raw.githubusercontent.com/kumarshreshtha/protuna/main/docs/_static/protuna_pipeline_dark.png#gh-dark-mode-only)
[Protuna optimization pipeline](https://raw.githubusercontent.com/kumarshreshtha/protuna/main/docs/_static/protuna_pipeline_light.png#gh-light-mode-only)

Protuna separates candidate generation from experimental batch selection. A `Pipeline` combines four steps:

1. **Defining the search region.** A `DesignSpace` holds starting sequences and their allowed substitutions and can sample smaller search spaces for independent exploration.
2. **Generating proposals.** A `Sampler` proposes sequences within each search space.
3. **Evaluating proposals.** A `Predictor` estimates the objective property. Hard constraints reject candidates; soft constraints provide feasibility probabilities.
4. **Selecting candidates.** An `Acquisition` selects candidates within your budget, using criteria such as predicted fitness, uncertainty, or diversity.

Selection is limited to the candidates proposed by the sampler. Protein language models provide a useful prior over plausible sequences, but their likelihoods need not align with a campaign’s objective. Protuna supports reward-guided generation to steer exploration towards desired properties, using inference-time steering, externally aligned generators, or both.

Optional recycling uses promising candidates as parents for the next generation cycle, allowing subsequent cycles to build on promising mutations.

Read the [optimization overview](https://protuna.readthedocs.io/en/latest/concepts/overview.html) for the broader campaign workflow. To extend Protuna, see the guides for custom [model adapters](https://protuna.readthedocs.io/en/latest/guides/writing_adapters.html), [samplers](https://protuna.readthedocs.io/en/latest/guides/writing_samplers.html), and [acquisitions](https://protuna.readthedocs.io/en/latest/guides/writing_acquisitions.html).

## Modules

| Module | Description |
| --- | --- |
| [protuna.optim](https://protuna.readthedocs.io/en/latest/api/optim/index.html) | The primary optimization framework. It contains all the primitives needed to set up and run your protein optimization task. |
| [protuna.inference](https://protuna.readthedocs.io/en/latest/api/inference/index.html) | Distributed inference interface and a few illustrative model adapters. |
| [protuna.data](https://protuna.readthedocs.io/en/latest/api/data/index.html) | Common preprocessed public benchmark datasets, MSA handling, and tokenization modules. |
| [protuna.score](https://protuna.readthedocs.io/en/latest/api/score/index.html) | Functional library of protein scoring methods such as zero-shot variant effect prediction (VEP) and contact prediction using a categorical Jacobian. |
| protuna.train (coming soon) | Future releases will include trainers and recipes for few-shot property prediction models, fine-tuning, and preference alignment of generators. |

## Upcoming Releases

See the [roadmap for upcoming releases](https://protuna.readthedocs.io/en/latest/upcoming.html).

## Contributing

See [CONTRIBUTING.md](https://github.com/kumarshreshtha/protuna/blob/main/CONTRIBUTING.md).

## Citation

If you use Protuna in your research, please cite this software:

```
@software{protuna2026,
    title = {{Protuna: An optimization framework for AI-guided protein engineering}},
    author = {Shreshtha, Kumar},
    url = {https://github.com/kumarshreshtha/protuna},
    year = {2026},
    version = {0.1.0}
}
```

## Footnotes

1. Successfully generating candidates from a single data point depends on how well your goals, the zero-shot proxies you use for scoring, and the sampler's likelihoods align. [↩](https://github.com/kumarshreshtha/protuna#user-content-fnref-1-60b0acc5927aaaf4bf10ce825e4d1177)
kshreshtha10
🟧 echo.github ⭐The GitHub repository is the origin artifact: it describes Protuna as “an optimization framework for iterative protein engineering campaignsKumar Shreshtha——

Interpretation history

Decision trace