Skip to main content

A package to retrieve data and models from Synthesize Bio's API

Project description

Logomark pysynthbio

pysynthbio is an Python package that provides a convenient interface to the Synthesize Bio API, allowing users to generate realistic gene expression data based on specified biological conditions. This package enables researchers to easily access AI-generated transcriptomic data for various modalities including bulk RNA-seq and single-cell RNA-seq.

If you'd prefer 1-click dataset generation and analysis, try our web platform.

Prerequisites

Create a Synthesize Bio account and generate an API Key.

Installation

pip install pysynthbio

Quickstart

import pysynthbio

# Set your API token (or use environment variable SYNTHESIZE_API_KEY)
pysynthbio.set_synthesize_token(use_keyring=True)

# Get an example query for the bulk RNA-seq baseline model
query = pysynthbio.get_example_query(model_id="gem-1-bulk")["example_query"]

# Generate synthetic expression data
result = pysynthbio.predict_query(query, model_id="gem-1-bulk")

# Access the results
metadata = result["metadata"]
expression = result["expression"]

Documentation

Get Started | Full Documentation

Questions? Suggestions? Support?

Email us at support@synthesize.bio. We'd love to hear from you!

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

pysynthbio-4.0.3.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

pysynthbio-4.0.3-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file pysynthbio-4.0.3.tar.gz.

File metadata

  • Download URL: pysynthbio-4.0.3.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysynthbio-4.0.3.tar.gz
Algorithm Hash digest
SHA256 38629dde65aafed77f7c7705d7122f54b7ee96795dff02d383deeb17192f56ac
MD5 59c8248e83f6d545c3b7615d3aff735a
BLAKE2b-256 e53c8689492c1cfe1c55dcae4b1edcff17bdbab417183e1f29f107b86779b0e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysynthbio-4.0.3.tar.gz:

Publisher: new-release.yml on synthesizebio/pysynthbio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pysynthbio-4.0.3-py3-none-any.whl.

File metadata

  • Download URL: pysynthbio-4.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysynthbio-4.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2bd71708e1586d326f4b278076325c298b5e2cf0ba76f486659faaaa999069cb
MD5 b65c6e620f7f0ce60acc8b342b4360d8
BLAKE2b-256 a70a781ec9eaeaa69e176739897a705f722759c0b9300b1fc7f1c6c6c76d9f03

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysynthbio-4.0.3-py3-none-any.whl:

Publisher: new-release.yml on synthesizebio/pysynthbio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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