Skip to Content

openprotein.models

SDK release/v0.18.0

Use session.models to run a model. If you know which model you want, use a named accessor such as session.models.esm2. To browse available models, call session.models.list_models(). To look up a model by ID, call session.models.get_model(model_id).

With an authenticated session, submit an embedding job and wait for its result:

model = session.models.esm2
job = model.embed(["ACDEFGHIK"], reduction="MEAN")
embedding = job.wait(timeout=600)[0]
print(embedding.shape)  # (D,): one pooled NumPy vector

See Task results for result types and Jobs for reloading jobs and reading named outputs.

54source

Models

Each section lists the model's checkpoint IDs and Python accessors, with examples for its default checkpoint.

Trainable models

AccessorsInterface
GPGP
SVDSVD
UMAPUMAP

OpenProtein-developed conditional and multi-modal protein language model that embeds, scores, and generates sequences conditioned on an input protein family.

Understanding protein function with a multimodal retrieval-augmented foundation model · GitHub

The PoET2 class below is the interface for poet-2. It supports sequence tasks and fitting downstream models.

Model IDAccessorsInterface
poet-2poet2, poet_2 (alias of poet2)PoET2
from openprotein.molecules import Protein

model = session.models.poet2
msa = session.align.create_msa("MKTAYIAKQRQISFVKSHFSRQ")
prompt = msa.sample_prompt(num_sequences=10)
backbone = Protein.from_filepath("backbone.cif", chain_id="A")

job = model.embed(["MKTAYIAKQRQISFVKSHFSRQ"], reduction="MEAN", prompt=prompt)
embeddings = job.wait()
print(embeddings[0].shape)

job = model.logits(["MKTAYIAKQRQISFVKSHFSRQ"], prompt=prompt)
logits = job.wait()
print(logits[0].shape)

job = model.attn(["MKTAYIAKQRQISFVKSHFSRQ"], prompt=prompt)
attention = job.wait()
print(attention[0].shape)

job = model.score(["MKTAYIAKQRQISFVKSHFSRQ"], prompt=prompt)
log_likelihoods = job.wait()
print(log_likelihoods[0])

job = model.single_site("MKTAYIAKQRQISFVKSHFSRQ", prompt=prompt)
substitution_scores = job.wait()
print(substitution_scores[0])

job = model.indel("MKTAYIAKQRQISFVKSHFSRQ", insert="A", prompt=prompt)
indel_scores = job.wait()
print(indel_scores[0])

job = model.generate(prompt=prompt, query=backbone)
sequences = job.wait()
print(sequences[0])

12source

Boltz-2 all-atom structure prediction model that jointly predicts complex structure and ligand binding affinity. Predicts protein, DNA, RNA and ligand complexes, with optional constraints, templates and experimental-method conditioning.

Boltz-2: Towards Accurate and Efficient Binding Affinity Prediction · GitHub

Model IDAccessorsInterface
boltz-2boltz2 (alias of boltz_2), boltz_2Boltz2
from openprotein.molecules import Protein

model = session.models.boltz2
protein = Protein("MKTAYIAKQRQISFVKSHFSRQ")
protein.msa = session.align.create_msa("MKTAYIAKQRQISFVKSHFSRQ")

job = model.fold(protein)
structure = job.wait()[0]
conformation = structure[0]
chain = next(iter(conformation.values()))
print(chain.sequence.decode())
print(chain.coordinates.shape)  # (L, 37, 3): residues, atom slots, xyz

3source

De novo protein backbone generation by diffusion.

De novo design of protein structure and function with RFdiffusion · GitHub

The RFdiffusion class below accepts the supported design inputs. For legacy reloads, see RFdiffusionFuture.

Model IDAccessorsInterface
rfdiffusionrfdiffusionRFdiffusion
from openprotein.molecules import Protein

model = session.models.rfdiffusion
query = Protein.from_expr(80)

job = model.generate(query=query)
design = job.wait()[0]
for chain_id, chain in design.items():
    if isinstance(chain, Protein):
        print(chain_id, chain.sequence.decode(), chain.coordinates.shape)

3source

ESM2 masked protein language model trained on UniRef50. Its checkpoints share training data and objective, and differ in size.

650M parameters over 33 layers.

Evolutionary-scale prediction of atomic level protein structure with a language model · GitHub

ESM2 (150M). 150M parameters over 30 layers.

ESM2 (35M). 35M parameters over 12 layers.

ESM2 (3B). 3B parameters over 36 layers.

ESM2 (8M). 8M parameters over 6 layers.

Model IDAccessorsInterface
esm2_t33_650M_UR50Desm2 (alias of esm2_t33_650M_UR50D), esm2_t33_650M_UR50DESM2
esm2_t30_150M_UR50Desm2_t30_150M_UR50DESM2
esm2_t12_35M_UR50Desm2_t12_35M_UR50DESM2
esm2_t36_3B_UR50Desm2_t36_3B_UR50DESM2
esm2_t6_8M_UR50Desm2_t6_8M_UR50DESM2
model = session.models.esm2

job = model.embed(["MKTAYIAKQRQISFVKSHFSRQ"], reduction=None)
embedding = job.wait()[0]
print(embedding.shape)  # (T, D): tokens (including special tokens), features

job = model.logits(["MKTAYIAKQRQISFVKSHFSRQ"])
logits = job.wait()
print(logits[0].shape)

job = model.attn(["MKTAYIAKQRQISFVKSHFSRQ"])
attention = job.wait()
print(attention[0].shape)

job = model.single_site("MKTAYIAKQRQISFVKSHFSRQ")
substitution_scores = job.wait()
print(substitution_scores[0])

9source

Message-passing inverse-folding model that designs sequences for a fixed protein backbone.

The original weights, trained on protein structures from the PDB.

Robust deep learning-based protein sequence design using ProteinMPNN · GitHub

SolubleMPNN. Weights trained on soluble proteins only, for designing soluble sequences.

The ProteinMPNN class below is the interface for proteinmpnn and solublempnn, a checkpoint trained on soluble proteins. It generates and scores sequences.

Model IDAccessorsInterface
proteinmpnnproteinmpnnProteinMPNN
solublempnnsolublempnnProteinMPNN
from openprotein.molecules import Protein

model = session.models.proteinmpnn
query = Protein.from_filepath("backbone.cif", chain_id="A")

job = model.score([query.sequence], query=query)
log_likelihoods = job.wait()
print(log_likelihoods[0])

job = model.single_site(query.sequence, query=query)
substitution_scores = job.wait()
print(substitution_scores[0])

job = model.embed([query.sequence], query=query)
embeddings = job.wait()
print(embeddings[0].shape)

job = model.generate(query=query)
sequences = job.wait()
print(sequences[0])

6source

OpenDDE all-atom co-folding model (opendde_v1, 656M parameters). Folds protein/DNA/RNA/ligand/ion complexes in one structure, optionally conditioned on an MSA.

The general-purpose checkpoint.

Folding, Reasoning, and Scaling with Open-source Drug Discovery Engine

OpenDDE-abag. OpenDDE antibody-antigen model: the opendde_v1 architecture with a checkpoint tuned on antibody-antigen complexes. Same inputs and outputs as opendde.

Model IDAccessorsInterface
openddeopenddeOpenDDE
opendde-abagopendde_abagOpenDDE
from openprotein.molecules import Protein

model = session.models.opendde
protein = Protein("MKTAYIAKQRQISFVKSHFSRQ")
protein.msa = session.align.create_msa("MKTAYIAKQRQISFVKSHFSRQ")

job = model.fold(protein)
structure = job.wait()[0]
conformation = structure[0]
chain = next(iter(conformation.values()))
print(chain.sequence.decode())
print(chain.coordinates.shape)  # (L, 37, 3): residues, atom slots, xyz

3source

Inverse-folding model: scores and designs sequences for a fixed backbone.

Learning inverse folding from millions of predicted structures · GitHub

The ESMIF1 class below is the interface for esm-if1.

Model IDAccessorsInterface
esm-if1esm_if1 (alias of esmif1), esmif1ESMIF1
from openprotein.molecules import Protein

model = session.models.esmif1
query = Protein.from_filepath("backbone.cif", chain_id="A")

job = model.score([query.sequence], query=query)
log_likelihoods = job.wait()
print(log_likelihoods[0])

job = model.single_site(query.sequence, query=query)
substitution_scores = job.wait()
print(substitution_scores[0])

job = model.generate(query=query)
sequences = job.wait()
print(sequences[0])

5source

ESM Cambrian (ESMC) protein language model, trained on protein sequences from UniRef, MGnify, and JGI.

600M parameters.

Language Modeling Materializes a World Model of Protein Biology · GitHub

ESMC (300M). 300M parameters.

ESMC (6B). 6B parameters.

Model IDAccessorsInterface
esmc-600mesmc_600mESMC
esmc-300mesmc_300mESMC
esmc-6besmc_6bESMC
model = session.models.esmc_600m

job = model.embed(["MKTAYIAKQRQISFVKSHFSRQ"], reduction="MEAN")
embeddings = job.wait()
print(embeddings[0].shape)

job = model.logits(["MKTAYIAKQRQISFVKSHFSRQ"])
logits = job.wait()
print(logits[0].shape)

job = model.attn(["MKTAYIAKQRQISFVKSHFSRQ"])
attention = job.wait()
print(attention[0].shape)

job = model.single_site("MKTAYIAKQRQISFVKSHFSRQ")
substitution_scores = job.wait()
print(substitution_scores[0])

9source

ESMFold2 all-atom structure prediction model. Folds protein, DNA, RNA and ligand complexes.

Full-depth folding trunk (48 layers), optionally conditioned on an MSA.

Language Modeling Materializes a World Model of Protein Biology · GitHub

ESMFold2-Fast. Inference-optimized single-sequence variant (no MSA) whose folding trunk has half the depth (24 layers).

Model IDAccessorsInterface
esmfold2esmfold2ESMFold2
esmfold2-fastesmfold2_fastESMFold2
from openprotein.molecules import Protein

model = session.models.esmfold2
protein = Protein("MKTAYIAKQRQISFVKSHFSRQ")
protein.msa = session.align.create_msa("MKTAYIAKQRQISFVKSHFSRQ")

job = model.fold(protein)
structure = job.wait()[0]
conformation = structure[0]
chain = next(iter(conformation.values()))
print(chain.sequence.decode())
print(chain.coordinates.shape)  # (L, 37, 3): residues, atom slots, xyz

3source

Protenix-v2 model — enhanced-capacity 464M-parameter variant with improved antibody-antigen structure prediction and ligand plausibility.

Protenix-v2: Broadening the Reach of Structure Prediction and Biomolecular Design · GitHub

Model IDAccessorsInterface
protenix-v2protenix_v2ProtenixV2
from openprotein.molecules import Protein

model = session.models.protenix_v2
protein = Protein("MKTAYIAKQRQISFVKSHFSRQ")
protein.msa = session.align.create_msa("MKTAYIAKQRQISFVKSHFSRQ")

job = model.fold(protein)
structure = job.wait()[0]
conformation = structure[0]
chain = next(iter(conformation.values()))
print(chain.sequence.decode())
print(chain.coordinates.shape)  # (L, 37, 3): residues, atom slots, xyz

3source

Antibody-specific language model for paired heavy/light chains.

Addressing the antibody germline bias and its effect on language models for improved antibody design · GitHub

Model IDAccessorsInterface
ablang2ablang2AbLang2
model = session.models.ablang2
paired = "EVQLVESGGGLVQPGGSLRLSCAAS:DIQMTQSPSSLSASVGDRVTITC"

job = model.embed([paired], reduction="MEAN")
embeddings = job.wait()
print(embeddings[0].shape)

job = model.logits([paired])
logits = job.wait()
print(logits[0].shape)

job = model.single_site(paired)
substitution_scores = job.wait()
print(substitution_scores[0])

8source

Protenix all-atom structure prediction model from ByteDance, an open-source reproduction of AlphaFold3. Predicts protein, DNA, RNA and ligand complexes, with optional templates.

Protenix: Advancing Structure Prediction Through a Comprehensive Folding Model · GitHub

Model IDAccessorsInterface
protenixprotenixProtenix
from openprotein.molecules import Protein

model = session.models.protenix
protein = Protein("MKTAYIAKQRQISFVKSHFSRQ")
protein.msa = session.align.create_msa("MKTAYIAKQRQISFVKSHFSRQ")

job = model.fold(protein)
structure = job.wait()[0]
conformation = structure[0]
chain = next(iter(conformation.values()))
print(chain.sequence.decode())
print(chain.coordinates.shape)  # (L, 37, 3): residues, atom slots, xyz

3source

All-atom generative diffusion model that designs protein binders against proteins, nucleic acids or small molecules.

BoltzGen: Toward Universal Binder Design

The BoltzGen class below is the interface for boltzgen. For legacy reloads, see BoltzGenFuture.

Model IDAccessorsInterface
boltzgenboltzgenBoltzGen
from openprotein.molecules import Complex, Protein

model = session.models.boltzgen
target = Protein.from_filepath("target.cif", chain_id="A")
binder = Protein.from_expr(80)
query = Complex({"A": target, "B": binder})

job = model.generate(query=query)
design = job.wait()[0]
for chain_id, chain in design.items():
    if isinstance(chain, Protein):
        print(chain_id, chain.sequence.decode(), chain.coordinates.shape)

3source

RosettaFold-3 (RF3) all-atom structure prediction model, competitive with leading open-source models. Trained with implicit chirality and atom-level geometric conditioning, which helps on chiral ligands. Predicts protein and ligand complexes from an MSA.

Accelerating Biomolecular Modeling with AtomWorks and RF3 · GitHub

Model IDAccessorsInterface
rosettafold-3rf3 (alias of rosettafold_3), rosettafold_3RosettaFold3
from openprotein.molecules import Protein

model = session.models.rf3
protein = Protein("MKTAYIAKQRQISFVKSHFSRQ")
protein.msa = session.align.create_msa("MKTAYIAKQRQISFVKSHFSRQ")

job = model.fold(protein)
structure = job.wait()[0]
conformation = structure[0]
chain = next(iter(conformation.values()))
print(chain.sequence.decode())
print(chain.coordinates.shape)  # (L, 37, 3): residues, atom slots, xyz

3source

MiniFold single-sequence structure prediction: a 48-block folding trunk over esm2_t36_3B_UR50D embeddings.

MiniFold: Simple, Fast, and Accurate Protein Structure Prediction · GitHub

Model IDAccessorsInterface
minifoldminifoldMiniFold
model = session.models.minifold

job = model.fold("MKTAYIAKQRQISFVKSHFSRQ")
structure = job.wait()[0]
conformation = structure[0]
chain = next(iter(conformation.values()))
print(chain.sequence.decode())
print(chain.coordinates.shape)  # (L, 37, 3): residues, atom slots, xyz

3source

Boltz-1 open-source all-atom structure prediction model, approaching AlphaFold3 accuracy. Predicts protein, DNA, RNA and ligand complexes, with optional constraints.

The base model, with inference-time potentials optional.

Boltz-1: Democratizing Biomolecular Interaction Modeling · GitHub

Boltz-1x. Boltz-1's weights with Boltz-steering: inference-time potentials that fix steric clashes, bond geometry and chirality for more physically plausible poses.

Model IDAccessorsInterface
boltz-1boltz1 (alias of boltz_1), boltz_1Boltz1
boltz-1xboltz1x (alias of boltz_1x), boltz_1xBoltz1
from openprotein.molecules import Protein

model = session.models.boltz1
protein = Protein("MKTAYIAKQRQISFVKSHFSRQ")
protein.msa = session.align.create_msa("MKTAYIAKQRQISFVKSHFSRQ")

job = model.fold(protein)
structure = job.wait()[0]
conformation = structure[0]
chain = next(iter(conformation.values()))
print(chain.sequence.decode())
print(chain.coordinates.shape)  # (L, 37, 3): residues, atom slots, xyz

3source

esmfold_v1 model with 690M parameters, running on top of esm2_t36_3B_UR50D with 3B parameters.

Evolutionary-scale prediction of atomic level protein structure with a language model · GitHub

Model IDAccessorsInterface
esmfoldesmfoldESMFold
model = session.models.esmfold

job = model.fold("MKTAYIAKQRQISFVKSHFSRQ")
structure = job.wait()[0]
conformation = structure[0]
chain = next(iter(conformation.values()))
print(chain.sequence.decode())
print(chain.coordinates.shape)  # (L, 37, 3): residues, atom slots, xyz

3source

ESM-1 masked protein language model with 650M parameters over 33 layers.

ESM-1b, trained on UniRef50.

Biological Structure and Function Emerge from Scaling Unsupervised Learning to 250 Million Protein Sequences · GitHub

ESM1v-1. ESM-1v, trained on UniRef90 for zero-shot prediction of mutation effects. Ensemble member 1 of 5. Language models enable zero-shot prediction of the effects of mutations on protein function · GitHub

ESM1v-2. ESM-1v, trained on UniRef90 for zero-shot prediction of mutation effects. Ensemble member 2 of 5. Language models enable zero-shot prediction of the effects of mutations on protein function · GitHub

ESM1v-3. ESM-1v, trained on UniRef90 for zero-shot prediction of mutation effects. Ensemble member 3 of 5. Language models enable zero-shot prediction of the effects of mutations on protein function · GitHub

ESM1v-4. ESM-1v, trained on UniRef90 for zero-shot prediction of mutation effects. Ensemble member 4 of 5. Language models enable zero-shot prediction of the effects of mutations on protein function · GitHub

ESM1v-5. ESM-1v, trained on UniRef90 for zero-shot prediction of mutation effects. Ensemble member 5 of 5. Language models enable zero-shot prediction of the effects of mutations on protein function · GitHub

Model IDAccessorsInterface
esm1b_t33_650M_UR50Sesm1b (alias of esm1b_t33_650M_UR50S), esm1b_t33_650M_UR50SESM1
esm1v_t33_650M_UR90S_1esm1v (alias of esm1v_t33_650M_UR90S_1), esm1v_t33_650M_UR90S_1ESM1
esm1v_t33_650M_UR90S_2esm1v_t33_650M_UR90S_2ESM1
esm1v_t33_650M_UR90S_3esm1v_t33_650M_UR90S_3ESM1
esm1v_t33_650M_UR90S_4esm1v_t33_650M_UR90S_4ESM1
esm1v_t33_650M_UR90S_5esm1v_t33_650M_UR90S_5ESM1
model = session.models.esm1b

job = model.embed(["MKTAYIAKQRQISFVKSHFSRQ"], reduction="MEAN")
embeddings = job.wait()
print(embeddings[0].shape)

job = model.logits(["MKTAYIAKQRQISFVKSHFSRQ"])
logits = job.wait()
print(logits[0].shape)

job = model.attn(["MKTAYIAKQRQISFVKSHFSRQ"])
attention = job.wait()
print(attention[0].shape)

job = model.single_site("MKTAYIAKQRQISFVKSHFSRQ")
substitution_scores = job.wait()
print(substitution_scores[0])

9source

ProtT5-XL encoder embeddings (UniRef50).

ProtTrans: Toward Understanding the Language of Life Through Self-Supervised Learning · GitHub

Model IDAccessorsInterface
prott5-xlprott5_xlProtT5
model = session.models.prott5_xl

job = model.embed(["MKTAYIAKQRQISFVKSHFSRQ"], reduction="MEAN")
embeddings = job.wait()
print(embeddings[0].shape)

6source

AlphaFold2 protein structure prediction from DeepMind, run through ColabFold. Predicts single chains and protein complexes from an MSA, with optional Amber relaxation.

Highly accurate protein structure prediction with AlphaFold. · GitHub

Model IDAccessorsInterface
alphafold2af2 (alias of alphafold2), alphafold2AlphaFold2
from openprotein.molecules import Protein

model = session.models.af2
protein = Protein("MKTAYIAKQRQISFVKSHFSRQ")
protein.msa = session.align.create_msa("MKTAYIAKQRQISFVKSHFSRQ")

job = model.fold(protein)
structure = job.wait()[0]
conformation = structure[0]
chain = next(iter(conformation.values()))
print(chain.sequence.decode())
print(chain.coordinates.shape)  # (L, 37, 3): residues, atom slots, xyz

3source

OpenProtein-developed conditional protein language model that embeds, scores, and generates sequences conditioned on an input protein family.

PoET: A generative model of protein families as sequences-of-sequences · GitHub

The PoET class below is the interface for poet. PoET2, documented under PoET-2, extends it.

Model IDAccessorsInterface
poetpoetPoET
model = session.models.poet
msa = session.align.create_msa("MKTAYIAKQRQISFVKSHFSRQ")
prompt = msa.sample_prompt(num_sequences=10)

job = model.embed(["MKTAYIAKQRQISFVKSHFSRQ"], reduction="MEAN", prompt=prompt)
embeddings = job.wait()
print(embeddings[0].shape)

job = model.logits(["MKTAYIAKQRQISFVKSHFSRQ"], prompt=prompt)
logits = job.wait()
print(logits[0].shape)

job = model.score(["MKTAYIAKQRQISFVKSHFSRQ"], prompt=prompt)
log_likelihoods = job.wait()
print(log_likelihoods[0])

job = model.single_site("MKTAYIAKQRQISFVKSHFSRQ", prompt=prompt)
substitution_scores = job.wait()
print(substitution_scores[0])

job = model.indel("MKTAYIAKQRQISFVKSHFSRQ", insert="A", prompt=prompt)
indel_scores = job.wait()
print(indel_scores[0])

job = model.generate(prompt=prompt)
sequences = job.wait()
print(sequences[0])

11source

Masked protein language model (~300M parameters) trained on UniRef50 with contact and secondary structure prediction as secondary objectives. Random Fourier position embeddings and FlashAttention for fast inference.

Model IDAccessorsInterface
prot-seqprot_seqProtSeq
model = session.models.prot_seq

job = model.embed(["MKTAYIAKQRQISFVKSHFSRQ"], reduction="MEAN")
embeddings = job.wait()
print(embeddings[0].shape)

job = model.attn(["MKTAYIAKQRQISFVKSHFSRQ"])
attention = job.wait()
print(attention[0].shape)

job = model.logits(["MKTAYIAKQRQISFVKSHFSRQ"])
logits = job.wait()
print(logits[0].shape)

8source

Masked protein language model (~900M parameters) trained on UniRef100. Rotary position embeddings and FlashAttention for fast inference.

Sequences weighted inversely to their UniRef50 homolog count.

RotaProt (UniRef90-FT). RotaProt (UniRef50w) fine-tuned with sequences weighted inversely to their UniRef90 cluster size.

Model IDAccessorsInterface
rotaprot-large-uniref50wrotaprot_large_uniref50wRotaProt
rotaprot-large-uniref90-ftrotaprot_large_uniref90_ftRotaProt
model = session.models.rotaprot_large_uniref50w

job = model.embed(["MKTAYIAKQRQISFVKSHFSRQ"], reduction="MEAN")
embeddings = job.wait()
print(embeddings[0].shape)

job = model.attn(["MKTAYIAKQRQISFVKSHFSRQ"])
attention = job.wait()
print(attention[0].shape)

job = model.logits(["MKTAYIAKQRQISFVKSHFSRQ"])
logits = job.wait()
print(logits[0].shape)

8source

Use model.methods to check which tasks a model supports. A method inherited from a shared class may not be available on every model.

For model-specific options, see the model documentation and the Models REST reference. Python keyword arguments can differ from REST request fields.

12source

12source

3source

3source

Task results

Model methods return futures for their submitted tasks. See how to read task results or read a fitted model.

For a specialized task future with per-position result type T, get() and wait() return list[T]. get_item() and unit reads return one T; stream() yields results in order. Bare reads select the task's primary output. Use get(output=...) or wait(output=...) to select a named output, which has its own result type.

FuturePrimary outputType per position
EmbeddingFutureembeddingsnumpy.ndarray
LogitsFuturelogitsnumpy.ndarray
AttentionFutureattnnumpy.ndarray
LogLikelihoodFutureloglikelihoodfloat, list[float], or numpy.ndarray
SingleSiteScoreFuturescorefloat, list[float], or numpy.ndarray
IndelScoreFuturescorefloat, list[float], or numpy.ndarray
SequenceGenerationFuturesequencesstr
PredictionFuturepredictionsdict[str, Any]
SingleSitePredictionFuturepredictionsdict[str, Any]
StructureDesignFuturestructuresComplex
StructurePredictionFuturestructuresStructure, retaining all conformations

Use session.models.SVD, session.models.UMAP and session.models.GP to create estimators. Their fitting methods return fit futures. Call get() or wait() on the fit future to retrieve the fitted model, or select output=... to read a named fit output. See fitted-model results for fit and cross-validation futures. Inspect the fitted model card for its advertised methods.

Replace your-assay-id with the ID of an existing assay dataset. All three estimators fit on the same embeddings job for the assay's sequences. Set new_sequences to the sequences you want to transform or predict on after fitting. For the UMAP example, use an assay with more than five distinct sequences.

assay = session.data.get(assay_id="your-assay-id")
embedding_job = session.models.esm2.embed(assay, reduction="MEAN")
new_sequences = ["ACDEFGHIK", "ACDEYGHIK"]

SVD: project onto two components

svd_fit = session.models.SVD(n_components=2).fit(embedding_job)
svd = svd_fit.wait()
projections = svd.transform(new_sequences).wait()
print(projections[0].shape)

UMAP: map sequences into two dimensions

umap_fit = session.models.UMAP(n_components=2, n_neighbors=5).fit(embedding_job)
umap = umap_fit.wait()
coordinates = umap.transform(new_sequences).wait()
print(coordinates[0].shape)  # (2,)

GP: predict a measured property

Replace activity with the name of a measurement column in the training assay that contains observed values.

measurement = "activity"
gp_fit = session.models.GP(kernel="rbf").fit(embedding_job, property=measurement)
gp = gp_fit.wait()
predictions = gp.predict(new_sequences).wait()
first_prediction = predictions[0][measurement]
print(first_prediction["mean"], first_prediction["variance"])

Fitted GP models expose their trained kernel, prior mean and observation noise variance. The mean uses the trained property units; noise uses those units squared. Hyperparameters are unavailable for GPs trained before they were recorded. The compatibility predictor also does not expose them for ensembles.

3source

3source

2source

18source

14source

19source

4source

Descriptions, method descriptors and model metadata describe discovery and outputs. Model-task records use Job; compatibility readers retain their documented result contracts.

3source

5source

19source

2source

20source

Referenced types

Types referenced by the interfaces above.

A fitted GP exposes a trained kernel in data space. The kernel class identifies its applicable hyperparameters. The kernel type is a ClassVar identifying its kind.

1source

1source

2source

2source

2source

2source

3source

3source

Deprecated compatibility readers retained for legacy job reloads. Current structure design calls return StructureDesignFuture.

22source

22source

On this page