Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Optipyzer logo

A fast and flexible codon optimization tool. Optipyzer is capable of codon-optimizing both DNA and peptide sequences for multiple species at once while giving prefernce to certain species. The optimizer is hosted as a publically available web server with both a web-interface and a python programming interface for one-off queries or more high-throughput frameworks. You can read more about the algorithm and the tool in our preprint.

Web Application

The web-interface can be found at The site is intended to be used for simple, one-off queries. It provides a sequence input box and a species selection tool to choose your species and designate weightings. You can search through our database and specify any species you want.

Python API

For convenience, we have also written a small python package for an easier to use interface in high-throughput workflows. The package is a basic wrapper around our server that exposes convenience functions to interface the optimization server and make calls for you.


pip install optipyzer

Quick Start

To get started, simply create an API instance, and start making requests:

import optipyzer

api = optipyzer.API()

dna_seq = "ATGGCCCTTTAA"

result = api.optimize(
    weights={"human": 2, "mouse": 1},


For more detailed usage instructions and information about the algorithm, refer to the documentation here

Local Optimization Server

Some users might be interested in optimizing sequences confidentially. That is, using a locally run server instead of making HTTP requests to the public API. This also increases speed. Because of this, a docker container was prepared to run a local instance of the server. The docker container will run the optimzation server off your local machine and you can now use this to optimize sequences instead of making calls to the public server.

(i.e. The server now runs on localhost:8000)

To Run Locally:

docker build -t optipyzer .
docker run -p 8000:8000 optipyzer

Using the local server

Simply specify you want to run the optimizer locally when initializing an Optipyzer object in your scripts and your local server will then be used:

import optipyzer

api = optipyzer.API(local=True) # <--- specify you are using a local server

dna_seq = "ATGGCCCTTTAA"

result = api.optimize(
    weights={"human": 2, "mouse": 1},



Issues, PR's, and contributions are always welcome. Please reach out (or open an issue) if you would like to contribute!