Skip to main content

Nucleobench optimizers and tasks.

Project description

NucleoBench

This is the initial repo for an upcoming paper, NucleoBench: A Large-Scale Benchmark of Neural Nucleic Acid Design Algorithms.

This repo is covered by the Apache-2.0 license.

This repo is intended to be used in a few ways:

  1. Reproducing the results from our paper.
  2. Running the NucleoBench sequence designers on custom problems.
  3. Using our new designer, AdaBeam, on a custom problem.

To do these, you can clone this repo, use the Docker image (for the benchmark), or use the PyPi package for our designers.

Results

Summary of results.

Installation from PyPi

pip install nucleobench  # optimizers and tasks
pip install nucleopt  # smaller, faster install for just optimizers

Then you can use it in python:

from nucleobench import optimizations
opt = optimizations.get_optimization('beam_search_unordered')  # Any optimizer name.

Installation & testing from GitHub

# Clone the repo.
git clone https://github.com/move37-labs/nucleobench.git
cd nucleobench

# Create and activate the conda environment.
conda env create -f environment.yml
conda activate nucleobench

# Run all the unittests.
pytest nucleobench/

You can also run the integration tests, which require an internet connection:

pytest docker_entrypoint_test.py

Running NucleoBench from PyPi or Docker

See the recipes/colab folder for examples of how to run the designers with PyPi. See the recipes/docker folder for examples of how to run the designers with Docker. See the recipes/python folder for examples of how to run the designers with the cloned github repo.

Building a Docker image

To help deploy NucleoBench to the cloud, we've created a docker container. To build it yourself, see the top of Dockerfile for instructions. One way of creating a docker file is:

docker build -t nucleobench -f Dockerfile .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nucleobench-1.0.0.tar.gz (113.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nucleobench-1.0.0-py3-none-any.whl (142.9 kB view details)

Uploaded Python 3

File details

Details for the file nucleobench-1.0.0.tar.gz.

File metadata

  • Download URL: nucleobench-1.0.0.tar.gz
  • Upload date:
  • Size: 113.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for nucleobench-1.0.0.tar.gz
Algorithm Hash digest
SHA256 de04eb7b1746f41b06433d3621620835ca34b401bed0c11d66b3d5526c090812
MD5 50d389a7ef700b95a190a771b0da3056
BLAKE2b-256 999dc2db1fa5de515adca85bbdd81fe40ad112fc66ad29d2118b72e2e9914eb2

See more details on using hashes here.

File details

Details for the file nucleobench-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nucleobench-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 142.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for nucleobench-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22112f0e14cfa21884173999150562d3693f355830c3ad6f0408c03856e6dc84
MD5 a50d5ad22320bd19ea17ee304231f01a
BLAKE2b-256 46a75f402e89f0245b8ab425eb06de040dcfcef0c6a693a2b5a5c54766eba1a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page