Skip to Content
TutorialsPredictStructure Ensemble PredictionSample conformations

Sample and explore protein conformational ensembles

Generate and analyze single and multi-chain conformational ensembles using Gibbs and BioEmu2

Proteins are not rigid structures. They shift across conformations to carry out biological functions. Gibbs is OpenProtein.AI's newest foundation model for predicting protein conformational ensembles. Gibbs is able to sample ensembles with near-molecular dynamics (MD) accuracy, at 106× lower computational cost than traditional MD. Although Gibbs is trained only on single-chain proteins, Gibbs generalizes to multimeric complexes, having learned general rules of protein motion.

In this tutorial, we will learn to use Gibbs (and other models, like BioEmu2) to sample and analyze the conformational ensemble of a cystine-dense peptide (CDP). CDPs are small, cysteine-rich miniproteins that have recently emerged as attractive scaffolds for therapeutics due to their ability to drug difficult targets with high affinity and low immunogenicity. We will then learn how to use Gibbs to sample a simple multimeric complex.

Sample a single-chain protein using Gibbs

Inputs

Gibbs requires as input a reference structure, the evolutionary context (which we provide through PoET-2 sequence embeddings), and a temperature. It can optionally also take structural constraints. To learn more, see Concepts > Structural ensembles and the How-to > Sample a structural ensemble (coming soon) guide for more detail on how sampling works and what each setting controls.

Before we start, first download 6okd_c_ref.pdb. This is chain C of PDB entry 6OKD, which we've already extracted and prepped for this tutorial.

Note

If you haven't already, check out the Quickstart guide on how to get started on the app or on using our Python API.

Go to Tools > Structure ensemble. Click the pencil to name the job 6OKD Gibbs, so that we can find it again later in Jobs. Structure ensemble tool with the Gibbs model selected and default ensemble settings, before a reference structure is loaded

In the Reference structure box, click on Upload a structure file and select the 6okd_c_ref.pdb file. We can inspect our reference structure in the structure viewer.

Build an MSA and a prompt

Gibbs conditions on a PoET-2 embedding of the protein's evolutionary context. Before sampling, we build two things from the reference sequence:

  • An MSA of homologs of the sequence.
  • A prompt, a set of sequences sampled from that MSA, which the platform embeds with PoET-2.

In the settings panel on the right, from the Model dropdown, keep the default selection of Gibbs.

Under Ensemble settings > Prompt conditioning, keep the default selection of Auto · Homology search. With this option, Gibbs automatically searches for homologs of the reference sequence, builds the MSA, and samples a prompt when you submit the job.

Generate samples

In addition to the PoET-2 embedding, Gibbs takes as input:

  • Number of conformations to sample. We will set this to 100, which should be enough for a good first look at how the ensemble sits around the reference.
  • Temperature — sampling temperature in Kelvin. Higher temperatures give broader ensembles. We will use the default value of 300 K.

In the settings panel on the right, set Conformations to 100.

Leave Temperature at its default, 300 K.

Click Predict. The job runs asynchronously — you can navigate away and come back to it from Jobs.

6OKD chain C loaded as the reference structure and Gibbs settings configured

Analyze the predicted ensemble

The predicted ensemble is a set of models corresponding to conformations.

Note

Models returned by Gibbs are indexed arbitrarily and do not follow successive frames of a trajectory. Also, Gibbs draws conformations stochastically, so the ensemble itself and the exact RMSD or RMSF curves will differ from run to run, even with the same seed.

Fetch the results

After the job has completed, the results will be displayed on the same page. Alternatively, we can open the finished job by clicking Jobs on the top navigation bar. This will bring up the Results view comprising three panels: Conformations, Per residue flexibility (RMSF), and Structure. Use the Export button on the top right to save the results to your computer.

Results main view

Besides the analysis and predicted structures from the results, the inputs to the model can be viewed by clicking the View button at the top left of the main Results page, and selecting Input. This will display the reference structure and sequence and PoET-2 prompt context.

Results page Input view

Distribution over conformations

There are several useful plots that can help us to visualize the distribution over the conformations that we have sampled.

  • UMAP: This 2D projection reflects distances between conformers. Here, we also color each conformer by its distance (root mean square deviation, RMSD) to the reference.
  • PCA: Like the UMAP, the PCA is also a 2D projection, and is often used to analyze collective motions to characterize MD simulations
  • Tree: This visualizes the conformations as a dendrogram.
  • Ramachandran plot: This visualizes the distribution over the per-residue backbone dihedral angles (φ, ψ). It shows whether the sampled backbone stays in favorable, physically realistic regions.

The Conformations tab visualizes the distribution over the sampled conformations. Hover over any point (or leaf) to see its model index, RMSD to the reference, radius of gyration, and its structure in the adjacent structure panel.

Four visualization plots

RMSF

The RMSF, or root mean square fluctuation, measures per-residue flexibility across the ensemble. In 6OKD, the termini and the loops between its three disulfide-bonded segments show the highest RMSF, while the parts of the backbone held by a disulfide bond tend to vary less.

The RMSF plot shows the per-residue flexibility across the ensemble. Hover over different residues to highlight the corresponding residue in the Ramachandran plot and Structure viewer.

Structure viewer

Of course, we should also inspect the actual output structures.

The Structure viewer shows the predicted structure of selected conformations. To enter a full-page structure viewer, click on the Fullscreen button on the right of the structure viewer panel to toggle to the expanded viewport. Return to the three-panel results view by clicking on the same button again. Step through the sampled structures by index using the forward and backward arrow buttons, or type the index to Show in the box, or use the Model Index slider in the right-side tool bar.

We can also click Select all to overlay all the predicted structures together, as well as show or hide the reference structure by toggling the eye icon next to the Reference entry in the Legend.

Results page Structure view

Besides the analysis and predicted structures from the results, the inputs to the model can be viewed by clicking the View button at the top left of the main Results page, and selecting Input. This will display the reference structure and sequence and PoET-2 prompt context.

Results page Input view

Sample and compare with BioEmu2

To see how the Gibbs ensemble compares to another ensemble-generation method, let's also generate an ensemble with BioEmu2.

Start a new Structure ensemble job. Click the pencil next to the name to rename it — for example, 6OKD BioEmu2 ensemble

Upload 6okd_c_ref.pdb again, as the reference structure.

Click the Model field in the Tool settings panel on the right to open the model browser. Select BioEmu2 under the BioEmu family. Everything else about the job works the same way as for Gibbs.

Under Ensemble settings, leave MSA on its default, Auto · Homology search. BioEmu2 does not expose a Temperature setting.

Set Conformations to 100, to match the Gibbs ensemble above. BioEmu2 input configuration

Under Advanced, keep all the default settings. Click Predict.

Open the finished job from Jobs. Inspect the results as previously shown in the Gibbs example. BioEmu2 results

To overlay the earlier Gibbs ensemble with the current BioEmu2 results, hover over the left edge of the screen to slide the left panel out. Click on the Ensembles tab (leaf icon next to folder icon for Projects), then locate our previous Gibbs job 6OKD ensemble tutorial and click the + button to Compare with this ensemble. Overlay ensembles The Gibbs ensemble will then be plotted in a different color along with the BioEmu2 results. BioEmu2, Gibbs ensemble overlay

Sample a multimer with Gibbs

The same workflow can be used to sample a protein complex, with any number of chains. Multi-chain proteins can be specified using the chain break token :.

For this part of the tutorial, we will use 5V8Z, the D-domain of human ERp29, an ER-resident folding chaperone, in complex with the P-domain of calmegin, a testis-specific homolog of the lectin chaperone calnexin. The complex comprises:

  • the ERp29 D-domain (chain A, 97 resolved residues)
  • the calmegin P-domain (chain B, 27 resolved residues) — a short peptide, largely disordered outside the tip that docks onto ERp29

5V8Z's asymmetric unit holds two copies of this complex; we will keep only chains A and B, dropping the duplicate copy (chains C and D). For this tutorial, we will sample 50 conformations.

Start a new Structure ensemble job and, in the Reference structure box, type /pdb 5V8Z and press enter.

Remove chains C and D by clicking the × at the top-right corner.

Leave Prompt conditioning on Auto · Homology search — Gibbs detects the two remaining chains and builds a paired MSA and prompt across them, the same as joining the sequences with : on the Python side.

Set Conformations to 50 and leave Temperature at 300 K, then click Predict. Multi-chain Inputs for 5V8Z, with the duplicate copy removed and the ERp29 D-domain and calmegin P-domain loaded as the reference structure

Open the finished job from Jobs. The results viewer colors each chain separately by default for a complex, so the two domains are easy to tell apart while stepping through conformations. Multi-chain Outputs for 5V8Z, stepping through the sampled conformations of the ERp29/calmegin complex

Next steps

Congratulations on completing this tutorial! We sampled an ensemble of a monomer and of a two-chain complex, and compared Gibbs against the BioEmu2 benchmark with RMSD, RMSF, UMAP and Ramachandran analyses.

In the next Gibbs tutorials, we will be sharing more advanced features of Gibbs, including how to use Gibbs with structural constraints, as well as conditioned at different temperatures.

Which Gibbs feature are you most excited for? Let us know!

On this page