[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111809":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":14,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":16,"rankGlobal":10,"rankLanguage":10,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":18,"hasPages":18,"topics":20,"createdAt":10,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":34,"discoverSource":35},111809,"protuna","kumarshreshtha\u002Fprotuna","kumarshreshtha","Optimization framework for AI-guided protein engineering","https:\u002F\u002Fprotuna.org",null,"Python",57,2,1,0,41.53,"MIT License",false,"main",[21,22,23,24,25,26,27,28,29],"active-learning","bayesian-optimization","bioengineering","black-box-optimization","distributed","experimental-design","lead-optimization","machine-learning","protein-engineering","2026-11-05 21:00:49","2026-11-13 08:29:21","\u003Cp align=\"center\">\n    \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fkumarshreshtha\u002Fprotuna\u002Fmain\u002Fdocs\u002F_static\u002Fprotuna-wordmark-readme-dark.svg#gh-dark-mode-only\" alt=\"Protuna\" width=\"560\">\n    \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fkumarshreshtha\u002Fprotuna\u002Fmain\u002Fdocs\u002F_static\u002Fprotuna-wordmark-readme-light.svg#gh-light-mode-only\" alt=\"Protuna\" width=\"560\">\n\u003C\u002Fp>\n\u003Cp align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fkumarshreshtha\u002Fprotuna\u002Factions\u002Fworkflows\u002Fci.yml\">\u003Cimg alt=\"Tests\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002Fkumarshreshtha\u002Fprotuna\u002Fci.yml?branch=main&amp;label=Tests\">\u003C\u002Fa>\n    \u003Cimg alt=\"Version\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Fkumarshreshtha\u002Fprotuna\">\n    \u003Cimg alt=\"Language\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-3.12-yellow?logo=python&amp;logoColor=white\">\n    \u003Ca href=\"https:\u002F\u002Fprotuna.readthedocs.io\u002Fen\u002Flatest\u002F\">\u003Cimg alt=\"Docs\" src=\"https:\u002F\u002Fimg.shields.io\u002Freadthedocs\u002Fprotuna\u002Flatest?label=Docs\">\u003C\u002Fa>\n    \u003Cimg alt=\"License\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-green\">\n\u003C\u002Fp>\n\nProtuna is an optimization framework for iterative protein engineering campaigns. Starting from historical mutagenesis data or a single hit[^1], it proposes the batch of variants to test next.\n\n## Features\n\n- **Guided generation:** Steer protein language models towards your design objectives with reward-guided generation – Feynman–Kac steering, classifier guidance, and beam search.\n- **Scalable screening:** Ray-based distributed streaming APIs for large-scale screening on local accelerators or clusters.\n- **Modular campaigns:** Combine interchangeable samplers, predictors, constraints, and acquisition strategies.\n- **Multiple design goals:** Optimize for multiple properties with a primary objective and inequality constraints on the others.\n\n## Getting Started\n\n### Installation\n\n\u003C!-- installation-start -->\nProtuna requires Python 3.12 or higher.\n\n```sh\npip install protuna\n```\n\u003C!-- installation-end -->\n\n### Building with AI Agents\n\nThe `protuna-skills` plugin gives AI coding agents the guidance and examples needed\nto work with Protuna. Use it to build, and run optimization pipelines,\nconfigure distributed inference, or extend the framework with custom components.\n\nSee the [plugin guide](https:\u002F\u002Fgithub.com\u002Fkumarshreshtha\u002Fprotuna\u002Fblob\u002Fmain\u002Fprotuna-skills\u002FREADME.md) for installation instructions for\ncoding and science agents.\n\n### Quickstart\n\n\u003C!-- quickstart-code-start -->\nThe following code builds and runs a simple `Pipeline`.\n\nIt starts by defining which mutations are allowed and how to sample narrower search\nspaces. The pipeline then samples random protein sequences in those subspaces,\nuses a multiple sequence alignment (MSA) to score them based on amino acid\nfrequencies at the mutated sites, and selects up to 20 of the highest-scoring\nsequences.\n\n```py\nfrom protuna import data\nfrom protuna import optim\nfrom protuna.optim import acquisitions\nfrom protuna.optim import predictors\nfrom protuna.optim import rules\nfrom protuna.optim import samplers\nfrom protuna.optim import spaces\n\ndataset = data.get_dataset(\"gb1\", source=data.DatasetSource.FLIP)\ntokens = data.tokenizer.encode(dataset.target_sequence)\nmsa = data.TokenizedMSA.from_file(\n    dataset.get_msa_path(data.MSAProtocol.ColabFold), format=\"a3m\"\n)\ndesign_space = spaces.DesignSpace.from_rules(\n    rules=[\n        # Positions are illustrative and use zero-based indexing.\n        rules.AllowOnly(positions=list(range(100, 125))),\n        rules.DenyResidues(amino_acids=[\"C\"]),\n        rules.FixSites(positions=[105, 120]),\n        # Protect sites where the query residue is >= 95% conserved.\n        rules.MSAConserved(tokenized_msa=msa, threshold=0.95),\n    ],\n    init_sequences=[tokens],\n    # Explore up to 4 subspaces, each with at most 3 mutable sites.\n    space_sampler=spaces.RandomMaskSampler(max_mutations=3, n_subspaces=4),\n)\npipeline = optim.Pipeline(\n    design_space=design_space,\n    sampler=samplers.RandomSampler(max_samples=100),  # Propose up to 4x100 variants\n    objective=predictors.PSSMZeroshotPredictor(tokens, msa, laplace_smoothing=True),\n    acquisition=acquisitions.Greedy(budget=20),\n)\noutput = pipeline.run()\n# Up to 20 sequences\ncandidates = data.tokenizer.decode(list(output.selection.token_ids))\n```\n\u003C!-- quickstart-code-end -->\n\nSee the [pipeline documentation](https:\u002F\u002Fprotuna.readthedocs.io\u002Fen\u002Flatest\u002Fconcepts\u002Fpipeline.html) for configuration options or read the [concepts overview](https:\u002F\u002Fprotuna.readthedocs.io\u002Fen\u002Flatest\u002Fconcepts\u002Foverview.html) to understand Protuna's workflow and core primitives.\n\n### Storage\n\n\u003C!-- storage-start -->\nProtuna stores cached downloads and default pipeline artifacts under `$PROTUNA_HOME\u002Fprotuna`. If `PROTUNA_HOME` is unset, it uses `$XDG_CACHE_HOME\u002Fprotuna`, falling back to `$HOME\u002F.cache\u002Fprotuna`.\n\nYou can configure pipeline runs to store artifacts in another folder or directly in cloud storage (AWS, Azure, or GCP) to support large exploration campaigns.\n\u003C!-- storage-end -->\n\n## Concepts\n\n\u003Cp align=\"center\">\n    \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fkumarshreshtha\u002Fprotuna\u002Fmain\u002Fdocs\u002F_static\u002Fprotuna_pipeline_dark.png#gh-dark-mode-only\" alt=\"Protuna optimization pipeline\" width=\"600\">\n    \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fkumarshreshtha\u002Fprotuna\u002Fmain\u002Fdocs\u002F_static\u002Fprotuna_pipeline_light.png#gh-light-mode-only\" alt=\"Protuna optimization pipeline\" width=\"600\">\n\u003C\u002Fp>\n\nProtuna separates candidate generation from experimental batch selection. A `Pipeline` combines four steps:\n\n1. **Defining the search region.** A `DesignSpace` holds starting sequences and their allowed substitutions and can sample smaller search spaces for independent exploration.\n2. **Generating proposals.** A `Sampler` proposes sequences within each search space.\n3. **Evaluating proposals.** A `Predictor` estimates the objective property. Hard constraints reject candidates; soft constraints provide feasibility probabilities.\n4. **Selecting candidates.** An `Acquisition` selects candidates within your budget, using criteria such as predicted fitness, uncertainty, or diversity.\n\nSelection 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.\n\nOptional recycling uses promising candidates as parents for the next generation cycle, allowing subsequent cycles to build on promising mutations.\n\nRead the [optimization overview](https:\u002F\u002Fprotuna.readthedocs.io\u002Fen\u002Flatest\u002Fconcepts\u002Foverview.html) for the broader campaign workflow. To extend Protuna, see the guides for custom [model adapters](https:\u002F\u002Fprotuna.readthedocs.io\u002Fen\u002Flatest\u002Fguides\u002Fwriting_adapters.html), [samplers](https:\u002F\u002Fprotuna.readthedocs.io\u002Fen\u002Flatest\u002Fguides\u002Fwriting_samplers.html), and [acquisitions](https:\u002F\u002Fprotuna.readthedocs.io\u002Fen\u002Flatest\u002Fguides\u002Fwriting_acquisitions.html).\n\n## Modules\n\n\u003C!-- modules-start -->\n| Module | Description |\n| --- | --- |\n| [protuna.optim](https:\u002F\u002Fprotuna.readthedocs.io\u002Fen\u002Flatest\u002Fapi\u002Foptim\u002Findex.html) | The primary optimization framework. It contains all the primitives needed to set up and run your protein optimization task. |\n| [protuna.inference](https:\u002F\u002Fprotuna.readthedocs.io\u002Fen\u002Flatest\u002Fapi\u002Finference\u002Findex.html) | Distributed inference interface and a few illustrative model adapters. |\n| [protuna.data](https:\u002F\u002Fprotuna.readthedocs.io\u002Fen\u002Flatest\u002Fapi\u002Fdata\u002Findex.html) | Common preprocessed public benchmark datasets, MSA handling, and tokenization modules. |\n| [protuna.score](https:\u002F\u002Fprotuna.readthedocs.io\u002Fen\u002Flatest\u002Fapi\u002Fscore\u002Findex.html) | Functional library of protein scoring methods such as zero-shot variant effect prediction (VEP) and contact prediction using a categorical Jacobian. |\n| protuna.train (coming soon) | Future releases will include trainers and recipes for few-shot property prediction models, fine-tuning, and preference alignment of generators. |\n\u003C!-- modules-end -->\n\n## Upcoming Releases\n\nSee the [roadmap for upcoming releases](https:\u002F\u002Fprotuna.readthedocs.io\u002Fen\u002Flatest\u002Fupcoming.html).\n\n## Contributing\n\nSee [CONTRIBUTING.md](https:\u002F\u002Fgithub.com\u002Fkumarshreshtha\u002Fprotuna\u002Fblob\u002Fmain\u002FCONTRIBUTING.md).\n\n## Citation\n\nIf you use Protuna in your research, please cite this software:\n\n```\n@software{protuna2026,\n    title = {{Protuna: An optimization framework for AI-guided protein engineering}},\n    author = {Shreshtha, Kumar},\n    url = {https:\u002F\u002Fgithub.com\u002Fkumarshreshtha\u002Fprotuna},\n    year = {2026},\n    version = {0.1.0}\n}\n```\n\n[^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.\n","Protuna 是一个面向蛋白质工程的迭代优化框架，用于在实验-计算闭环中智能推荐下一批待测试的蛋白突变体。它整合贝叶斯优化、主动学习与黑箱优化方法，支持基于蛋白语言模型的奖励引导生成（如分类器引导、Feynman–Kac steering）、多目标优化（主目标+不等式约束）、模块化采样器\u002F预测器\u002F约束组合，以及基于 Ray 的分布式高通量筛选。适用于从单点突变体或历史突变数据出发的先导化合物优化、功能蛋白定向进化及湿实验资源受限场景下的高效序列空间探索。","2026-11-24 04:41:51","CREATED_QUERY"]