> ## Documentation Index
> Fetch the complete documentation index at: https://proto.evodesign.org/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# SynBioHub

> The `synbiohub-fetch` tool retrieves one design from a caller-selected SynBioHub registry and returns it as typed parts and features, with the source SBOL kept verbatim. It maintains no local parts catalog.

![SynBioHub](https://proto-bio.github.io/proto-assets/images/tool/synbiohub/hero.png)[![](https://avatars.githubusercontent.com/u/25823611?s=200\&v=4) SynBioHub](https://proto.evodesign.org/docs/tools/organizations/synbiohub.md)

> [!NOTE]
>
> **License:** SynBioHub retrieves data from the source registry and each record's contributors, distributed under each record's source license; CC BY 4.0 or CC BY-SA 4.0 for most iGEM parts. Attribution to the source registry and each record's contributors is required when the data is redistributed. The client wrapper code is MIT-licensed. Please refer to [the data terms](https://registry.igem.org/) for full terms.

Proto is not affiliated with SynBioHub. This toolkit is open source and builds on the implementation produced by this organization. Product names, logos, and trademarks are the property of their respective owners.

***

&#x20;GitHub GitHub  Website Website  Publication Publication  Cite Cite  Tool Source Tool Source  Open as Notebook Open as Notebook  Run Locally Run Locally

![SynBioHub/synbiohub](https://opengraph.githubassets.com/1/SynBioHub/synbiohub)

&#x20;SynBioHub/synbiohub

&#x20;View repo

[Open](https://github.com/SynBioHub/synbiohub)

&#x20;synbiohub.org

&#x20;Visit website

[Open](https://synbiohub.org/)

SynBioHub: a standards-enabled design repository for synthetic biologyJames Alastair McLaughlin, Chris J Myers, ... Anil WipatACS Synthetic Biology (2018)

&#x20;Read paper

[Open](https://doi.org/10.1021/acssynbio.7b00403)

@articlemclaughlin2018synbiohub\@articlemante2020synbiohub\@articlezhang2019sbolexplorer

```bibtex theme={null}
@article{mclaughlin2018synbiohub,
  title={SynBioHub: a standards-enabled design repository for synthetic biology},
  author={McLaughlin, James Alastair and Myers, Chris J and Zundel, Zach and Mısırlı, Göksel and Zhang, Michael and Ofiteru, Irina Dana and Goñi-Moreno, Angel and Wipat, Anil},
  journal={ACS Synthetic Biology},
  volume={7},
  number={2},
  pages={682--688},
  year={2018},
  doi={10.1021/acssynbio.7b00403}
}

@article{mante2020synbiohub,
  title={Extending SynBioHub's Functionality with Plugins},
  author={Mante, Jeanet and Zundel, Zach and Myers, Chris J},
  journal={ACS Synthetic Biology},
  volume={9},
  number={5},
  pages={1216--1220},
  year={2020},
  doi={10.1021/acssynbio.0c00056}
}

@article{zhang2019sbolexplorer,
  title={SBOLExplorer: Data Infrastructure and Data Mining for Genetic Design Repositories},
  author={Zhang, Michael and Zundel, Zach and Myers, Chris J},
  journal={ACS Synthetic Biology},
  volume={8},
  number={10},
  pages={2287--2294},
  year={2019},
  doi={10.1021/acssynbio.9b00089}
}
```

&#x20;Copy citation

![Proto](https://mintcdn.com/bio-pro/cMLt8hAqaP9M3LKy/assets/logo/logo-light.svg?fit=max\&auto=format\&n=cMLt8hAqaP9M3LKy\&q=85\&s=f5e5dfd1b8f9b9db3a0be0e2eb01f678)

evo-design/proto-tools

&#x20;View source

[Open](https://github.com/evo-design/proto-tools/tree/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/synbiohub)

Open Notebook

&#x20;Open notebook

[Open](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/synbiohub/examples/example.ipynb)

[![proto-tools on GitHub](https://opengraph.githubassets.com/1/evo-design/proto-tools)](https://github.com/evo-design/proto-tools)

Run locally with proto-tools

```bash theme={null}
pip install git+https://github.com/evo-design/proto-tools.git
```

Toolkit contributors[![](https://avatars.githubusercontent.com/u/21143637?v=4\&s=64)bviggiano](https://github.com/bviggiano)[![](https://avatars.githubusercontent.com/u/61667248?v=4\&s=64)adititm](https://github.com/adititm)

| Function | Description | |
| - | - | - |
| `run_synbiohub_fetch()` | Fetch a SynBioHub design as typed parts and features, exportable to SBOL, FASTA, and GenBank | [ Docs](#api-run-synbiohub-fetch) [ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/synbiohub/synbiohub_fetch.py#L307) |

## Background

[SynBioHub](https://synbiohub.org/) is a standards-enabled repository for synthetic biology designs. SBOL preserves components, nested subcomponents, sequence constraints, annotations, and provenance, allowing a circuit or construct to remain a composition of segments rather than only a flattened nucleotide string. The tool uses the documented SBOL download endpoint and logs in with a SynBioHub account.

## Tools

### SynBioHub Fetch (`synbiohub-fetch`)

Confirms the object is a ComponentDefinition from its non-recursive SBOL, then downloads its recursive SBOL and parses it. `design` holds the requested part: its sequence, Sequence Ontology roles, and features, each with 1-indexed inclusive locations and a `subpart_uri` when it places a subpart. `subparts` holds every other part in the document. The output exports to JSON, the verbatim SBOL, FASTA, or GenBank. `identifier` takes a SynBioHub link, with or without its version, an iGEM Registry part link, or an iGEM part name such as `BBa_I13504`. A SynBioHub link must share an origin with `registry_url`, preventing an identifier from silently redirecting retrieval to another host.

#### API Reference

[ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/synbiohub/synbiohub_fetch.py#L86)

> [accordion] Input: SynBioHubFetchInput
>
> **identifier** `string` *required*
>
> A SynBioHub link to a ComponentDefinition, with or without its version, an iGEM Registry part link, or an iGEM part name such as `BBa_I13504`.

[ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/synbiohub/synbiohub_fetch.py#L115)

> [accordion] Config: SynBioHubFetchConfig
>
> **registry\_url** `string` (default: [https://api.synbiohub.org](https://api.synbiohub.org))
>
> Registry origin allowed for object retrieval.
>
> **synbiohub\_email** `string`
>
> SynBioHub account email or username.
>
> **synbiohub\_password** `string`
>
> SynBioHub account password.
>
> **verbose** `integer` (default: 0)
>
> Verbosity level (0=quiet, 1=info, 2=debug, 3=raw subprocess stderr). `True` is coerced to `1` and `False` to `0`.
>
> **device** `string` (default: cpu)
>
> Device to run the tool on.
>
> **timeout** `integer` (default: 3600)
>
> Maximum execution time in seconds, not counting time spent while a weights download keeps progressing. `None` waits indefinitely.
>
> **seed** `integer`
>
> Random seed. When set, tools run reproducibly up to small GPU float noise (see `BaseToolOutput.approx_equal`), and the seed participates in cache keys. When None, cacheable seed-sensitive tools skip cache until seeded.

[ Source](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/synbiohub/synbiohub_fetch.py#L239)

> [accordion] Output: SynBioHubFetchOutput
>
> **identifier** `string` *required*
>
> Requested identifier, as given.
>
> **registry\_url** `string` *required*
>
> Registry origin used for retrieval.
>
> **source\_url** `string` *required*
>
> SBOL download endpoint.
>
> **design** `SynBioHubPart` *required*
>
> The requested design.
>
> **SynBioHubPart**
>
> **uri** `string` *required*
>
> SBOL identity of the part.
>
> **display\_id** `string` *required*
>
> SBOL displayId.
>
> **name** `string`
>
> Part title.
>
> **description** `string`
>
> Part description.
>
> **molecule** `enum` *required*
>
> Molecule type of the part.
>
> **topology** `string`
>
> Linear or circular, when the registry records it.
>
> **roles** `List[string]`
>
> Sequence Ontology roles of the part.
>
> **sequence** `string`
>
> Part sequence, uppercase, if the registry records one.
>
> **features** `List[SynBioHubFeature]`
>
> Features annotated on the sequence; ranged annotations only.
>
> **modified** `string`
>
> Last modification time in UTC, else creation time.
>
> **subparts** `List[SynBioHubPart]`
>
> Every other part in the SBOL document, at any depth.
>
> **SynBioHubPart**
>
> **uri** `string` *required*
>
> SBOL identity of the part.
>
> **display\_id** `string` *required*
>
> SBOL displayId.
>
> **name** `string`
>
> Part title.
>
> **description** `string`
>
> Part description.
>
> **molecule** `enum` *required*
>
> Molecule type of the part.
>
> **topology** `string`
>
> Linear or circular, when the registry records it.
>
> **roles** `List[string]`
>
> Sequence Ontology roles of the part.
>
> **sequence** `string`
>
> Part sequence, uppercase, if the registry records one.
>
> **features** `List[SynBioHubFeature]`
>
> Features annotated on the sequence; ranged annotations only.
>
> **modified** `string`
>
> Last modification time in UTC, else creation time.
>
> **sbol** `string` *required*
>
> The downloaded SBOL document, verbatim.
>
> **tool\_version** `string`
>
> Version of the toolkit that produced the output, from its `versions.yaml`. Suffixed `+dirty` when the source no longer matches that version. See `notes/versioning.md`.

#### Applications

Read a construct's composition from `design.features` and `subparts` to rebuild it as multi-segment designs, and export FASTA or GenBank for downstream scoring, synthesis checks, or annotation inspection.

#### Usage Tips

* **Set your SynBioHub login.** The public instance requires a login for every download, including public records. Create a free account at [synbiohub.org](https://synbiohub.org/register), then set `SYNBIOHUB_EMAIL` (your email or username) and `SYNBIOHUB_PASSWORD`, or pass `synbiohub_email` and `synbiohub_password` in the config. Use an account on the same registry as `registry_url`. Each fetch logs in, downloads, and logs out, so there is no token to renew.
* **Treat SBOL as the source of truth.** The typed model covers parts, roles, sequences, and ranged features. Provenance, interactions, and registry-specific annotations stay in the verbatim `sbol` field and its export.
* **Exports are views of the design.** FASTA and GenBank cover the requested design only. GenBank feature keys come from Sequence Ontology roles, and unmapped roles become `misc_feature`. The GenBank header carries the design's topology when the SBOL records one, and its last modification date.
* **Credentials remain private.** `SYNBIOHUB_EMAIL` and `SYNBIOHUB_PASSWORD` are excluded from cache keys and outputs.
* **Paste the link you have.** With the default registry, links copied from `synbiohub.org` download from its API host. iGEM part names and links from `parts.igem.org` or `registry.igem.org` resolve to the registry's iGEM collection. A link or name without a version resolves to the object's only public version. An object with several versions, or a private one, needs a versioned link.
* **Select the registry explicitly.** Any other SynBioHub link must have the same origin as `registry_url`. Parts outside the iGEM collection need a full link.
* **Requires network access.** No registry snapshot or curated database is stored locally.
* **Runs on CPU.** Runtime is dominated by the recursive SBOL download.

## Toolkit Notes

> [!TIP]
>
> **Example notebook:** See the [full working example](https://github.com/evo-design/proto-tools/blob/0a918bae9551824984526ee13f2cff66e6fc4713/proto_tools/tools/database_retrieval/synbiohub/examples/example.ipynb) for a copy-paste-ready walkthrough.

## Infrastructure Guides

The following guides cover how to run tools efficiently and at scale.

> [card] [Tool Persistence](https://proto.evodesign.org/docs/tools/guides/tool-persistence.md)
>
> Keep a tool's model warm across calls instead of reloading it every invocation.

> [card] [Device Management](https://proto.evodesign.org/docs/tools/guides/device-management.md)
>
> How GPUs are allocated to tools and how to target specific devices.

> [card] [Parallel Execution](https://proto.evodesign.org/docs/tools/guides/parallel-execution.md)
>
> Fan a batch of inputs out across multiple GPUs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.