<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://smoes-prime.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://smoes-prime.github.io/" rel="alternate" type="text/html" hreflang="en" /><updated>2026-11-25T16:37:22+00:00</updated><id>https://smoes-prime.github.io/feed.xml</id><title type="html">Sebastian Moes</title><subtitle>PhD candidate in computational medicinal chemistry at Uppsala University. Research in antibiotic discovery, molecular dynamics, and virtual screening.</subtitle><author><name>Sebastian Moes</name></author><entry><title type="html">PCA on protein simulations: finding the signal in thousands of moving atoms</title><link href="https://smoes-prime.github.io/blog/pca-on-protein-simulations/" rel="alternate" type="text/html" title="PCA on protein simulations: finding the signal in thousands of moving atoms" /><published>2025-02-15T00:00:00+00:00</published><updated>2025-02-15T00:00:00+00:00</updated><id>https://smoes-prime.github.io/blog/pca-on-protein-simulations</id><content type="html" xml:base="https://smoes-prime.github.io/blog/pca-on-protein-simulations/"><![CDATA[<p>In my <a href="/blog/irap-thesis-plain-language/">thesis post</a> I mentioned using principal component analysis (PCA) to make sense of molecular dynamics data. This post goes into more detail.</p>

<h2 id="the-problem">The problem</h2>

<p>A simulation of a protein with about a thousand residues produces coordinates for thousands of atoms at every frame. Most of that motion is small jitter. You want the few collective movements that actually differ between simulations.</p>

<h2 id="what-pca-does">What PCA does</h2>

<p>PCA finds the directions along which your data varies the most, ordered from largest to smallest. Each direction is a <strong>principal component (PC)</strong>. If the first two PCs capture a large share of the variance, plotting each frame by its PC1 and PC2 values gives a 2D map of the protein’s conformational space.</p>

<h2 id="choosing-the-input-features">Choosing the input features</h2>

<p>The choice of features matters more than the algorithm.</p>

<ul>
  <li><strong>Cartesian coordinates</strong> are simple, but need the trajectory aligned first, and the alignment choice affects the result.</li>
  <li><strong>Pairwise distances</strong> between residues need no alignment and are not affected by overall rotation or translation. This is what I used for IRAP.</li>
  <li><strong>Dihedral angles</strong> capture backbone and side-chain rotations and suit local changes.</li>
</ul>

<h2 id="practical-workflow">Practical workflow</h2>

<ol>
  <li>Strip water and ions, and keep the atoms you care about (for example C-alpha atoms).</li>
  <li>Compute the features for every frame, for all simulations together.</li>
  <li>Fit PCA once on the combined data so every simulation is projected into the same space.</li>
  <li>Plot PC1 against PC2 and colour by simulation, replicate or time.</li>
</ol>

<p>Fitting on the combined data is important. If you fit each simulation separately, the axes mean different things and the plots can’t be compared.</p>

<h2 id="reading-the-plot">Reading the plot</h2>

<ul>
  <li>Overlapping clouds mean similar behaviour.</li>
  <li>Separated clouds mean different conformational states.</li>
  <li>Check replicates. If repeats of the same system land in different places, the difference between systems may be sampling noise.</li>
  <li>Look at what the PCs mean structurally by projecting the movement along PC1 back onto the protein.</li>
</ul>

<h2 id="limitations">Limitations</h2>

<p>PCA is linear, so it can miss nonlinear motion. The result also depends on what you sampled: 100 ns simulations can only show the motions that happen in 100 ns. Treat the plot as a way to find differences worth investigating, not as proof of a mechanism.</p>

<h2 id="pca-beyond-simulations">PCA beyond simulations</h2>

<p>The same idea works on any table of numbers. In our <a href="/blog/dna-encoded-libraries-plain-language/">DNA-encoded library work</a>, I used PCA on physicochemical properties of amino acid building blocks to map chemical space and find regions the library didn’t cover. The input is different (molecular properties instead of residue distances), but the logic is the same: compress many variables into a few axes, project new items into the same space, and look for gaps or separation.</p>

<h2 id="update-when-the-question-is-about-activity-use-pls">Update: when the question is about activity, use PLS</h2>

<p>PCA only looks at how the data varies, not at what you want to predict. In a later IRAP project on macrocyclic peptidomimetics, I wanted to link simulations to measured potency, so I used <strong>partial least squares (PLS) regression</strong> instead. PLS builds its axes to explain a target variable (here, binding affinity) rather than just variance.</p>

<p>The features were again distance-based. For each simulation snapshot I recorded which protein residues the ligand was in contact with (heavy atoms within 4 Å, filtered to potential hydrogen bonds and aromatic stacking), and fitted PLS to relate those contact patterns to activity. The model pointed to two arginines: sustained contact between the ligand’s C-terminal carboxylate and Arg929 went with lower potency, while contact with Arg439 went with higher potency. These are suggestions for design rather than proof, since the dataset is small and the energetic effect of each contact is hard to quantify. The details are in the paper: Håkansson, E. O.; Balestri, L. J. I.; Puthiyaparambath, S.; Moes, S.; et al. <a href="https://doi.org/10.1039/d5md00438a">Novel macrocyclic peptidomimetics targeting the insulin-regulated aminopeptidase (IRAP): design, synthesis and evaluation</a>. <em>RSC Med. Chem.</em> <strong>2025</strong>, <em>16</em> (10), 5059–5069.</p>

<p><em>TODO: add the IRAP PCA figure and code snippet.</em></p>]]></content><author><name>Sebastian Moes</name></author><summary type="html"><![CDATA[A technical walkthrough of using principal component analysis to analyse molecular dynamics simulations, as a follow-up to my IRAP thesis post.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://smoes-prime.github.io/images/sebastian.jpg" /><media:content medium="image" url="https://smoes-prime.github.io/images/sebastian.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">DNA-encoded libraries in plain language: testing billions of molecules in one tube</title><link href="https://smoes-prime.github.io/blog/dna-encoded-libraries-plain-language/" rel="alternate" type="text/html" title="DNA-encoded libraries in plain language: testing billions of molecules in one tube" /><published>2025-01-15T00:00:00+00:00</published><updated>2025-01-15T00:00:00+00:00</updated><id>https://smoes-prime.github.io/blog/dna-encoded-libraries-plain-language</id><content type="html" xml:base="https://smoes-prime.github.io/blog/dna-encoded-libraries-plain-language/"><![CDATA[<p>Screening molecules one at a time in separate wells can handle thousands to millions of compounds. <strong>DNA-encoded libraries (DELs)</strong> let you test billions at once, in a single tube.</p>

<h2 id="the-trick-a-barcode-on-every-molecule">The trick: a barcode on every molecule</h2>

<p>In a DEL, each small molecule is attached to a short piece of DNA that records how the molecule was built. The DNA is a barcode. You never have to look at the molecule itself to know what it is, because you can read the barcode instead.</p>

<h2 id="how-the-library-is-built">How the library is built</h2>

<p>Libraries are made by split-and-pool synthesis:</p>

<ol>
  <li>Split the starting material into several portions.</li>
  <li>Add a different building block to each portion, and add a matching DNA tag.</li>
  <li>Pool everything together, then split again.</li>
  <li>Repeat.</li>
</ol>

<p>Each round multiplies the number of compounds. With a few hundred building blocks per round and three rounds, you reach millions or billions of unique molecules.</p>

<h2 id="how-a-selection-works">How a selection works</h2>

<ol>
  <li>Attach the target protein to beads.</li>
  <li>Add the whole library and wash away molecules that don’t stick.</li>
  <li>Release what remains and read the DNA barcodes by sequencing.</li>
</ol>

<p>Barcodes that appear far more often than expected point to molecules that bind the target. Those are the candidates you then make without the DNA tag and test properly.</p>

<h2 id="where-computation-comes-in">Where computation comes in</h2>

<p>Selection data is noisy. Some molecules stick to the beads, some are simply abundant, and sequencing adds its own error. Computational analysis helps separate real binders from background, and lets you compare how different libraries or designs behave in the same selection.</p>

<p>I did the computational part of this work, including the comparative selection analysis and the PCA-guided building block selection described below.</p>

<h2 id="using-pca-to-design-the-library">Using PCA to design the library</h2>

<p>A library is only as diverse as its building blocks. To find gaps, I described each commercially available amino acid by physicochemical properties and used principal component analysis (PCA) to map them onto a 2D “chemical space”. Projecting the building blocks we already had onto that map showed which regions were empty. We then chose extra building blocks far from the existing ones, favouring charged and polar amino acids and taking cost into account, to broaden the library. It’s the same technique I used on protein simulations (see the <a href="/blog/pca-on-protein-simulations/">PCA post</a>), applied to molecules instead of conformations.</p>

<p><strong>Update (2026):</strong> This work has since been published: Mitrogiannis, C.; Moes, S.; Andersson, O.; Turunen, S. P.; Sköld, C.; Karlén, A.; Wannberg, J.; Verho, O. <a href="https://doi.org/10.1021/acsmedchemlett.6c00385">Design, Synthesis, and Comparative Selection Analysis of a Chemically Diverse Peptide-Like DNA-Encoded Library</a>. <em>ACS Med. Chem. Lett.</em> <strong>2026</strong>, <em>17</em> (11), 2363–2369.</p>]]></content><author><name>Sebastian Moes</name></author><summary type="html"><![CDATA[A non-specialist explanation of DNA-encoded libraries (DELs), how selections work, and what the computational analysis adds.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://smoes-prime.github.io/images/sebastian.jpg" /><media:content medium="image" url="https://smoes-prime.github.io/images/sebastian.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">What is virtual screening? Searching millions of molecules before touching a flask</title><link href="https://smoes-prime.github.io/blog/what-is-virtual-screening/" rel="alternate" type="text/html" title="What is virtual screening? Searching millions of molecules before touching a flask" /><published>2021-12-01T00:00:00+00:00</published><updated>2021-12-01T00:00:00+00:00</updated><id>https://smoes-prime.github.io/blog/what-is-virtual-screening</id><content type="html" xml:base="https://smoes-prime.github.io/blog/what-is-virtual-screening/"><![CDATA[<p>Finding a starting point for a new drug usually means testing a lot of molecules against a target, often a protein involved in a disease. Doing that in the lab for millions of compounds is slow and expensive. <strong>Virtual screening</strong> does the first pass on a computer, so only the most promising molecules get bought or made.</p>

<h2 id="the-basic-idea">The basic idea</h2>

<p>You need two things: a target and a library of molecules. The library can be a catalogue of purchasable compounds, a company’s in-house collection, or a set of molecules that hasn’t been made yet. The computer scores every molecule for how likely it is to bind the target, and you keep the top of the list.</p>

<p>There are two main ways to score.</p>

<h2 id="structure-based-docking">Structure-based: docking</h2>

<p>If you know the 3D structure of the target, you can try to fit each molecule into the binding pocket, a bit like trying keys in a lock. This is called <strong>docking</strong>. The software tries many orientations and shapes of each molecule and assigns a score for each fit.</p>

<h2 id="ligand-based-similarity">Ligand-based: similarity</h2>

<p>If you don’t have a structure but do know some molecules that work, you can look for others that resemble them. The assumption is that similar molecules tend to behave similarly. This is cheaper than docking and often works well when you have good known actives.</p>

<h2 id="where-it-goes-wrong">Where it goes wrong</h2>

<ul>
  <li><strong>Scores are rough.</strong> A docking score is an estimate. It is better at ruling out bad fits than at ranking good ones precisely.</li>
  <li><strong>Proteins move.</strong> A single crystal structure is one snapshot, and the pocket can look different when a molecule is bound. Molecular dynamics simulations are one way to account for that.</li>
  <li><strong>A good score isn’t a drug.</strong> A molecule can fit beautifully and still be toxic, unstable, impossible to make or unable to reach its target in the body.</li>
</ul>

<h2 id="why-bother">Why bother?</h2>

<p>Even with these limits, virtual screening shrinks the problem. Instead of testing millions of molecules, you test tens or hundreds, and you learn from the ones that fail. For areas like antibiotic discovery, where new chemical starting points are badly needed, that matters.</p>

<p><em>TODO: add a personal example from your own work and a docking figure.</em></p>]]></content><author><name>Sebastian Moes</name></author><summary type="html"><![CDATA[A plain-language introduction to virtual screening in drug discovery, how it works, and where it goes wrong.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://smoes-prime.github.io/images/sebastian.jpg" /><media:content medium="image" url="https://smoes-prime.github.io/images/sebastian.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">My master’s thesis in plain language: how an enzyme changes shape when a drug binds</title><link href="https://smoes-prime.github.io/blog/irap-thesis-plain-language/" rel="alternate" type="text/html" title="My master’s thesis in plain language: how an enzyme changes shape when a drug binds" /><published>2021-06-01T00:00:00+00:00</published><updated>2021-06-01T00:00:00+00:00</updated><id>https://smoes-prime.github.io/blog/irap-thesis-plain-language</id><content type="html" xml:base="https://smoes-prime.github.io/blog/irap-thesis-plain-language/"><![CDATA[<p>My master’s thesis, <em><a href="https://urn.kb.se/resolve?urn=urn:nbn:se:uu:diva-446591">Conformational Changes in Insulin Regulated Aminopeptidase</a></em>, used computer simulations to study one enzyme in the brain and how it reacts when a drug-like molecule sits in it. This post explains the project without the jargon.</p>

<h2 id="why-this-enzyme">Why this enzyme?</h2>

<p>Dementia, and Alzheimer’s disease in particular, affects more people every year as populations age. The drugs available today ease some symptoms, but none of them stop or reverse the decline.</p>

<p>One possible new target is an enzyme called <strong>insulin-regulated aminopeptidase</strong>, or <strong>IRAP</strong>. It is common in the parts of the brain involved in memory and learning. One of its jobs is to break down small hormone-like peptides there, such as vasopressin and oxytocin. In animal studies, blocking IRAP keeps those peptides around for longer, and that has improved memory and learning.</p>

<p>So a drug that blocks IRAP could be useful. To design a good one, we need to know how existing blockers (inhibitors) actually hold on to the enzyme, and that information was missing.</p>

<h2 id="the-problem-a-flexible-pocket">The problem: a flexible pocket</h2>

<p>Enzymes are not rigid. IRAP has a pocket where its target peptides are cut, with a zinc ion at the bottom that does the chemistry. A short loop at the edge of that pocket can flip between an <strong>open</strong> and a <strong>closed</strong> position, which changes how much room there is inside.</p>

<p><img src="/images/IRAP_open-closed.png" alt="Superimposed IRAP structures showing the loop near the active site in different positions" /></p>

<p>This flexibility matters for two reasons. The extra room lets IRAP accept large, ring-shaped peptides. It also sets IRAP apart from its close relatives, the ERAP enzymes, which help the immune system and mostly stay in the closed form. A drug that also hit ERAP could cause unwanted side effects, so the shape difference is something a drug designer can exploit to hit IRAP alone.</p>

<h2 id="what-i-did">What I did</h2>

<p>Crystal structures of proteins are a single frozen snapshot. To see how IRAP moves, I used <strong>molecular dynamics</strong> simulations. The computer treats every atom as a ball, the chemical bonds between them as springs, and then uses Newton’s laws of motion to calculate how everything moves, in tiny time steps, with the protein surrounded by water and salt at body temperature.</p>

<p>I set up eight starting structures of IRAP: some empty, some holding a natural peptide (angiotensin IV), a lab test substrate, or one of several known inhibitors, among them a spiro-oxindole compound developed in our group. For each structure that held a molecule, I also ran a copy with that molecule removed. Each system ran three times for 100 nanoseconds. That is a tiny fraction of a second, but long enough for the protein to shift noticeably.</p>

<h2 id="making-sense-of-the-movement">Making sense of the movement</h2>

<p>A protein with roughly a thousand amino acids gives you an enormous amount of data. I measured the distance between every pair of amino acids, which comes to tens of thousands of distances per frame of the simulation. Looking at them one at a time told me very little, because each distance jitters a lot.</p>

<p>To get around that, I used <strong>principal component analysis (PCA)</strong>. PCA squashes all those distances into a two-dimensional plot that keeps the largest, most consistent changes. Two simulations where the protein behaves differently end up in different regions of the plot, even if the difference is too subtle to spot by eye.</p>

<h2 id="what-i-found">What I found</h2>

<ul>
  <li><strong>A bound molecule changes the shape of IRAP.</strong> Simulations with something in the pocket separated clearly from empty ones in the PCA plots.</li>
  <li><strong>The inhibitor and the natural peptide pushed the enzyme in a similar direction.</strong> The spiro-oxindole inhibitor caused much the same shape change as angiotensin IV. Part of the pocket closed in around the ligand, which may be how the inhibitor keeps larger natural peptides from pushing it out.</li>
  <li><strong>When the inhibitor left, the enzyme went back.</strong> In one run the inhibitor drifted out of the pocket, and IRAP relaxed back toward its empty shape. That supports the idea that the shape change is caused by the bound molecule.</li>
  <li><strong>A stable binding pose for the spiro-oxindole inhibitor.</strong> In one simulation the inhibitor settled into a position that held firm through three further 100-nanosecond runs. Contacts with two amino acids, a serine (Ser546) and a tyrosine (Tyr954), anchored it in place.</li>
</ul>

<p><img src="/images/spiro_IRAP.png" alt="The spiro-oxindole inhibitor (cyan) sitting in the IRAP binding pocket" /></p>

<h2 id="why-it-matters">Why it matters</h2>

<p>The pocket contacts identified here tell chemists which parts of the enzyme a new inhibitor should grab on to. Because IRAP’s shape change seems to come with inhibitor binding, simulations like these can be used to screen future compounds: a candidate that produces the same shape change and holds the same contacts is worth testing in the lab.</p>

<p>The approach is not limited to IRAP. Running PCA on all amino-acid distances is a general way to pick up small, spread-out changes in any protein, whether they come from a drug binding, a change in pH or temperature, or a mutation.</p>

<h2 id="what-i-would-do-next">What I would do next</h2>

<p>The project would have benefited from longer simulations for every ligand, not just the most promising one, and from a wider set of molecules that includes weaker inhibitors. Running the same analysis on the related ERAP enzymes would also show more directly why some molecules prefer IRAP over its relatives.</p>

<p>The full thesis is available on <a href="https://urn.kb.se/resolve?urn=urn:nbn:se:uu:diva-446591">DiVA</a>. I later came back to IRAP and ran molecular dynamics simulations on a series of macrocyclic inhibitors, published in <a href="https://doi.org/10.1039/d5md00438a">RSC Medicinal Chemistry</a>.</p>]]></content><author><name>Sebastian Moes</name></author><summary type="html"><![CDATA[A non-specialist explanation of my master's thesis on conformational changes in insulin-regulated aminopeptidase (IRAP).]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://smoes-prime.github.io/images/sebastian.jpg" /><media:content medium="image" url="https://smoes-prime.github.io/images/sebastian.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>