Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.synthesize.bio/llms.txt

Use this file to discover all available pages before exploring further.

pysynthbio is a Python package that provides a convenient interface to the Synthesize Bio API. It lets you generate realistic gene expression data for specified biological conditions, work with reference samples, and predict metadata from observed expression, all from Python. If you’d prefer 1-click dataset generation and analysis, try the web platform.

Installation

Install from PyPI, source, or a GitHub release.

Getting started

Authenticate, list models, and make your first prediction.

Baseline models

Generate synthetic expression from metadata alone.

Reference conditioning

Anchor generation to a real reference sample.

Metadata prediction

Infer biological metadata from observed expression.

GitHub

Source code, issues, and releases.

Quickstart

import pysynthbio

pysynthbio.set_synthesize_token(use_keyring=True)

query = pysynthbio.get_example_query(model_id="gem-1-bulk")["example_query"]
result = pysynthbio.predict_query(query, model_id="gem-1-bulk")

metadata = result["metadata"]
expression = result["expression"]

Support

Email support@synthesize.bio or open an issue on GitHub.