<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>neherlab@biozentrum</title><link href="/" rel="alternate"/><link href="/feeds/all.atom.xml" rel="self"/><id>/</id><updated>2026-10-21T00:00:00+02:00</updated><entry><title>"Real-time analysis and prediction of viral evolution"</title><link href="/202610_Lyon.html" rel="alternate"/><published>2026-10-21T00:00:00+02:00</published><updated>2026-10-21T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2026-10-21:/202610_Lyon.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1UUr1-bmv-FifkpUZQpfEw7qTPcU1rPIzd1ZunAsmx3k/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>"Predicting seasonal influenza strains of the next season"</title><link href="/202610_CEPI_Istanbul.html" rel="alternate"/><published>2026-10-15T00:00:00+02:00</published><updated>2026-10-15T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2026-10-15:/202610_CEPI_Istanbul.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1zpjYi9LFuJGt5gRqSxbRMyFWzTbLGFA82gqqlkNUd1c/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Nextstrain workshop at IAEA</title><link href="/202609_IAEA_nextstrain.html" rel="alternate"/><published>2026-09-30T00:00:00+02:00</published><updated>2026-09-30T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2026-09-30:/202609_IAEA_nextstrain.html</id><summary type="html">&lt;p&gt;This workshop provides on overview on phylogenetic analysis and interactive visualization using nextstrain.
&lt;a href="https://nextstrain.org"&gt;Nextstrain&lt;/a&gt; is an open-source project to facilitate phylodynamic analysis, data integration, and visualization of large data sets of viral and bacterial pathogens. The analysis results can be visualized on your own computer or shared on the web …&lt;/p&gt;</summary><content type="html">&lt;p&gt;This workshop provides on overview on phylogenetic analysis and interactive visualization using nextstrain.
&lt;a href="https://nextstrain.org"&gt;Nextstrain&lt;/a&gt; is an open-source project to facilitate phylodynamic analysis, data integration, and visualization of large data sets of viral and bacterial pathogens. The analysis results can be visualized on your own computer or shared on the web.&lt;/p&gt;
&lt;h3&gt;Overview and Basics&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="202609_IAEA_intro.html"&gt;Basics of phylogenetic analysis&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="202609_IAEA_auspice.html"&gt;Exploring interactive phylogenies with Auspice&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="202609_IAEA_toolchain.html"&gt;The nextstrain toolchain&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nextstrain.org/projects/nextclade/en/stable/user/nextclade-web/analysis-results-table.html"&gt;Nextclade -- Analysis in the browser&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="202609_IAEA_augur.html"&gt;Analysis with augur and Snakemake -- Virus tutorial &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Additional steps and details&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="202609_IAEA_refine.html"&gt;Options for time tree inference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="202609_IAEA_color_geo.html"&gt;Specify color maps and geographic information&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="202609_IAEA_advanced_snakemake.html"&gt;Advanced snakemake (wildcards, functions, default rules)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="202609_IAEA_meta_from_fasta.html"&gt;Parsing metadata from fasta files&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Avian influenza resources&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://nextstrain.org/avian-flu/h5n1/ha/2y"&gt;Automatically updated analyses (by Louise Moncla and team)&lt;/a&gt;. These exist for H5N1, H7N9, H9N2 as well as some broader ones like "H5Nx" that contain H5 viruses regardless of their neuraminidase segment. Most contain trees for all segments.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://clades.nextstrain.org/?dataset-name=community/moncla-lab/iav-h5/ha/2.3.4.4"&gt;Nextclade datasets for H5 clade 2.3.4.4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://clades.nextstrain.org/?dataset-name=community/moncla-lab/iav-h5/ha/2.3.2.1"&gt;Nextclade datasets for H5 clade 2.3.2.1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://clades.nextstrain.org/?dataset-name=community/moncla-lab/iav-h5/ha/all-clades"&gt;Nextclade datasets for all H5 clades&lt;/a&gt;. See also &lt;a href="https://academic.oup.com/ve/article/11/1/veaf058/8221740"&gt;Ort el al&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Newcastle Virus disease resources&lt;/h3&gt;
&lt;p&gt;There are no automatically updated phylogentic analyses available for NDV as of now (could be added if useful). But we have implemented Nextclade datasets for class-I and II. These are in their early stages and  feedback in welcome.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://clades.nextstrain.org/?dataset-name=nextstrain/ndv/class-1/AB524405"&gt;Nextclade datasets for NDV class-I&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://clades.nextstrain.org/?dataset-name=nextstrain/ndv/class-2/NC_075404"&gt;Nextclade datasets for NDV class-II&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Other relevant links&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://nextstrain.org"&gt;nextstrain.org&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://clades.nextstrain.org"&gt;nextclade&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nextstrain.org/en/latest/"&gt;nextstrain documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nextstrain/zika-tutorial"&gt;Example repository with zika sequences&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/neherlab/treetime"&gt;Time-scaled phylogenies with TreeTime&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html"&gt;installing conda&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://snakemake.readthedocs.io/en/stable/tutorial/basics.html"&gt;snakemake tutorial&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><category term="teaching"/><category term="bioinformatics"/><category term="phylogenetics"/></entry><entry><title>AI agents in Coding and Science</title><link href="/202609_facultylunch.html" rel="alternate"/><published>2026-09-30T00:00:00+02:00</published><updated>2026-09-30T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2026-09-30:/202609_facultylunch.html</id><summary type="html">&lt;section class="slide frame"&gt;
    &lt;div class="cols"&gt;
        &lt;div class="center"&gt;
            &lt;h2&gt;Chatbot&lt;/h2&gt;
            &lt;img class="plain" src="/talk_images/202609_chatbot_loop.svg" alt="Chatbot: closed loop between user and model" width="85%"&gt;
            &lt;div class="smalltext muted"&gt;e.g. ChatGPT, Claude.ai, Gemini&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="center fragment"&gt;
            &lt;h2&gt;Agent&lt;/h2&gt;
            &lt;img class="plain" src="/talk_images/202609_agent_loop.svg" alt="Agent: model uses user resources, checks and iterates" width="85%"&gt;
            &lt;div class="smalltext muted"&gt;e.g. Claude Code, Codex, Cursor&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="bodytext center fragment"&gt;&lt;b&gt;Same model &amp;ndash; but different tools and feedback cycles&lt;/b&gt;&lt;/div&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;h3&gt;Why would you want to do this?&lt;/h3&gt;
    &lt;ul class="bodytext"&gt;
        &lt;li&gt;&lt;b&gt;Longer independent workflows:&lt;/b&gt; hand over a task, not a question&lt;/li&gt;
        &lt;li class="fragment"&gt;&lt;b&gt;Feedback comes from the environment, not from you&lt;/b&gt;
            &lt;ul&gt;
                &lt;li&gt;&lt;b&gt;Coding:&lt;/b&gt; build, run …&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/section&gt;</summary><content type="html">&lt;section class="slide frame"&gt;
    &lt;div class="cols"&gt;
        &lt;div class="center"&gt;
            &lt;h2&gt;Chatbot&lt;/h2&gt;
            &lt;img class="plain" src="/talk_images/202609_chatbot_loop.svg" alt="Chatbot: closed loop between user and model" width="85%"&gt;
            &lt;div class="smalltext muted"&gt;e.g. ChatGPT, Claude.ai, Gemini&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="center fragment"&gt;
            &lt;h2&gt;Agent&lt;/h2&gt;
            &lt;img class="plain" src="/talk_images/202609_agent_loop.svg" alt="Agent: model uses user resources, checks and iterates" width="85%"&gt;
            &lt;div class="smalltext muted"&gt;e.g. Claude Code, Codex, Cursor&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="bodytext center fragment"&gt;&lt;b&gt;Same model &amp;ndash; but different tools and feedback cycles&lt;/b&gt;&lt;/div&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;h3&gt;Why would you want to do this?&lt;/h3&gt;
    &lt;ul class="bodytext"&gt;
        &lt;li&gt;&lt;b&gt;Longer independent workflows:&lt;/b&gt; hand over a task, not a question&lt;/li&gt;
        &lt;li class="fragment"&gt;&lt;b&gt;Feedback comes from the environment, not from you&lt;/b&gt;
            &lt;ul&gt;
                &lt;li&gt;&lt;b&gt;Coding:&lt;/b&gt; build, run the tests, read the errors, fix &amp;ndash; the test suite is the harness&lt;/li&gt;
                &lt;li&gt;&lt;b&gt;Science:&lt;/b&gt; run the analysis, inspect the output (plots, summary statistics, sanity checks), revise&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li class="fragment"&gt;You review results and key decisions, not every step&lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;h3&gt;The longer the leash the higher the risks&lt;/h3&gt;
    &lt;ul class="bodytext"&gt;
        &lt;li&gt;&lt;b&gt;Unintended actions&lt;/b&gt;
            &lt;ul&gt;
                &lt;li&gt;deleted or overwritten files and data&lt;/li&gt;
                &lt;li&gt;leaked credentials or unpublished data&lt;/li&gt;
                &lt;li&gt;rogue actions on shared resources: repos, clusters, email&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li class="fragment"&gt;&lt;b&gt;Wrong results&lt;/b&gt;
            &lt;ul&gt;
                &lt;li&gt;plausible output that is wrong&lt;/li&gt;
                &lt;li&gt;insufficient tests, or the agent adapts the tests until they pass&lt;/li&gt;
                &lt;li&gt;more output than you can verify&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li class="fragment"&gt;&lt;b&gt;Code as liability&lt;/b&gt;
            &lt;ul&gt;
                &lt;li&gt;large, complex code base that nobody understands well enough to maintain&lt;/li&gt;
                &lt;li&gt;bugs surface later, with no one who knows where to look&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;h3&gt;Mitigation: contain, verify, simplify&lt;/h3&gt;
    &lt;ul class="bodytext"&gt;
        &lt;li&gt;&lt;b&gt;Contain&lt;/b&gt;
            &lt;ul&gt;
                &lt;li&gt;sandbox: agent writes only to the project directory&lt;/li&gt;
                &lt;li&gt;no credentials or sensitive data within reach, restricted network&lt;/li&gt;
                &lt;li&gt;everything recoverable: version control and backups&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li class="fragment"&gt;&lt;b&gt;Verify&lt;/b&gt;
            &lt;ul&gt;
                &lt;li&gt;checks you define: known results, positive controls, tests you have read&lt;/li&gt;
                &lt;li&gt;inspect intermediate outputs, not just the summary&lt;/li&gt;
                &lt;li&gt;scope tasks to what you can verify&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li class="fragment"&gt;&lt;b&gt;Simplify&lt;/b&gt;
            &lt;ul&gt;
                &lt;li&gt;ask for less code, reuse established libraries&lt;/li&gt;
                &lt;li&gt;review diffs, insist on simple architecture&lt;/li&gt;
                &lt;li&gt;treat it as code you are responsible for&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;h3&gt;Example: fitness effects of Spike mutations on structure&lt;/h3&gt;
    &lt;div class="prompt"&gt;
        &lt;p&gt;Build a static website (TypeScript/React) that shows the fitness effects of amino-acid
        substitutions in the SARS-CoV-2 Spike protein, using data from our project with Jesse Bloom:
        &lt;a href="https://jbloomlab.github.io/SARS2-mut-fitness/S.html"&gt;jbloomlab.github.io/SARS2-mut-fitness/S.html&lt;/a&gt;&lt;/p&gt;
        &lt;ul&gt;
            &lt;li&gt;Map the average fitness cost of mutations at each site onto a structure of the Spike trimer.&lt;/li&gt;
            &lt;li&gt;Effects are estimated relative to different wildtype sequences (clade founders); let the user choose among them.&lt;/li&gt;
        &lt;/ul&gt;
        &lt;p class="fragment"&gt;&lt;b&gt;Before writing any code, propose a plan:&lt;/b&gt; data sources and preprocessing,
        structure and viewer, and how you will check the result. Wait for my OK.&lt;/p&gt;
    &lt;/div&gt;
&lt;/section&gt;</content><category term="talk_internal"/></entry><entry><title>Advanced Snakemake</title><link href="/202609_IAEA_advanced_snakemake.html" rel="alternate"/><published>2026-09-29T00:00:00+02:00</published><updated>2026-09-29T00:00:00+02:00</updated><author><name>Emma Hodcroft &amp; Richard Neher</name></author><id>tag:None,2026-09-29:/202609_IAEA_advanced_snakemake.html</id><summary type="html">&lt;h1&gt;Wildcards&lt;/h1&gt;
&lt;p&gt;One of the more powerful features of Snakemake is its ability to use use and interpret wildcards.
Wildcards are placeholders for data set names and come in very handy when analyzing viruses that exist in multiple lineages or have multiple segments, for example seasonal influenza viruses:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;rule&lt;span class="w"&gt; &lt;/span&gt;align:
&lt;span class="w"&gt;    &lt;/span&gt;input …&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</summary><content type="html">&lt;h1&gt;Wildcards&lt;/h1&gt;
&lt;p&gt;One of the more powerful features of Snakemake is its ability to use use and interpret wildcards.
Wildcards are placeholders for data set names and come in very handy when analyzing viruses that exist in multiple lineages or have multiple segments, for example seasonal influenza viruses:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;rule&lt;span class="w"&gt; &lt;/span&gt;align:
&lt;span class="w"&gt;    &lt;/span&gt;input:
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nv"&gt;sequences&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;results/{virus}_{segment}_sequences.fasta&amp;quot;&lt;/span&gt;,
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nv"&gt;reference&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;config/{virus}_{segment}_reference.gb&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;output:
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nv"&gt;alignment&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;results/alignment_{virus}_{segment}.fasta&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;shell:
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="s2"&gt;        augur align \&lt;/span&gt;
&lt;span class="s2"&gt;                --sequences {input.sequences} \&lt;/span&gt;
&lt;span class="s2"&gt;                --reference-sequence {input.reference} \&lt;/span&gt;
&lt;span class="s2"&gt;                --output {output.alignment}&lt;/span&gt;
&lt;span class="s2"&gt;    &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This defines a generic rule to align sequences of a particular segment belonging to a particular viral lineage.
Such generic rules can be combined with data set specific data and functionality using python syntax.
If we for example wanted to specify a data set specific evolutionary rate, we could do this as follows:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;clock_rate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;wildcards&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;rate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;h3n2&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;ha&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="mf"&gt;0.0043&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;h3n2&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;na&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;&lt;span class="mf"&gt;0.0029&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;h1n1pdm&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;ha&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="mf"&gt;0.0040&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;h1n1pdm&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;na&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;&lt;span class="mf"&gt;0.0032&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;vic&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;ha&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="mf"&gt;0.0024&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;vic&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;na&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;&lt;span class="mf"&gt;0.0015&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;yam&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;ha&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="mf"&gt;0.0019&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;yam&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;na&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;&lt;span class="mf"&gt;0.0013&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;rate&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;wildcards&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;virus&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;wildcards&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;segment&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="mf"&gt;0.001&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;rule&lt;/span&gt; &lt;span class="n"&gt;refine&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;tree&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tree&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tree&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;alignment&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;align&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;metadata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;data/&lt;/span&gt;&lt;span class="si"&gt;{virus}&lt;/span&gt;&lt;span class="s2"&gt;_&lt;/span&gt;&lt;span class="si"&gt;{segment}&lt;/span&gt;&lt;span class="s2"&gt;_metadata.tsv&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;tree&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;results/tree_&lt;/span&gt;&lt;span class="si"&gt;{virus}&lt;/span&gt;&lt;span class="s2"&gt;_&lt;/span&gt;&lt;span class="si"&gt;{segment}&lt;/span&gt;&lt;span class="s2"&gt;.nwk&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;node_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;results/branchlengths_&lt;/span&gt;&lt;span class="si"&gt;{virus}&lt;/span&gt;&lt;span class="s2"&gt;_&lt;/span&gt;&lt;span class="si"&gt;{segment}&lt;/span&gt;&lt;span class="s2"&gt;.json&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;clock_rate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;clock_rate&lt;/span&gt;
    &lt;span class="n"&gt;shell&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;        augur refine \&lt;/span&gt;
&lt;span class="sd"&gt;            --tree {input.tree} \&lt;/span&gt;
&lt;span class="sd"&gt;            --alignment {input.alignment} \&lt;/span&gt;
&lt;span class="sd"&gt;            --metadata {input.metadata} \&lt;/span&gt;
&lt;span class="sd"&gt;            --timetree \&lt;/span&gt;
&lt;span class="sd"&gt;            --clock-rate {params.clock_rate} \&lt;/span&gt;
&lt;span class="sd"&gt;            --output-tree {output.tree} \&lt;/span&gt;
&lt;span class="sd"&gt;            --output-node-data {output.node_data}&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;If we now asked snakemake to produce the file &lt;code&gt;results/tree_h3n2_ha.nwk&lt;/code&gt;, it would determine the wildcards &lt;code&gt;virus=h3n2&lt;/code&gt; and &lt;code&gt;segment=ha&lt;/code&gt; from the filename and then use the right input files and parameters.
As clock rate input parameter takes the form of a function in this case (defined above the rule) that takes the wildcards as parameters.&lt;/p&gt;
&lt;h1&gt;Default rules&lt;/h1&gt;
&lt;p&gt;The first rule in a Snakefile serves are as the default rule that is executed when no targets are specified.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nv"&gt;segments&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;pb2&amp;#39;&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;pb1&amp;#39;&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;pa&amp;#39;&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;ha&amp;#39;&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;np&amp;#39;&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;mp&amp;#39;&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;na&amp;#39;&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;ns&amp;#39;&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;
&lt;span class="nv"&gt;viruses&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;vic&amp;#39;&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;yam&amp;#39;&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;h1n1pdm&amp;#39;&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;h3n2&amp;#39;&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;

rule&lt;span class="w"&gt; &lt;/span&gt;all_auspice_files:
&lt;span class="w"&gt;    &lt;/span&gt;input:
&lt;span class="w"&gt;        &lt;/span&gt;expand&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;auspice/{virus}_{segment}_tree.json&amp;quot;&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;segment&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;segments,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;virus&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;viruses&lt;span class="o"&gt;)&lt;/span&gt;

&lt;span class="o"&gt;[&lt;/span&gt;...&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This rule &lt;code&gt;all_auspice_files&lt;/code&gt; only specifies input files. These input files are the files we want our pipeline to spit out and by making this rule the first rule in the Snakefile, it will be the default rule.
Calling &lt;code&gt;snakemake&lt;/code&gt; bare without specifying a target will then run all rules necessary to produce the input files of the default rule.&lt;/p&gt;</content><category term="teaching"/><category term="bioinformatics"/><category term="phylogenetics"/></entry><entry><title>Augur and Snakemake</title><link href="/202609_IAEA_augur.html" rel="alternate"/><published>2026-09-29T00:00:00+02:00</published><updated>2026-09-29T00:00:00+02:00</updated><author><name>Valentin Druelle, Marco Molari &amp; Richard Neher</name></author><id>tag:None,2026-09-29:/202609_IAEA_augur.html</id><summary type="html">&lt;h1&gt;Installation&lt;/h1&gt;
&lt;p&gt;To build your own phylogenetic analysis, please install Nextstrain on the computer you will bring by following the &lt;a href="https://docs.nextstrain.org/en/latest/install.html"&gt;installation instructions on nextstrain.org&lt;/a&gt;.&lt;/p&gt;
&lt;h1&gt;The tool chain Augur&lt;/h1&gt;
&lt;p&gt;The tool-chain &lt;a href="https://github.com/nextstrain/augur"&gt;&lt;em&gt;augur&lt;/em&gt;&lt;/a&gt; is the bioinformatics engine of nextstrain and produces the files that can be visualized in the webbrowser using &lt;a href="https://github.com/nextstrain/auspice"&gt;&lt;em&gt;auspice …&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;</summary><content type="html">&lt;h1&gt;Installation&lt;/h1&gt;
&lt;p&gt;To build your own phylogenetic analysis, please install Nextstrain on the computer you will bring by following the &lt;a href="https://docs.nextstrain.org/en/latest/install.html"&gt;installation instructions on nextstrain.org&lt;/a&gt;.&lt;/p&gt;
&lt;h1&gt;The tool chain Augur&lt;/h1&gt;
&lt;p&gt;The tool-chain &lt;a href="https://github.com/nextstrain/augur"&gt;&lt;em&gt;augur&lt;/em&gt;&lt;/a&gt; is the bioinformatics engine of nextstrain and produces the files that can be visualized in the webbrowser using &lt;a href="https://github.com/nextstrain/auspice"&gt;&lt;em&gt;auspice&lt;/em&gt;&lt;/a&gt;.
Augur consists of a number of tools that allow the user to filter and align sequences, build trees, and integrate the phylogenetic analysis with meta data.
The different tools are meant to be composable and the output of one tool will serve as the input of other tools.
We will work off the tutorial for Zika virus on the &lt;a href="https://docs.nextstrain.org/en/latest/tutorials/creating-a-phylogenetic-workflow.html"&gt;nextstrain web site&lt;/a&gt; and the github repository &lt;a href="https://github.com/nextstrain/zika-tutorial"&gt;nextstrain/zika-tutorial&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Move to the zika-tutorial folder and ensure your nextstrain environment is activated.&lt;/p&gt;
&lt;h2&gt;Augur commands&lt;/h2&gt;
&lt;p&gt;As an example, we'll look at the &lt;code&gt;filter&lt;/code&gt; command in greater detail.
This command allows you to selected various subsets of your input data for different types of analysis.
A simple example use of this command would be&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;augur&lt;span class="w"&gt; &lt;/span&gt;filter&lt;span class="w"&gt; &lt;/span&gt;--sequences&lt;span class="w"&gt; &lt;/span&gt;data/sequences.fasta&lt;span class="w"&gt; &lt;/span&gt;--metadata&lt;span class="w"&gt; &lt;/span&gt;data/metadata.tsv&lt;span class="w"&gt; &lt;/span&gt;--min-date&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;2012&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;--output&lt;span class="w"&gt; &lt;/span&gt;filtered.fasta
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This command will select all sequences with collection date in 2012 or later.
The filter command has a large number of options that allow flexible filtering for many common situations.
One such use-case is the exclusion of sequences that are known to be outliers (e.g.because of sequencing errors, cell-culture adaptation, ...).
These can be specified in a separate file:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;BRA/2016/FC_DQ75D1
COL/FLR_00034/2015
...
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;To drop such strains, you can pass the name of this file to the augur filter command:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;augur&lt;span class="w"&gt; &lt;/span&gt;filter&lt;span class="w"&gt; &lt;/span&gt;--sequences&lt;span class="w"&gt; &lt;/span&gt;data/sequences.fasta&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;             &lt;/span&gt;--metadata&lt;span class="w"&gt; &lt;/span&gt;data/metadata.tsv&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;             &lt;/span&gt;--min-date&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;2012&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;             &lt;/span&gt;--exclude&lt;span class="w"&gt; &lt;/span&gt;config/dropped_strains.txt&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;             &lt;/span&gt;--output&lt;span class="w"&gt; &lt;/span&gt;filtered.fasta
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;(To improve legibility, we have wrapped the command across multiple lines.)
If you run this command (you should be able to copy-paste this into your terminal), you should see that one of the sequences in the data set was dropped since its name was in the &lt;code&gt;drooped_strain.txt&lt;/code&gt; file.&lt;/p&gt;
&lt;p&gt;Another common filtering operation is subsetting of data to achieve a more even spatio-temporal distribution or reduce the data set size to more manageable numbers.
The filter command allows you to select a specific number of sequences from specific groups, for example one sequence per month from each country:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;augur&lt;span class="w"&gt; &lt;/span&gt;filter&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;--sequences&lt;span class="w"&gt; &lt;/span&gt;data/sequences.fasta&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;--metadata&lt;span class="w"&gt; &lt;/span&gt;data/metadata.tsv&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;--min-date&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;2012&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;--exclude&lt;span class="w"&gt; &lt;/span&gt;config/dropped_strains.txt&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;--group-by&lt;span class="w"&gt; &lt;/span&gt;country&lt;span class="w"&gt; &lt;/span&gt;year&lt;span class="w"&gt; &lt;/span&gt;month&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;--sequences-per-group&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="se"&gt;\&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;--output&lt;span class="w"&gt; &lt;/span&gt;filtered.fasta
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This subsampling and filtering will reduce the number of sequences in this tutorial data set from 34 to 24.&lt;/p&gt;
&lt;h2&gt;Chaining of augur commands with snakemake.&lt;/h2&gt;
&lt;p&gt;The output of one augur command serves as input to the next and hence these commands need to be executed in order.
This is a common pattern in bioinformatics and multiple tools -- so called workflow managers -- exist to facilitate this.
Within nextstrain, we have relied on &lt;a href="https://snakemake.readthedocs.io/en/stable/"&gt;Snakemake&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Snakemake breaks a workflow into a set of rules that are specified in a file called &lt;code&gt;Snakefile&lt;/code&gt;.
Each rule takes a number of input files, specifies a few parameters, and produces output files.&lt;/p&gt;
&lt;p&gt;We suggest to build up the Snakefile one rule at a time, starting with the stub that just defines a bunch of files.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;input_fasta&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;data/sequences.fasta&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;input_metadata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;data/metadata.tsv&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;dropped_strains&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;config/dropped_strains.txt&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;reference&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;config/zika_outgroup.gb&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;colors&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;config/colors.tsv&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;lat_longs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;config/lat_longs.tsv&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;auspice_config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;config/auspice_config.json&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Copy this stub and name the file &lt;code&gt;Snakefile_IAEA&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;A simple rule would look like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;rule&lt;/span&gt; &lt;span class="n"&gt;index_sequences&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;        Creating an index of sequence composition for filtering.&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
    &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;sequences&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;data/sequences.fasta&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;sequence_index&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;results/sequence_index.tsv&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;shell&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;        augur index \&lt;/span&gt;
&lt;span class="sd"&gt;            --sequences {input.sequences} \&lt;/span&gt;
&lt;span class="sd"&gt;            --output {output.sequence_index}&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Note that we explicitly specify what is an input and what is an output file.
Add this rule to the snakefile &lt;code&gt;Snakefile_IAEA&lt;/code&gt;, save the file, and execute&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;snakemake -j 1 -s Snakefile_IAEA index_sequences
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This will run the rule and produce the desired output files.
Check and inspect the output.
Then repeat this process with all the rules below.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;rule&lt;/span&gt; &lt;span class="nb"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;sequences&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;data/sequences.fasta&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;metadata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;data/metadata.tsv&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;sequences&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;results/filtered.fasta&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;min_date&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;2012&lt;/span&gt;
    &lt;span class="n"&gt;shell&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;        augur filter \&lt;/span&gt;
&lt;span class="sd"&gt;            --sequences {input.sequences} \&lt;/span&gt;
&lt;span class="sd"&gt;            --metadata {input.metadata} \&lt;/span&gt;
&lt;span class="sd"&gt;            --output {output.sequences} \&lt;/span&gt;
&lt;span class="sd"&gt;            --min-date {params.min_date}&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This rule would produce &lt;code&gt;results/filtered.fasta&lt;/code&gt; from the input files &lt;code&gt;data/sequences.fasta&lt;/code&gt; and &lt;code&gt;data/metadata.tsv&lt;/code&gt; using the &lt;code&gt;augur filter&lt;/code&gt; command.
Note that we explicitly specify what is an input and what is an output file.
To filter our data, we would now call snakemake as&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;snakemake&lt;span class="w"&gt; &lt;/span&gt;-s&lt;span class="w"&gt; &lt;/span&gt;Snakefile_IAEA&lt;span class="w"&gt; &lt;/span&gt;results/filtered.fasta
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;and snakemake will run the same command as specified above.
Note that you can either specify an explicit output file, or call the rule by name.&lt;/p&gt;
&lt;p&gt;So far, this is just a complicated reformulation of what we did above, but the benefit of workflow management becomes clear once we add more steps.
The next natural step in our phylogenetic pipeline is aligning the filtered sequences and we define a rule &lt;code&gt;align&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;rule&lt;/span&gt; &lt;span class="n"&gt;align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;sequences&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;filter&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sequences&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;reference&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;config/zika_outgroup.gb&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;alignment&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;results/aligned.fasta&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;shell&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;        augur align \&lt;/span&gt;
&lt;span class="sd"&gt;            --sequences {input.sequences} \&lt;/span&gt;
&lt;span class="sd"&gt;            --reference-sequence {input.reference} \&lt;/span&gt;
&lt;span class="sd"&gt;            --output {output.alignment}&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;You can download a Snakefile containing these two rules &lt;a href="/teaching_notes/201910_RIVM_Snakefile_example"&gt;here&lt;/a&gt;.
If you now want to generate the alignment, you can type&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;snakemake&lt;span class="w"&gt; &lt;/span&gt;-s&lt;span class="w"&gt; &lt;/span&gt;Snakefile_IAEA&lt;span class="w"&gt; &lt;/span&gt;results/aligned.fasta&lt;span class="w"&gt; &lt;/span&gt;--cores&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;and snakemake will&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;determine that &lt;code&gt;results/aligned.fasta&lt;/code&gt; is an output of rule &lt;code&gt;align&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;check whether all required input files are in place and run the necessary rules if not&lt;/li&gt;
&lt;li&gt;run rule &lt;code&gt;align&lt;/code&gt; and check whether the file &lt;code&gt;results/aligned.fasta&lt;/code&gt; appeared.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you supply a reference sequence to &lt;code&gt;augur align&lt;/code&gt;, augur will include that reference sequence in the alignment and strip all insertions relative to that reference.
This will guarantee a consistent reference coordinate system and genome annotation later on.&lt;/p&gt;
&lt;h3&gt;Construct the Phylogeny&lt;/h3&gt;
&lt;p&gt;Infer a phylogenetic tree from the multiple sequence alignment.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;rule&lt;/span&gt; &lt;span class="n"&gt;tree&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;alignment&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;align&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;alignment&lt;/span&gt;
    &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;tree&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;results/tree_raw.nwk&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;shell&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;        augur tree \&lt;/span&gt;
&lt;span class="sd"&gt;            --alignment {input.alignment} \&lt;/span&gt;
&lt;span class="sd"&gt;            --output {output.tree}&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The resulting tree is stored in &lt;a href="https://phylipweb.github.io/phylip/newicktree.html"&gt;Newick format&lt;/a&gt;.
Branch lengths in this tree measure nucleotide divergence.&lt;/p&gt;
&lt;p&gt;You can run the command by typing&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;snakemake&lt;span class="w"&gt; &lt;/span&gt;-s&lt;span class="w"&gt; &lt;/span&gt;Snakefile_IAEA&lt;span class="w"&gt; &lt;/span&gt;results/tree_raw.nwk&lt;span class="w"&gt; &lt;/span&gt;--cores&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h3&gt;Get a Time-Resolved Tree&lt;/h3&gt;
&lt;p&gt;Most phylogenies you see on nextstrain are time-resolved, that is the branch lengths of the tree correspond to calendar time rather than evolutionary distance.
The default method to infer time-resolved phylogenies in nextstrain is &lt;a href="https://github.com/neherlab/treetime"&gt;TreeTime&lt;/a&gt; and this analysis is an done using the augur command &lt;code&gt;refine&lt;/code&gt; (this steps "refines" the existing tree...).
The corresponding rule for in the snakefile would look as follows:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;rule&lt;/span&gt; &lt;span class="n"&gt;refine&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;Refining the tree&amp;quot;&lt;/span&gt;
    &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;tree&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tree&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tree&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;alignment&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;align&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;metadata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;input_metadata&lt;/span&gt;
    &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;tree&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;results/tree.nwk&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;node_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;results/branch_lengths.json&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;shell&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;        augur refine \&lt;/span&gt;
&lt;span class="sd"&gt;            --tree {input.tree} \&lt;/span&gt;
&lt;span class="sd"&gt;            --alignment {input.alignment} \&lt;/span&gt;
&lt;span class="sd"&gt;            --metadata {input.metadata} \&lt;/span&gt;
&lt;span class="sd"&gt;            --timetree \&lt;/span&gt;
&lt;span class="sd"&gt;            --output-tree {output.tree} \&lt;/span&gt;
&lt;span class="sd"&gt;            --output-node-data {output.node_data}&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This command requires the output of the tree and align rules as input and will produce the file &lt;code&gt;results/tree.nwk&lt;/code&gt; and &lt;code&gt;results/branch_lengths.json&lt;/code&gt;.
The latter contains the inferred clock model and the inferred dates of all nodes, including internal nodes.
Each internal node has been given a unique name (e.g. &lt;code&gt;NODE_0000001211&lt;/code&gt;) which we will use in the following steps to attach more information to the tree.
The &lt;code&gt;refine&lt;/code&gt; command has many different options that allow to specify clock rates, filter sequences that don't follow the molecular clock, calculate confidence intervals, etc.
We'll get into these details later.&lt;/p&gt;
&lt;p&gt;You can run the command by typing&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;snakemake&lt;span class="w"&gt; &lt;/span&gt;-s&lt;span class="w"&gt; &lt;/span&gt;Snakefile_IAEA&lt;span class="w"&gt; &lt;/span&gt;results/tree.nwk&lt;span class="w"&gt; &lt;/span&gt;--cores&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h2&gt;Annotate the Phylogeny&lt;/h2&gt;
&lt;h3&gt;Reconstruct Ancestral Traits&lt;/h3&gt;
&lt;p&gt;TreeTime can also infer ancestral traits from an existing phylogenetic tree and metadata annotating each tip of the tree.
The following command infers the region and country of all internal nodes from the time tree and original strain metadata.
As with the &lt;code&gt;refine&lt;/code&gt; command, the resulting JSON output is indexed by strain or internal node name.&lt;/p&gt;
&lt;p&gt;Specifying &lt;code&gt;--confidence&lt;/code&gt; means that the confidence intervals for the reconstructed trait values will be estimated.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;rule&lt;/span&gt; &lt;span class="n"&gt;traits&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;Inferring ancestral traits&amp;quot;&lt;/span&gt;
    &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;tree&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;refine&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tree&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;metadata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;data/metadata.tsv&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;node_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;results/traits.json&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;columns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;region country&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;shell&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;        augur traits \&lt;/span&gt;
&lt;span class="sd"&gt;            --tree {input.tree} \&lt;/span&gt;
&lt;span class="sd"&gt;            --metadata {input.metadata} \&lt;/span&gt;
&lt;span class="sd"&gt;            --output {output.node_data} \&lt;/span&gt;
&lt;span class="sd"&gt;            --columns {params.columns} \&lt;/span&gt;
&lt;span class="sd"&gt;            --confidence&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;You can run the command by typing&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;snakemake&lt;span class="w"&gt; &lt;/span&gt;-s&lt;span class="w"&gt; &lt;/span&gt;Snakefile_IAEA&lt;span class="w"&gt; &lt;/span&gt;results/traits.json&lt;span class="w"&gt; &lt;/span&gt;--cores&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h3&gt;Infer Ancestral Sequences&lt;/h3&gt;
&lt;p&gt;Using &lt;code&gt;ancestral&lt;/code&gt;, we can reconstruct what the ancesters of our samples' sequences must have looked like, and record the mutations that occurred on each branch.&lt;/p&gt;
&lt;p&gt;Next, infer the ancestral sequence of each internal node and identify any nucleotide mutations on the branches leading to any node in the tree.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;rule&lt;/span&gt; &lt;span class="n"&gt;ancestral&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;Reconstructing ancestral sequences and mutations&amp;quot;&lt;/span&gt;
    &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;tree&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;refine&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tree&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;alignment&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;align&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;
    &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;node_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;results/nt_muts.json&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;shell&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;        augur ancestral \&lt;/span&gt;
&lt;span class="sd"&gt;            --tree {input.tree} \&lt;/span&gt;
&lt;span class="sd"&gt;            --alignment {input.alignment} \&lt;/span&gt;
&lt;span class="sd"&gt;            --output-node-data {output.node_data}&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;You can run the command by typing&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;snakemake&lt;span class="w"&gt; &lt;/span&gt;-s&lt;span class="w"&gt; &lt;/span&gt;Snakefile_IAEA&lt;span class="w"&gt; &lt;/span&gt;results/nt_muts.json&lt;span class="w"&gt; &lt;/span&gt;--cores&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h3&gt;Identify Amino-Acid Mutations&lt;/h3&gt;
&lt;p&gt;Identify amino acid mutations from the nucleotide mutations and a reference sequence with gene coordinate annotations.
The resulting JSON file contains amino acid mutations indexed by strain or internal node name and by gene name.
To export a FASTA file with the complete amino acid translations for each gene from each node’s sequence, specify the &lt;code&gt;--alignment-output&lt;/code&gt; parameter in the form of &lt;code&gt;results/aligned_aa_%GENE.fasta&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The reference sequence needs to be in Genbank format - see &lt;a href="202609_IAEA_tips_and_tricks.html"&gt;Important tips for your own analysis&lt;/a&gt; for more information on reference sequences.&lt;/p&gt;
&lt;p&gt;Open the Zika tutorial reference sequence &lt;code&gt;config/zika_outgroup.gb&lt;/code&gt; in a text editor.
For translation, the important parts are the &lt;code&gt;source&lt;/code&gt; and &lt;code&gt;CDS&lt;/code&gt; sections that are part of the &lt;code&gt;Features&lt;/code&gt; part of the file:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="o"&gt;[&lt;/span&gt;...&lt;span class="o"&gt;]&lt;/span&gt;
FEATURES&lt;span class="w"&gt;             &lt;/span&gt;Location/Qualifiers
&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="nb"&gt;source&lt;/span&gt;&lt;span class="w"&gt;          &lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;..10769
&lt;span class="w"&gt;                     &lt;/span&gt;/collection_date&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;25-Oct-2013&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;                     &lt;/span&gt;/country&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;French Polynesia&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;                     &lt;/span&gt;/db_xref&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;taxon:64320&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;                     &lt;/span&gt;/host&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Homo sapiens&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;                     &lt;/span&gt;/isolation_source&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;serum&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;                     &lt;/span&gt;/mol_type&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;genomic RNA&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;                     &lt;/span&gt;/organism&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Zika virus&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;                     &lt;/span&gt;/strain&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;PF13/251013-18&amp;quot;&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;...&lt;span class="o"&gt;]&lt;/span&gt;
&lt;span class="w"&gt;     &lt;/span&gt;CDS&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="m"&gt;91&lt;/span&gt;..456
&lt;span class="w"&gt;                     &lt;/span&gt;/product&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;capsid protein&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;                     &lt;/span&gt;/gene&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;CA&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;     &lt;/span&gt;CDS&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="m"&gt;457&lt;/span&gt;..735
&lt;span class="w"&gt;                     &lt;/span&gt;/product&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;propeptide&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;                     &lt;/span&gt;/gene&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;PRO&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;     &lt;/span&gt;CDS&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="m"&gt;736&lt;/span&gt;..960
&lt;span class="w"&gt;                     &lt;/span&gt;/product&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;membrane protein&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;                     &lt;/span&gt;/gene&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;MP&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;     &lt;/span&gt;CDS&lt;span class="w"&gt;             &lt;/span&gt;&lt;span class="m"&gt;961&lt;/span&gt;..2472
&lt;span class="w"&gt;                     &lt;/span&gt;/product&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;envelope protein&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;                     &lt;/span&gt;/gene&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;ENV&amp;quot;&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;...&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code&gt;source&lt;/code&gt; section tells &lt;code&gt;augur&lt;/code&gt; how long the whole genome is.
The &lt;code&gt;CDS&lt;/code&gt; sections describe each gene (using &lt;code&gt;/gene=&lt;/code&gt;) that should be translated by giving its name and its start and end location in the genome.&lt;/p&gt;
&lt;p&gt;In your downloaded file from Genbank, you might notice that it has only one or no &lt;code&gt;CDS&lt;/code&gt; sections, and that instead the sections you would like to translate as genes are described as &lt;code&gt;mat_peptide&lt;/code&gt;, like the below:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;     mat_peptide     91..465
                     /product=&amp;quot;capsid protein&amp;quot;
     mat_peptide     466..735
                     /product=&amp;quot;propeptide&amp;quot;
     mat_peptide     736..960
                     /product=&amp;quot;membrane protein&amp;quot;
     mat_peptide     961..2475
                     /product=&amp;quot;envelope protein&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;In this case, you will have to manually modify this file to work in &lt;code&gt;augur&lt;/code&gt;.
Anything you wish to translate as a gene should be changed from &lt;code&gt;mat_peptide&lt;/code&gt; to &lt;code&gt;CDS&lt;/code&gt; as its section name.
You will also need to add &lt;code&gt;/gene=&lt;/code&gt; and a gene name to the sections you'd like to translate.
If you have one really long &lt;code&gt;CDS&lt;/code&gt; section that covers most of the genome, we'd recommend not including this to translate (don't provide a &lt;code&gt;/gene=&lt;/code&gt;) if you can include smaller genes instead, as such a long polyprotein is not very informative.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;rule&lt;/span&gt; &lt;span class="n"&gt;translate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;tree&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;refine&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tree&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;node_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ancestral&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;node_data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;reference&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;config/zika_outgroup.gb&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;node_data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;results/aa_muts.json&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;shell&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;        augur translate \&lt;/span&gt;
&lt;span class="sd"&gt;            --tree {input.tree} \&lt;/span&gt;
&lt;span class="sd"&gt;            --ancestral-sequences {input.node_data} \&lt;/span&gt;
&lt;span class="sd"&gt;            --reference-sequence {input.reference} \&lt;/span&gt;
&lt;span class="sd"&gt;            --output {output.node_data} \&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h2&gt;Export the Results&lt;/h2&gt;
&lt;p&gt;Finally, collect all node annotations and metadata and export it all in auspice’s JSON format.
This command pulls together the metadata file and all of the output files generated by the previous steps, and combines it into two output files that contain the annotated tree (&lt;code&gt;"auspice/zika_tree.json"&lt;/code&gt;) and associated metadata (&lt;code&gt;"auspice/zika_meta.json"&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;There is one input file below that is not metadata or output from a previous step: the config file (&lt;code&gt;"config/auspice_config.json"&lt;/code&gt;).
This file is very important - it species the page title, maintainer(s), what filters are present, what places should be mapped by, and what the user is able to color the tree by ("color-bys").&lt;/p&gt;
&lt;p&gt;Open up &lt;code&gt;"config/auspice_config.json"&lt;/code&gt; in a text editor.
The &lt;code&gt;title&lt;/code&gt; and &lt;code&gt;maintiner&lt;/code&gt; fields should be easy to spot.
You can modify them if you wish (and should, if you are using your own data!).&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;filters&lt;/code&gt; section specifies what traits will be available for users to filter the data by.
For example, if "country" is a filter, users will be able to only show data from the countries they select.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;color_options&lt;/code&gt; section specifies what users will be allowed to color the data by. You will almost always have the first two sections: &lt;code&gt;"gt"&lt;/code&gt; and &lt;code&gt;"num_date"&lt;/code&gt;, unless you are using trees without sequences or trees that aren't time-resolved.
After that, you can include any trait in your data.
If you have additional traits in your metadata, you will need to add them here to have them show up in auspice! You can copy the entry for &lt;code&gt;"country"&lt;/code&gt; and re-name it to match the appropriate column from your metadata file.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;geo&lt;/code&gt; section informs auspice what traits should be used to draw the samples onto the map. Obviously, they must be location-related, like "country" and "region".
You can use other locations if that's more relevant to your data. We won't cover this right now, but can explain in detail as you come to this with your own data.&lt;/p&gt;
&lt;p&gt;Don't worry about the &lt;code&gt;defaults&lt;/code&gt; section for the moment.&lt;/p&gt;
&lt;p&gt;The resulting tree and metadata JSON files are the inputs to the auspice visualization tool.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;rule&lt;/span&gt; &lt;span class="n"&gt;export&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;tree&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;refine&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;tree&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;metadata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;input_metadata&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;branch_lengths&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;refine&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;node_data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;traits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;traits&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;node_data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;nt_muts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ancestral&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;node_data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;aa_muts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rules&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;translate&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;node_data&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;auspice_config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;config/auspice_config.json&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;auspice_json&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;auspice/zika.json&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;shell&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;        augur export v2 \&lt;/span&gt;
&lt;span class="sd"&gt;            --tree {input.tree} \&lt;/span&gt;
&lt;span class="sd"&gt;            --metadata {input.metadata} \&lt;/span&gt;
&lt;span class="sd"&gt;            --node-data {input.branch_lengths} {input.traits} {input.nt_muts} {input.aa_muts} \&lt;/span&gt;
&lt;span class="sd"&gt;            --auspice-config {input.auspice_config} \&lt;/span&gt;
&lt;span class="sd"&gt;            --output {output.auspice_json}&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;We have now step-by-step reproduced the original &lt;code&gt;Snakefile&lt;/code&gt;, which in addition contains a rule &lt;code&gt;clean&lt;/code&gt;, that simply removes all outputs, and &lt;code&gt;all&lt;/code&gt;, which is a default rule at the beginning of the Snakefile.&lt;/p&gt;
&lt;p&gt;The whole purpose of Snakemake is to run all these rules in the right order and manage all the steps.
To get a glimpse of this, run&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;snakemake --forceall --dag | dot -Tpdf &amp;gt; dag.pdf
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;and open the &lt;code&gt;dag.pdf&lt;/code&gt; depiction of the execution graph.
Here, we have omitted the &lt;code&gt;-s Snakefile&lt;/code&gt; argument, which defaults to &lt;code&gt;Snakefile&lt;/code&gt; when not specified.&lt;/p&gt;
&lt;p&gt;Then type&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;snakemake -j1 clean
snakemake -j1
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;and snakemake will first remove the output of the previous runs and then the default rule &lt;code&gt;all&lt;/code&gt; to execute the entire workflow.&lt;/p&gt;</content><category term="teaching"/><category term="bioinformatics"/><category term="phylogenetics"/></entry><entry><title>Exploring interactive phylogenies with Auspice</title><link href="/202609_IAEA_auspice.html" rel="alternate"/><published>2026-09-29T00:00:00+02:00</published><updated>2026-09-29T00:00:00+02:00</updated><author><name>Emma Hodcroft &amp; Richard Neher</name></author><id>tag:None,2026-09-29:/202609_IAEA_auspice.html</id><summary type="html">&lt;p&gt;
    Nextstrain uses a program called 'auspice' to create the colourful and interactive webpages you probably
    associate with Nextstrain.
    We'll talk more about the details of auspice later, but for the moment, we'll show you how you can explore
    data using auspice, and use it to illustrate some of the concepts …&lt;/p&gt;</summary><content type="html">&lt;p&gt;
    Nextstrain uses a program called 'auspice' to create the colourful and interactive webpages you probably
    associate with Nextstrain.
    We'll talk more about the details of auspice later, but for the moment, we'll show you how you can explore
    data using auspice, and use it to illustrate some of the concepts just covered.
&lt;/p&gt;
&lt;p&gt;
    To do this, we'll look at a small sub-sample of the Zika virus sequences used to create the Zika page on Nextstrain.
    Follow &lt;a href="https://nextstrain.org/community/neherlab/krisp/zika-tutorial"&gt;this link&lt;/a&gt; to take a look at this 'Zika tutorial'. &lt;br&gt;
&lt;/p&gt;

&lt;p&gt;The default view shows three main panels on your screen:&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_panels.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;
    (If you don’t see all three panels at once, try making your browser larger, or scroll down to see them.)&lt;br&gt;&lt;br&gt;
    In the top-left is the phylogeny, with the sequences used in the analysis. Top-right shows a map showing
    where the sequences are from. Finally, at the bottom is a ‘diversity’ panel that shows the full Zika genome,
    its genes, and mutations found in this analysis.&lt;br&gt;&lt;br&gt;
&lt;/p&gt;

&lt;h2&gt;Let’s look more closely at each panel&lt;/h2&gt;
&lt;h3&gt;Phylogeny Panel&lt;/h3&gt;
&lt;p&gt;
    In this dataset, the phylogeny is coloured by ‘country’ (country of sampling), and is displayed as a time-resolved
    tree. If you can’t see a legend explaining the colour of each country, click the small arrow next to ‘country’
    in the top-left of the phylogeny panel.
&lt;/p&gt;
&lt;p&gt;
    You can see the x-axis is in years, and each sequence will be positioned horizontally according to sample date.
    If any undated samples had their dates estimated in the analysis, they’ll be positioned at their estimated date.
&lt;/p&gt;
&lt;p&gt;
    We can get more information about the phylogeny just by mousing over different parts of it. Hold your mouse
    (don’t click) over the large branch located almost in the middle of the panel:
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_mouseover.PNG" /&gt;&lt;/p&gt;

&lt;p&gt;
    We can see that this branch has 23 descendants, and we can also see there was one amino-acid mutation that
    occurred on this branch and passed on to all its descendants (though further mutations at this site may have
    occurred in some descendants). This mutation was in the gene NS5; ‘M114V’ means that at codon position 114,
    a methionine (‘M’) changed to a valine (‘V’). We’ll explore mutations a little more in connection with the
    bottom panel.
&lt;/p&gt;
&lt;p&gt;
    The mouse-over text also shows us the estimated date for this branch, and confidence intervals for that estimate.
    Similarly, the branch is coloured grey-green, and we can see this is because the most likely location estimated
    is Brazil, which is greenish (the grey tinge comes from not being 100% confident in Brazil being the location).
&lt;/p&gt;
&lt;p&gt;
    Mouse over different branches in the tree and see how they differ. Mouse over some tips to show the info box -- can you tell
    which had sample dates, and which were estimated during analysis? If you click on tips, you can bring up more
    information about that sample.
&lt;/p&gt;
&lt;p&gt;
    Let’s take a closer look at part of the tree -- we can click on branches to zoom in. Click on the branch
    leading to the red sequences at the top:
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_phylogeny.PNG" /&gt;&lt;/p&gt;

&lt;p&gt;
    Since this tree is small, zooming in doesn’t change our view much, but in larger trees this can be very useful.
    If you look at the map and diversity panels, you’ll notice they’ve changed to reflect that we’re only looking
    at a sub-sample of the sequences now.
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_zoom.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;
    Click on ‘reset layout’ in the top-right of the Phylogeny panel (circled above) to go back to the full view.
    Click on a few other branches to zoom in, and see how the map and diversity panels adjust.
&lt;/p&gt;

&lt;h3&gt;Control Panel&lt;/h3&gt;
&lt;p&gt;
    The control panel on the left can also change how the phylogeny is displayed. Using the sliders on either
    end of the ‘date range’, note how the panels respond as you change the range of dates that are viewable.
    (Put the sliders back to the ends afterwards, so the whole phylogeny is visible.)
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_date_range.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;
    Next, using the ‘color by’ dropdown menu, try colouring the phylogeny by region, author, and date. We’ll
    come back to ‘genotype’ in the moment.
&lt;/p&gt;
&lt;p&gt;
    You can also change the layout of the phylogeny -- try clicking on ‘Radial’ and ‘Unrooted’ under ‘Tree Options
    - Layout’ and see how the tree changes.
&lt;/p&gt;
&lt;p&gt;
    Finally, click on the ‘Clock’ layout option -- it looks quite different:
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_clock_view.PNG" /&gt;&lt;/p&gt;

&lt;p&gt;
    This view shows us divergence (number of mutations since the common ancestor) on the y-axis and the sampling date on the x-axis.
    In the ideal case, all points roughly fall on a line and the slope of this line is the evolutionary rate, that is the number of substitutions that accumulate per year.
&lt;/p&gt;

&lt;p&gt;
    Go back to ‘rectangular’ view, then click on ‘Divergence’ under ‘Branch Length’. The x-axis on the phylogeny
    is now shown with tips plotted according to their divergence (in substitutions) from the root, rather than
    by time. Mousing over branches and tips now will show the divergence, rather than the date.
&lt;/p&gt;
&lt;/p&gt;
&lt;h3&gt;Map Panel&lt;/h3&gt;

&lt;p&gt;
    The map panel is not as interactive as the phylogeny panel, but does change in to reflect actions like zooming
    or changing the dates on the phylogeny. Using the ‘play’ button in the top-left of the map panel, you can move
    through time on the phylogeny, and see how the virus may have spread geographically. How accurate these
    reconstructions are is dependent on many things, so it’s important to consider if showing such links is appropriate
    for your data. &lt;/p&gt;
&lt;p&gt;
    You can adjust the speed of the animation using the ‘Map Options’ on the control panel. You can also change what level of
    location detail is shown on the map -- try changing the ‘Geographic resolution’ to ‘region’.
&lt;/p&gt;

&lt;h3&gt;Diversity Panel&lt;/h3&gt;
&lt;p&gt;
    The diversity panel is a good way to look at mutations on the phylogeny.
    It allows you to spot regions in the genome that evolve more rapidly than others, for example because a particular region is targeted by the host immune system and changes quickly.
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_diversity.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;
    The top of the panel shows the a measure of how much an amino acid has changed across the tree. Each line
    represents a position that has changed, plotted along the genome to correspond with the two panels below.
&lt;/p&gt;
&lt;p&gt;
    If you’d rather look at the number of times an amino acid has changed, change from ‘entropy’ to ‘events’
    in the top right of the panel -- notice the amino-acids all now have discrete y-values (here, either 1 or
    2 changes). You can also look at nucleotide changes by switching from ‘AA’ to ‘NT’ in the top right of the
    panel. When you switch to ‘NT’, the information that appears when you mouse over the phylogeny will also
    change - it will now show nucleotide mutations for each branch.
&lt;/p&gt;
&lt;p&gt;
    Go back to ‘entropy’ ‘AA’ view. We can see exactly how an amino acid (or nucleotide) has changed across
    the tree by clicking on that location. Click on the site with the highest entropy:
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_diversity_click.PNG" /&gt;&lt;/p&gt;

&lt;p&gt;
    Notice this bar is now highlighted (it’s turned orange). The middle part of the diversity panel also looks
    different - it’s zoomed in so that the gene where this mutation has occurred (NS1) is centered. You can see
    the area that’s zoomed in by looking at the bottom part of the panel - the highlighted grey area shows the
    zoomed area on the middle section. The two arrows on either size of the grey area can be dragged to zoom
    in and out.
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_diversity_zoom.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;
    The phylogeny has changed as well. Click the small arrow next to ‘Genotype at NS1 site 324’ in the top-left
    of the phylogeny panel so that you can see the legend.
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_diversity_phylo.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;
    The phylogeny is now coloured by the amino acid present at position 324 in the NS1 gene. Most of the branches
    and tips have an arginine (‘R’), but some have mutated to tryptophan (‘W’) or glutamine (‘Q’).
&lt;/p&gt;
&lt;p&gt;
    Click on another site and see how the phylogeny changes. Switch to nucleotide ‘NT’ view, and click a
    few more sites -- the phylogeny will now show these mutations. Why are there more nucleotide mutations
    than amino acid mutations?
&lt;/p&gt;
&lt;p&gt;
    Zoom out in the diversity panel by dragging the black triangles to either end of the Zika genome, or by
    clicking outside of the zoomed area, when your cursor forms a cross. Go back to ‘entropy’ ‘AA’ view.
&lt;/p&gt;
&lt;p&gt;
    What if you’re interested in a particular gene or position? On the control panel, go to the ‘Color by’
    drop-down menu and select ‘genotype’.
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_colorByGeno.PNG" /&gt;&lt;/p&gt;

&lt;p&gt;
    In the drop-down menu that appears directly below (which now shows ‘genotype’) select ‘NS5’. The diversity
    panel will zoom in to this gene so you can more clearly see the sites that have changed.
&lt;/p&gt;
&lt;p&gt;
    Mousing over the long branch leading to the top cluster on the phylogeny, we can see there were two mutations
    in NS5, at position 322 and 878:
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_diversity_mouseOver.PNG" /&gt;&lt;/p&gt;

&lt;p&gt;
    We can colour the phylogeny by these locations by typing ‘322’ into the box below where we selected ‘NS5’
    in the control panel:
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_diversity_322.PNG" /&gt;&lt;/p&gt;

&lt;p&gt;
    Now switch to ‘NT’ view in the diversity panel. Mousing over the same branch, you can see there are many more
    nucleotide mutations than amino acid mutations:
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_diversity_mouseOverNT.PNG" /&gt;&lt;/p&gt;

&lt;p&gt;
    For nucleotide mutations, we can colour the phylogeny by multiple positions at once. As before, select ‘genotype’
    under the ‘Color by’ dropdown. This time, leave the second dropdown box set as ‘nucleotide’. Type in the
    following positions, separated by commas but without spaces: 3501,3972,6966. Press enter, and ensure you
    can see the legend at the top of the phylogeny panel:
&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/talk_images/zika_tutorial_multiNT.PNG" /&gt;&lt;/p&gt;

&lt;p&gt;
    The phylogeny is now coloured by the nucleotide present at each of these three positions.
&lt;/p&gt;</content><category term="teaching"/><category term="bioinformatics"/><category term="phylogenetics"/></entry><entry><title>Colormaps and geographical coordinates</title><link href="/202609_IAEA_color_geo.html" rel="alternate"/><published>2026-09-29T00:00:00+02:00</published><updated>2026-09-29T00:00:00+02:00</updated><author><name>Emma Hodcroft &amp; Richard Neher</name></author><id>tag:None,2026-09-29:/202609_IAEA_color_geo.html</id><summary type="html">&lt;h2&gt;Colors&lt;/h2&gt;
&lt;p&gt;Auspice uses a number of default color schemes to color the tree using meta data or values that the augur pipeline computed.
In some cases these defaults are not suitable for particular type of data (countries, host species often fall into this category) and it is advisable to specify …&lt;/p&gt;</summary><content type="html">&lt;h2&gt;Colors&lt;/h2&gt;
&lt;p&gt;Auspice uses a number of default color schemes to color the tree using meta data or values that the augur pipeline computed.
In some cases these defaults are not suitable for particular type of data (countries, host species often fall into this category) and it is advisable to specify your own color schemes.
To specify a mapping between discrete values and colors, you can pass a tab-delimited fill to the augur export step.
This file should contain 3 columns separated by tab characters. The first columns specifies the trait (e.g.~country, host species, ...), the second columns specifies the value of the trait, and the third the associated color in hexadecimal notation.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;country thailand    #511EA8
country vietnam #4928B4
country singapore   #4334BF
country french_polynesia    #4041C7
country american_samoa  #3F50CC
country fiji    #3F5ED0
[...]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The hexadecimal notation starts with a #, followed by two letters coding for red, green, blue values.
If you need advice or inspiration for colors, have a look at &lt;a href="https://colorbrewer2.org/"&gt;colorbrewer&lt;/a&gt;.
In our zika tutorial, this color file will be passed to the augur export command as&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;--colors&lt;span class="w"&gt; &lt;/span&gt;config/colors.tsv
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h2&gt;Latitudes and longitudes&lt;/h2&gt;
&lt;p&gt;To place sequences on a map, auspice needs to know where the locations you specify are on the globe.
These coordinates are provided by augur and augur has preset coordinates for many places.
Some places, however, will inevitably be missing and you need to tell augur the latitudes and longitude of all locations not covered by defaults.
The file for latitude and longitude needs to be a tab-delimited table with four columns:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;country brazil  -10.3333332 -53.1999999
country colombia    2.893108    -73.7845142
country dominican_republic  18.50012    -69.98857
country ecuador -1.3397667  -79.3666964
country french_polynesia    -17.6797    -149.4068
country guatemala   15.6356088  -89.8988086
[...]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The first columns specifies the type of location (country, city, region, ...) corresponding to a field in your meta data.
The second is the actual name of the location, while the third and fourth columns are latitude and longitude.&lt;/p&gt;</content><category term="teaching"/><category term="bioinformatics"/><category term="phylogenetics"/></entry><entry><title>Introduction to Phylogenetic Analysis</title><link href="/202609_IAEA_intro.html" rel="alternate"/><published>2026-09-29T00:00:00+02:00</published><updated>2026-09-29T00:00:00+02:00</updated><author><name>Emma Hodcroft &amp; Richard Neher</name></author><id>tag:None,2026-09-29:/202609_IAEA_intro.html</id><summary type="html">&lt;h2&gt;Genome sequences record pathogen transmission&lt;/h2&gt;
&lt;p&gt;Pathogens spread by through rapid replication in one host followed by transmission to another host and an outbreak can only take off when one infection results in more than one subsequent infections.
As the pathogen replicates and spreads, its genome needs to be replicated many …&lt;/p&gt;</summary><content type="html">&lt;h2&gt;Genome sequences record pathogen transmission&lt;/h2&gt;
&lt;p&gt;Pathogens spread by through rapid replication in one host followed by transmission to another host and an outbreak can only take off when one infection results in more than one subsequent infections.
As the pathogen replicates and spreads, its genome needs to be replicated many times and random mutations -- copying mistakes -- will accumulate in the genome.
Such random mutations can help to track the spread of the pathogen and learn about its transmission routes and dynamics.&lt;/p&gt;
&lt;p&gt;&lt;img alt="transmission_sketch" src="/talk_images/infection_tree_combined.png"&gt;&lt;/p&gt;
&lt;p&gt;The illustration above shows a transmission tree with a subset of cases that were sampled (blue).
In practice, the transmission tree is unknown and typically only rough estimates of the total case counts are available.
Genome sequences, however, will allow us to reconstruct the transmission tree.
In this example, three mutations (little diamonds) are indicated on the tree and these mutations allow us to group samples into clusters of closely related viruses that belong to the same transmission chains.
Real data will contain many more mutations and many more samples that allow detailed reconstructions.&lt;/p&gt;
&lt;h2&gt;Sequence data&lt;/h2&gt;
&lt;p&gt;Sequencing of pathogens from patient samples and the processing of the raw sequence data won't be discussed here.
We start assuming we have genome sequences of the same pathogen sampled from many cases during an outbreak.
These will typically come as text files in &lt;em&gt;fasta&lt;/em&gt; format:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&amp;gt;Sample_A
ACTGCTCGATCGCTACGCTACGCTA...
&amp;gt;Sample_B
CTGCTCCATCGATCGCTANNNN...
&amp;gt;...
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Each line that starts with a '&amp;gt;' sign is interpreted as a line that specifies the name of the sample, followed by the sequence.
The sequence can be broken over several lines.
Sequences obtained in outbreak scenarios will often be incomplete.
Unknown bases are typically denoted by 'N', but other characters like '?' or '.' are also common.&lt;/p&gt;
&lt;p&gt;Fasta files like the above will be the point of departure for the phylogenetic analysis that follow.&lt;/p&gt;
&lt;h2&gt;Alignment&lt;/h2&gt;
&lt;p&gt;Partial genome sequences typically don't all start in exactly the same place and mutations not only change the nucleotide content but can also delete or insert a couple of bases.
As a consequence, the different sequences are not in register and need to be &lt;em&gt;aligned&lt;/em&gt;.
Such alignments are a common task in bioinformatics and many robust programs are available to solve this problem.
The aim is to insert gaps into the sequences, encoded with character '-', that corresponding characters are in the same column.
For the two sequences from above, this would look like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;ACTGCTCGATCGCTACGCTACGCTA...
-CTGCTCCATCGAT-CGCTANNNN...
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;At most positions, the two sequences now agree.
Formally, alignment is trying to insert gaps such that &lt;em&gt;homologous&lt;/em&gt; parts (i.e. parts that descent from a common ancestral sequence) of the sequence are in the same column.
Common programs to perform this task are&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://mafft.cbrc.jp/alignment/software/"&gt;mafft&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.drive5.com/muscle/"&gt;muscle&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.clustal.org/"&gt;clustalW&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The output of an alignment is best viewed (and edited) in specialized multiple alignment viewers.
My favorite one is &lt;a href="https://ormbunkar.se/aliview/"&gt;aliview&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img alt="aliview" src="/talk_images/aliview_screenshot.png"&gt;&lt;/p&gt;
&lt;h2&gt;Phylogenetic trees&lt;/h2&gt;
&lt;p&gt;Once sequences are aligned, we can meaningfully look for differences between them and group them into clusters of similar sequences, which in essence boils down to reconstructing their "family tree" or evolutionary history.&lt;/p&gt;
&lt;p&gt;&lt;img src="/talk_images/toy_alignment_tree.svg" alt="toy_tree" width="800"/&gt;&lt;/p&gt;
&lt;p&gt;One the right, different colored balls indicate differences between the sequences that we assume originated in a mutation event in a common ancestor of all sequences that carry the variant.
In this simple example, it is straightforward to group sequences according to the mutations they carry -- in practice finding the tree that explains your data best is a computationally challenging problem.
But a large number of highly optimized programs are available to solve this task.
We will use one of the following three&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://iqtree.github.io/"&gt;IQ-TREE&lt;/a&gt;: Fast and accurate&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/amkozlov/raxml-ng"&gt;RAxML-NG&lt;/a&gt;: Current gold standard, but slower than IQ-TREE&lt;/li&gt;
&lt;li&gt;&lt;a href="https://morgannprice.github.io/fasttree/"&gt;FastTree&lt;/a&gt;: Fast and rough, but often good enough (depends who you ask)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The most common output format of these programs is called &lt;a href="https://en.wikipedia.org/wiki/Newick_tree_format"&gt;&lt;em&gt;newick&lt;/em&gt; format&lt;/a&gt;.
The branch length of trees estimated by the above programs roughly correspond to the fraction of positions in the sequence that changed along the branch (more precisely the expected number of changes per site).&lt;/p&gt;
&lt;p&gt;Trees can graphed in different ways.
The most important distinction is whether a tree is rooted or not.
In a rooted tree (the left example below) a particular bifurcation is the ancestor of &lt;em&gt;all&lt;/em&gt; sequences in the sample.
Time scaled phylogenies (where branch length corresponds to time) will always be rooted and the root is by necessity the oldest node.
In other applications, it is difficult to single out a root node and a more appropriate layout is and &lt;em&gt;unrooted&lt;/em&gt; layout shown on the right.&lt;/p&gt;
&lt;p&gt;&lt;img src="/talk_images/rooted_vs_unrooted.png" alt="rooted_vs_unrooted" width="800"/&gt;&lt;/p&gt;
&lt;h2&gt;Molecular clock and transmission&lt;/h2&gt;
&lt;p&gt;The number of changes accumulate in a pathogen genome in a year depends on&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the mutation rate&lt;/li&gt;
&lt;li&gt;the duration of one replication cycle&lt;/li&gt;
&lt;li&gt;the size of the genome&lt;/li&gt;
&lt;li&gt;the fraction of mutations that persist and spread&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;While the first three factors are very natural and intuitive, the last one depends on the biology of the pathogen and the environment it is replicating in.
The majority of mutations that change the sequence of important proteins will be detrimental and are quickly removed by natural selection, while other mutations, for example those that help a virus to evade human immunity, will preferentially spread.
In addition, a substantial fraction of mutations (mostly mutations at 3rd codon positions) don't affect pathogen replication much and accumulate freely.
As a consequence, the exact rate at which changes accumulate is not known a priori.
Nevertheless, mutations tend to accumulate at a constant rate and the accumulation can be used as a &lt;em&gt;molecular clock&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;The molecular clock is a relationship between time and the expected number of changes in the sequence.
These substitution rates vary greatly between organisms and within organisms between genomic regions&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;RNA viruses: \(0.0001\ldots 0.01\) substitutions per site and year&lt;/li&gt;
&lt;li&gt;bacteria: \(10^{-8}\ldots 10^{-6}\) substitutions per site and year&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Multiplying the rate per site with the size of the genome, we get the expected number of substitutions per year:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;RNA viruses: Genome size \(\approx 10^{4}\) &amp;rarr; 1-100 substitutions year and genome&lt;/li&gt;
&lt;li&gt;bacteria: Genome size \(5\times 10^{6}\) &amp;rarr; \(0.05 - 5\) substitutions per year and genome&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This suggests that whole genome sequencing often has high enough resolution to distinguish pathogens that were sequences a few month apart -- sometimes even down to a few weeks.&lt;/p&gt;</content><category term="teaching"/><category term="bioinformatics"/><category term="phylogenetics"/></entry><entry><title>Parsing meta data from fasta files</title><link href="/202609_IAEA_meta_from_fasta.html" rel="alternate"/><published>2026-09-29T00:00:00+02:00</published><updated>2026-09-29T00:00:00+02:00</updated><author><name>Emma Hodcroft &amp; Richard Neher</name></author><id>tag:None,2026-09-29:/202609_IAEA_meta_from_fasta.html</id><summary type="html">&lt;p&gt;If you download sequence data from data bases like GISAID or fludb, there often is an option to include meta data such as dates into the header of fasta files.
This might for example look like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&amp;gt;A/Canoas/LACENRS_1793/2015|A|H3N2|07/17/2015||Brazil|Human|KY925125
ATG …&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</summary><content type="html">&lt;p&gt;If you download sequence data from data bases like GISAID or fludb, there often is an option to include meta data such as dates into the header of fasta files.
This might for example look like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&amp;gt;A/Canoas/LACENRS_1793/2015|A|H3N2|07/17/2015||Brazil|Human|KY925125
ATG...
&amp;gt;A/Canoas/LACENRS_773/2015|A|H3N2|05/06/2015||Brazil|Human|KY925599
ATG...
[...]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The fasta header contains information such as influenza lineage, dates (in an unpreferred format), country, etc...
To turn this metadata into a table, augur has a special command called &lt;code&gt;parse&lt;/code&gt;.
A rule to parse the above file could look like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;rule&lt;span class="w"&gt; &lt;/span&gt;parse:
&lt;span class="w"&gt;    &lt;/span&gt;input:
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nv"&gt;sequences&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;data/h3n2_ha.fasta&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;output:
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nv"&gt;sequences&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;results/sequences_h3n2_ha.fasta&amp;quot;&lt;/span&gt;,
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nv"&gt;metadata&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;results/metadata_h3n2_ha.tsv&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;params:
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="nv"&gt;fields&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;strain type subtype date season country host accession&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;shell:
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="s2"&gt;        augur parse \&lt;/span&gt;
&lt;span class="s2"&gt;            --sequences {input.sequences} \&lt;/span&gt;
&lt;span class="s2"&gt;            --fields {params.fields} \&lt;/span&gt;
&lt;span class="s2"&gt;            --output-sequences {output.sequences} \&lt;/span&gt;
&lt;span class="s2"&gt;            --output-metadata {output.metadata} \&lt;/span&gt;
&lt;span class="s2"&gt;            --fix-dates monthfirst&lt;/span&gt;
&lt;span class="s2"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Note the additional argument &lt;code&gt;--fix-dates monthfirst&lt;/code&gt;.
This triggers an attempt to parse these dates and turn them into ISO format assuming that the month preceeds the date in the input data.
Note that this is a brittle process that should be spot-checked.&lt;/p&gt;</content><category term="teaching"/><category term="bioinformatics"/><category term="phylogenetics"/></entry><entry><title>Optional parameters of the refine command</title><link href="/202609_IAEA_refine.html" rel="alternate"/><published>2026-09-29T00:00:00+02:00</published><updated>2026-09-29T00:00:00+02:00</updated><author><name>Emma Hodcroft &amp; Richard Neher</name></author><id>tag:None,2026-09-29:/202609_IAEA_refine.html</id><summary type="html">&lt;h1&gt;Specify the evolutionary rate&lt;/h1&gt;
&lt;p&gt;By default &lt;code&gt;augur&lt;/code&gt; (through &lt;code&gt;treetime&lt;/code&gt;) will estimate the rate of evolution from the data by regressing divergence vs sampling date.
In some scenarios, however, there is insufficient temporal signal to reliably estimate the rate and the analysis will be more robust and reproducible if one fixes …&lt;/p&gt;</summary><content type="html">&lt;h1&gt;Specify the evolutionary rate&lt;/h1&gt;
&lt;p&gt;By default &lt;code&gt;augur&lt;/code&gt; (through &lt;code&gt;treetime&lt;/code&gt;) will estimate the rate of evolution from the data by regressing divergence vs sampling date.
In some scenarios, however, there is insufficient temporal signal to reliably estimate the rate and the analysis will be more robust and reproducible if one fixes this rate explicitly.
This can be done via the flag &lt;code&gt;--clock-rate &amp;lt;value&amp;gt;&lt;/code&gt; where the implied units are substitutions per site and year.
In our zika example, this would look like this&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;rule refine:
&lt;span class="w"&gt; &lt;/span&gt;   input:
&lt;span class="w"&gt; &lt;/span&gt;       tree = rules.tree.output.tree,
&lt;span class="w"&gt; &lt;/span&gt;       alignment = rules.align.output,
&lt;span class="w"&gt; &lt;/span&gt;       metadata = &amp;quot;data/metadata.tsv&amp;quot;
&lt;span class="w"&gt; &lt;/span&gt;   output:
&lt;span class="w"&gt; &lt;/span&gt;       tree = &amp;quot;results/tree.nwk&amp;quot;,
&lt;span class="w"&gt; &lt;/span&gt;       node_data = &amp;quot;results/branch_lengths.json&amp;quot;
&lt;span class="gi"&gt;+    params:&lt;/span&gt;
&lt;span class="gi"&gt;+       clock_rate = 0.0008&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;   shell:
&lt;span class="w"&gt; &lt;/span&gt;       &amp;quot;&amp;quot;&amp;quot;
&lt;span class="w"&gt; &lt;/span&gt;       augur refine \
&lt;span class="w"&gt; &lt;/span&gt;           --tree {input.tree} \
&lt;span class="w"&gt; &lt;/span&gt;           --alignment {input.alignment} \
&lt;span class="w"&gt; &lt;/span&gt;           --metadata {input.metadata} \
&lt;span class="w"&gt; &lt;/span&gt;           --timetree \
&lt;span class="gi"&gt;+           --clock-rate {params.clock_rate} \&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;           --output-tree {output.tree} \
&lt;span class="w"&gt; &lt;/span&gt;           --output-node-data {output.node_data}
&lt;span class="w"&gt; &lt;/span&gt;       &amp;quot;&amp;quot;&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h1&gt;Confidence intervals for divergence times&lt;/h1&gt;
&lt;p&gt;Divergence time estimates are probabilistic and uncertain for multiple reasons, primarily because the accumulation of mutations is a probabilistic process and the rate estimate itself is not precise.
Augur/TreeTime will account for this uncertainty if the refine command is run with the flag &lt;code&gt;--date-confidence&lt;/code&gt; and the standard deviation of the rate estimate is specified.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;rule refine:
&lt;span class="w"&gt; &lt;/span&gt;   input:
&lt;span class="w"&gt; &lt;/span&gt;       tree = rules.tree.output.tree,
&lt;span class="w"&gt; &lt;/span&gt;       alignment = rules.align.output,
&lt;span class="w"&gt; &lt;/span&gt;       metadata = &amp;quot;data/metadata.tsv&amp;quot;
&lt;span class="w"&gt; &lt;/span&gt;   output:
&lt;span class="w"&gt; &lt;/span&gt;       tree = &amp;quot;results/tree.nwk&amp;quot;,
&lt;span class="w"&gt; &lt;/span&gt;       node_data = &amp;quot;results/branch_lengths.json&amp;quot;
&lt;span class="w"&gt; &lt;/span&gt;   params:
&lt;span class="w"&gt; &lt;/span&gt;       clock_rate = 0.0008,
&lt;span class="gi"&gt;+       clock_std_dev = 0.0002&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;   shell:
&lt;span class="w"&gt; &lt;/span&gt;       &amp;quot;&amp;quot;&amp;quot;
&lt;span class="w"&gt; &lt;/span&gt;       augur refine \
&lt;span class="w"&gt; &lt;/span&gt;           --tree {input.tree} \
&lt;span class="w"&gt; &lt;/span&gt;           --alignment {input.alignment} \
&lt;span class="w"&gt; &lt;/span&gt;           --metadata {input.metadata} \
&lt;span class="w"&gt; &lt;/span&gt;           --timetree \
&lt;span class="w"&gt; &lt;/span&gt;           --date-confidence \
&lt;span class="gi"&gt;+            --clock-rate {params.clock_rate} \&lt;/span&gt;
&lt;span class="gi"&gt;+            --clock-std-dev {params.clock_std_dev} \&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;           --output-tree {output.tree} \
&lt;span class="w"&gt; &lt;/span&gt;           --output-node-data {output.node_data}
&lt;span class="w"&gt; &lt;/span&gt;       &amp;quot;&amp;quot;&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;If run with these parameters, augur will save an confidence interval (e.g. &lt;code&gt;[2014.5,2014.7]&lt;/code&gt;) for each node in the tree.&lt;/p&gt;
&lt;p&gt;By default, augur runs TreeTime in a "covariance-aware" mode where the root-to-tip regression accounts for shared ancestry and covariance between terminal nodes.
This, however, is sometimes unstable when the temporal signal is low and can be switch off with the flag &lt;code&gt;--no-covariance&lt;/code&gt;.&lt;/p&gt;
&lt;h1&gt;Specifying the root of the tree&lt;/h1&gt;
&lt;p&gt;By default, augur/TreeTime reroots your input tree to optimize the temporal signal in the data. This is robust when there is robust temporal signal.
In other situations, you might want to specify the root explicitly, specify a rerooting mechanisms, or keep the root of the input tree.
The latter can be achieved by passing the argument &lt;code&gt;--keep-root&lt;/code&gt;.
To specify a particular strain (or the common ancestor of a group of strains), pass the name(s) of the(se) strain(s) like so:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;--root&lt;span class="w"&gt; &lt;/span&gt;strain1&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;strain2&lt;span class="w"&gt; &lt;/span&gt;strain3&lt;span class="w"&gt; &lt;/span&gt;...&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Other available rooting mechanisms are&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;least-squares&lt;/code&gt; (default): minimize squared deviation of the root-to-tip regression&lt;/li&gt;
&lt;li&gt;&lt;code&gt;min-dev&lt;/code&gt;: essentially midpoint rooting minimizing the variance in root-to-tip distance&lt;/li&gt;
&lt;li&gt;&lt;code&gt;oldest&lt;/code&gt;: use the oldest strain as outgroup&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;Polytomy resolution&lt;/h1&gt;
&lt;p&gt;if the data set contains many very similar sequences, their evolutionary relationship some times remains ambiguous resulting in zero-length branches or polytomies (that is internal nodes with more than 2 children).
Augur partially resolves those polytomies if such resolution helps the make the tree fit the temporal structure in the data.
If this is undesired, this can be switched-off using &lt;code&gt;--keep-polytomies&lt;/code&gt;.&lt;/p&gt;</content><category term="teaching"/><category term="bioinformatics"/><category term="phylogenetics"/></entry><entry><title>Important tips for your own analysis</title><link href="/202609_IAEA_tips_and_tricks.html" rel="alternate"/><published>2026-09-29T00:00:00+02:00</published><updated>2026-09-29T00:00:00+02:00</updated><author><name>Emma Hodcroft &amp; Richard Neher</name></author><id>tag:None,2026-09-29:/202609_IAEA_tips_and_tricks.html</id><summary type="html">&lt;h2&gt;Sequence data&lt;/h2&gt;
&lt;p&gt;Your sequence data should&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;consist of homologous sequences that can be aligned unambiguously&lt;/li&gt;
&lt;li&gt;needs to contain sufficient diversity to allow reliable tree reconstruction&lt;/li&gt;
&lt;li&gt;should be of similar length. Mixing short sequences (300bp) with much longer ones (10000bp) often yields unexpected results.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Reference sequence&lt;/h2&gt;
&lt;p&gt;A reference sequence is needed …&lt;/p&gt;</summary><content type="html">&lt;h2&gt;Sequence data&lt;/h2&gt;
&lt;p&gt;Your sequence data should&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;consist of homologous sequences that can be aligned unambiguously&lt;/li&gt;
&lt;li&gt;needs to contain sufficient diversity to allow reliable tree reconstruction&lt;/li&gt;
&lt;li&gt;should be of similar length. Mixing short sequences (300bp) with much longer ones (10000bp) often yields unexpected results.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Reference sequence&lt;/h2&gt;
&lt;p&gt;A reference sequence is needed to obtain consistent alignment coordinates and sequence numbering. In addition, a reference sequence provides the annotation, typically stored in genbank format. Augur will not use all annotated features listed in a genbank file but only those marked in a specific way:&lt;/p&gt;
&lt;p&gt;To ensure augur interprets an annotation as a protein feature, it should be of type &lt;code&gt;CDS&lt;/code&gt; and contain a tag &lt;code&gt;gene&lt;/code&gt; or &lt;code&gt;locus_tag&lt;/code&gt;, for example:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;     CDS             961..2472
                     /product=&amp;quot;envelope protein&amp;quot;
                     /gene=&amp;quot;ENV&amp;quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;You might have to manually adjust the genbank file to make that work.&lt;/p&gt;
&lt;h2&gt;Metadata&lt;/h2&gt;
&lt;p&gt;Metadata would typically include collection dates, geographic location, symptoms of patients, host characteristics, etc.
But for Nextstrain to be able to parse these and visualize them, they need to be formated consistently.
An example meta data file is shown here:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;strain&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="n"&gt;accession&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="n"&gt;date&lt;/span&gt;&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;region&lt;/span&gt;
&lt;span class="mh"&gt;1&lt;/span&gt;&lt;span class="n"&gt;_0087_PF&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="n"&gt;KX447509&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="mh"&gt;2013&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mh"&gt;12&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;XX&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;oceania&lt;/span&gt;
&lt;span class="mh"&gt;1&lt;/span&gt;&lt;span class="n"&gt;_0181_PF&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="n"&gt;KX447512&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="mh"&gt;2013&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mh"&gt;12&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;XX&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;oceania&lt;/span&gt;
&lt;span class="mh"&gt;1&lt;/span&gt;&lt;span class="n"&gt;_0199_PF&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="n"&gt;KX447519&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="mh"&gt;2013&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mh"&gt;11&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;XX&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;oceania&lt;/span&gt;
&lt;span class="n"&gt;BRA&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mh"&gt;2016&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;KY785433&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="mh"&gt;2016&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mh"&gt;04&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mh"&gt;08&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;south_america&lt;/span&gt;
&lt;span class="n"&gt;BRA&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mh"&gt;2015&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;KY558989&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="mh"&gt;2015&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mh"&gt;02&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mh"&gt;23&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;south_america&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;There needs to be at least one column named &lt;code&gt;strain&lt;/code&gt; or &lt;code&gt;name&lt;/code&gt;.
These need to match the identifiers of your sequences (in the Fasta file) &lt;em&gt;exactly&lt;/em&gt; and must not contain characters such as spaces, or &lt;code&gt;()[]{}|#&amp;gt;&amp;lt;&lt;/code&gt;.
Dates should be formated according as &lt;code&gt;YYYY-MM-DD&lt;/code&gt;.
You can specify unknown dates or month by replacing the respected values by &lt;code&gt;XX&lt;/code&gt; (ex: &lt;code&gt;2013-01-XX&lt;/code&gt; or &lt;code&gt;2011-XX-XX&lt;/code&gt;) and completely unknown dates can be shown with &lt;code&gt;20XX-XX-XX&lt;/code&gt; (which does not restrict the sequence to being in the 21st century - they could be earlier).&lt;/p&gt;
&lt;p&gt;Because Excel will automatically change the date formatting, we recommend &lt;strong&gt;not&lt;/strong&gt; opening or preparing your meta data file in Excel.
If the meta data is already in Excel, or you decide to prepare it in Excel, we recommend using another program to correct the dates afterwards (and don't open it in Excel again!).&lt;/p&gt;
&lt;h2&gt;Rooting of the tree&lt;/h2&gt;
&lt;p&gt;Augur (through treetime) will attempt to find a root for the inferred tree that is most compatible with the collection dates of your sequences.
This doesn't always work, in particular if sampling through time is very uneven and there is little temporal signal in the data (e.g. your sample consists of several distant clades).
In this case, you might need to provide an explicit outgroup to root the tree.&lt;/p&gt;
&lt;h2&gt;Auspice config file&lt;/h2&gt;
&lt;p&gt;The current version of auspice requires a file that specifies some aspects of how your analysis is visualized.
The following shows an example json file with ADDED comments (following //). These NEED to be REMOVED for it to be a valid json and work!&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="c1"&gt;// This will appear as the title of your analysis&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;title&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Real-time tracking of Zika virus evolution&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="c1"&gt;// the following will appear in the menu from which you choose colorings&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="c1"&gt;// to be understood by auspice, they need to follow as specific formating&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="c1"&gt;// and the options `gt` and `num_date` should be left as is.&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="c1"&gt;// you can add additional color options corresponding to columns in your metadata&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;color_options&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;gt&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;menuItem&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;genotype&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;legendTitle&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Genotype&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;type&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;discrete&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;key&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;genotype&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;num_date&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;menuItem&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;date&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;legendTitle&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Sampling date&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;type&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;continuous&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;key&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;num_date&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;authors&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;key&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;authors&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;legendTitle&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Authors&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;menuItem&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;authors&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;type&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;discrete&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;country&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;region&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="c1"&gt;// specifies how strains are aggregated on the map&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;geo&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;country&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;region&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="c1"&gt;// which panels to show. additional options are `entropy` and `frequency`&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;panels&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:[&lt;/span&gt;
&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;tree&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;     &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;map&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;defaults&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;mapTriplicate&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="c1"&gt;// put your name and contact details...&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;maintainer&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;Trevor Bedford&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;http://bedford.io/team/trevor-bedford/&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="c1"&gt;// discrete fields by which you can filter the data. corresponds to&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="c1"&gt;// columns in meta data&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nt"&gt;&amp;quot;filters&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;country&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;region&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;authors&amp;quot;&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</content><category term="teaching"/><category term="bioinformatics"/><category term="phylogenetics"/></entry><entry><title>The nextstrain toolchain</title><link href="/202609_IAEA_toolchain.html" rel="alternate"/><published>2026-09-29T00:00:00+02:00</published><updated>2026-09-29T00:00:00+02:00</updated><author><name>Emma Hodcroft &amp; Richard Neher</name></author><id>tag:None,2026-09-29:/202609_IAEA_toolchain.html</id><summary type="html">&lt;p&gt;Nextstrain consists of two components&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/nextstrain/augur"&gt;augur&lt;/a&gt;: a modular phylogenetic analysis workflow&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nextstrain/auspice"&gt;auspice&lt;/a&gt;: an interactive web-app for visualization&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Augur is composed of a series of modules and different workflows will use different parts of the pipeline.
A selection of augur modules and different possible entry points are illustrated below.&lt;/p&gt;
&lt;p&gt;&lt;img alt="pipeline" src="/talk_images/nextstrain_pipeline.png"&gt;&lt;/p&gt;
&lt;p&gt;The canonical …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Nextstrain consists of two components&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/nextstrain/augur"&gt;augur&lt;/a&gt;: a modular phylogenetic analysis workflow&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nextstrain/auspice"&gt;auspice&lt;/a&gt;: an interactive web-app for visualization&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Augur is composed of a series of modules and different workflows will use different parts of the pipeline.
A selection of augur modules and different possible entry points are illustrated below.&lt;/p&gt;
&lt;p&gt;&lt;img alt="pipeline" src="/talk_images/nextstrain_pipeline.png"&gt;&lt;/p&gt;
&lt;p&gt;The canonical pipeline would ingest sequences and metadata such as dates and sampling locations, filter the data, align the sequences, infer a tree, and export the results in a format that can be visualized by auspice.
For a step by step explanation on how your analysis is built up using augur steps, see this &lt;a href="/teaching_notes/201909_Emma_augur_steps.pdf"&gt;slide deck&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In some cases, you might start with a manually curated alignment and want to start the workflow at the tree building step.
Or you already have a tree inferred. In this case, you only need to feed you tree through the &lt;code&gt;refine&lt;/code&gt; and &lt;code&gt;export&lt;/code&gt; steps.
The &lt;code&gt;refine&lt;/code&gt; step is necessary to ensure that cross-referencing between tree nodes and meta data works as expected.
For a full list of augur modules, see the &lt;a href="https://docs.nextstrain.org/projects/augur/en/stable/usage/cli/cli.html"&gt;augur documentation&lt;/a&gt;.
Augur includes for example modules for phylogeographic analysis and ancestral sequences reconstruction.&lt;/p&gt;
&lt;p&gt;The different augur modules can be strung together by workflow managers like snakemake and nextflow.
The nextstrain team uses &lt;a href="https://snakemake.readthedocs.io/en/stable/"&gt;snakemake&lt;/a&gt; to run and manage the different analysis that you see on &lt;a href="https://nextstrain.org"&gt;nextstrain.org&lt;/a&gt;.&lt;/p&gt;</content><category term="teaching"/><category term="bioinformatics"/><category term="phylogenetics"/></entry><entry><title>PoL I: Quantitative problems, dimensions, and units</title><link href="/PoLI_2026_week01_UnitsAndLaws.html" rel="alternate"/><published>2026-09-17T00:00:00+02:00</published><updated>2026-09-17T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2026-09-17:/PoLI_2026_week01_UnitsAndLaws.html</id><summary type="html">&lt;section class="slide frame"&gt;
    &lt;h3&gt;Physics of Life I&lt;/h3&gt;
    &lt;div class="cols"&gt;
        &lt;div class="center"&gt;
            &lt;h4&gt;Part I&lt;/h4&gt;
            &lt;div class="smalltext"&gt;Weeks 1&amp;ndash;7&lt;/div&gt;
            &lt;img class="portrait" src="/images/Richard_Neher.jpg" alt="Richard Neher"&gt;
            &lt;div class="bodytext"&gt;Richard Neher&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="center"&gt;
            &lt;h4&gt;Part II&lt;/h4&gt;
            &lt;div class="smalltext"&gt;Weeks 8&amp;ndash;14&lt;/div&gt;
            &lt;img class="portrait" src="/images/Sebastian_hiller.jpg" alt="Sebastian Hiller"&gt;
            &lt;div class="bodytext"&gt;Sebastian Hiller&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;h3&gt;Part I &amp;ndash; weeks 1&amp;ndash;7&lt;/h3&gt;
    &lt;div class="bodytext"&gt;&lt;b&gt;How general physical principles govern the organization of biological processes&lt;/b&gt;&lt;/div&gt;
    &lt;div class="spacer"&gt;&lt;/div&gt;
    &lt;ul class="bodytext"&gt;
        &lt;li&gt;&lt;b&gt;Scales and units:&lt;/b&gt; sizes, energies, concentrations, orders of magnitude&lt;/li&gt;
        &lt;li&gt;&lt;b&gt;Dynamical systems:&lt;/b&gt; differential equations to describe biology&lt;/li&gt;
        &lt;li&gt;&lt;b&gt;Gene …&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/section&gt;</summary><content type="html">&lt;section class="slide frame"&gt;
    &lt;h3&gt;Physics of Life I&lt;/h3&gt;
    &lt;div class="cols"&gt;
        &lt;div class="center"&gt;
            &lt;h4&gt;Part I&lt;/h4&gt;
            &lt;div class="smalltext"&gt;Weeks 1&amp;ndash;7&lt;/div&gt;
            &lt;img class="portrait" src="/images/Richard_Neher.jpg" alt="Richard Neher"&gt;
            &lt;div class="bodytext"&gt;Richard Neher&lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="center"&gt;
            &lt;h4&gt;Part II&lt;/h4&gt;
            &lt;div class="smalltext"&gt;Weeks 8&amp;ndash;14&lt;/div&gt;
            &lt;img class="portrait" src="/images/Sebastian_hiller.jpg" alt="Sebastian Hiller"&gt;
            &lt;div class="bodytext"&gt;Sebastian Hiller&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;h3&gt;Part I &amp;ndash; weeks 1&amp;ndash;7&lt;/h3&gt;
    &lt;div class="bodytext"&gt;&lt;b&gt;How general physical principles govern the organization of biological processes&lt;/b&gt;&lt;/div&gt;
    &lt;div class="spacer"&gt;&lt;/div&gt;
    &lt;ul class="bodytext"&gt;
        &lt;li&gt;&lt;b&gt;Scales and units:&lt;/b&gt; sizes, energies, concentrations, orders of magnitude&lt;/li&gt;
        &lt;li&gt;&lt;b&gt;Dynamical systems:&lt;/b&gt; differential equations to describe biology&lt;/li&gt;
        &lt;li&gt;&lt;b&gt;Gene regulation:&lt;/b&gt; transcription factor binding and genetic circuits&lt;/li&gt;
        &lt;li&gt;&lt;b&gt;Random walks and diffusion:&lt;/b&gt; fluxes, Stokes-Einstein relation&lt;/li&gt;
        &lt;li&gt;&lt;b&gt;Polymers:&lt;/b&gt; DNA and the cytoskeleton&lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;h3&gt;Part II &amp;ndash; weeks 8&amp;ndash;14&lt;/h3&gt;
    &lt;div class="bodytext"&gt;&lt;b&gt;Physical concepts to describe molecular processes of life quantitatively&lt;/b&gt;&lt;/div&gt;
    &lt;div class="spacer"&gt;&lt;/div&gt;
    &lt;ul class="bodytext"&gt;
        &lt;li&gt;&lt;b&gt;Classical thermodynamics:&lt;/b&gt; states, kinetic gas theory, entropy&lt;/li&gt;
        &lt;li&gt;&lt;b&gt;Statistical thermodynamics:&lt;/b&gt; Maxwell-Boltzmann and Gibbs distributions&lt;/li&gt;
        &lt;li&gt;&lt;b&gt;Thermodynamic potentials:&lt;/b&gt; the four laws of thermodynamics&lt;/li&gt;
        &lt;li&gt;&lt;b&gt;Reaction kinetics, enzymes, cooperativity&lt;/b&gt;&lt;/li&gt;
        &lt;li&gt;&lt;b&gt;Stability of biomolecules:&lt;/b&gt; protein stability and denaturation&lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;b&gt;Physics is very effective in simple and controlled systems&lt;/b&gt;
    &lt;ul class="bodytext"&gt;
        &lt;li&gt;Laws of physics connect fundamental particles and forces.&lt;/li&gt;
        &lt;li&gt;These laws explain properties of simple systems and homogeneous matter&lt;/li&gt;
        &lt;li&gt;Good understanding of systems at equilibrium or isolated systems&lt;/li&gt;
        &lt;li&gt;These laws also govern complex systems, but the connection between the laws and the behavior is hard to decipher&lt;/li&gt;
    &lt;/ul&gt;
    &lt;div class="bigspacer"&gt;&lt;/div&gt;
    &lt;b&gt;Biological complexity&lt;/b&gt;
    &lt;ul class="bodytext"&gt;
        &lt;li&gt;Biological systems evolved -- layering complexity&lt;/li&gt;
        &lt;li&gt;Cells consist of thousands of molecular species, interacting in complicated ways&lt;/li&gt;
        &lt;li&gt;Biology is always in flux.&lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;h3&gt;Physics vs Biology&lt;/h3&gt;
    &lt;div class="cols"&gt;
        &lt;div&gt;
            &lt;img src="https://upload.wikimedia.org/wikipedia/commons/1/1f/Two-body_Jacobi_coordinates.JPG" alt="Jacobi coordinates of a two-body system"&gt;
            &lt;span class="ref"&gt;&lt;a href="https://commons.wikimedia.org/wiki/File:Two-body_Jacobi_coordinates.JPG"&gt;Wikipedia, by Brews Oshare&lt;/a&gt;&lt;/span&gt;
            &lt;ul class="smalltext"&gt;
                &lt;li&gt;Equations that govern the dynamics&lt;/li&gt;
                &lt;li&gt;Exact predictions of future configuration&lt;/li&gt;
                &lt;li&gt;Good understanding what is relevant, and what can be ignored.&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class="fragment"&gt;
            &lt;img src="/talk_images/981px-Signal_transduction_pathways.svg.png" alt="Map of cellular signal transduction pathways"&gt;
            &lt;span class="ref"&gt;&lt;a href="https://commons.wikimedia.org/w/index.php?curid=12081090"&gt;Wikipedia, by cybertory&lt;/a&gt;&lt;/span&gt;
            &lt;ul class="smalltext"&gt;
                &lt;li&gt;Long, but incomplete, list of components&lt;/li&gt;
                &lt;li&gt;Only qualitative description of interactions&lt;/li&gt;
                &lt;li&gt;Perturbations are often binary&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h2&gt;From description to quantitative understanding!&lt;/h2&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;h3&gt;Quantitative questions&lt;/h3&gt;
    &lt;ul class="bodytext"&gt;
        &lt;li&gt;How many human cells are in your body?&lt;/li&gt;
        &lt;li&gt;How many other cells?&lt;/li&gt;
        &lt;li&gt;How many ribosomes/signaling molecules are in a cell?&lt;/li&gt;
        &lt;li&gt;How do genes regulate each other?&lt;/li&gt;
        &lt;li&gt;How rapidly does a protein move from one end of the cell to another?&lt;/li&gt;
        &lt;li&gt;What fraction of transcription factors is bound to DNA?&lt;/li&gt;
        &lt;li&gt;What are the speed limits for biochemical reactions?&lt;/li&gt;
        &lt;li&gt;What are the maximal efficiencies of molecular machines? &lt;/li&gt;
        &lt;li&gt;How are polarities and developmental gradients set up?&lt;/li&gt;
    &lt;/ul&gt;
    &lt;ul class="bodytext fragment"&gt;
        &lt;li&gt;&lt;b&gt;Not:&lt;/b&gt; Gene X causes Y&lt;/li&gt;
        &lt;li&gt;&lt;b&gt;But:&lt;/b&gt; 20% faster diffusion of gene X extends the gradient by $20\mu m$&lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;div class="cols"&gt;
        &lt;div&gt;
            &lt;h5&gt;&lt;b&gt;Dimensions&lt;/b&gt;&lt;/h5&gt;
            &lt;ul class="bodytext"&gt;
                &lt;li&gt;length&lt;/li&gt;
                &lt;li&gt;weight&lt;/li&gt;
                &lt;li&gt;energy&lt;/li&gt;
                &lt;li&gt;current&lt;/li&gt;
                &lt;li&gt;force&lt;/li&gt;
                &lt;li&gt;temperature&lt;/li&gt;
                &lt;li&gt;....&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class="fragment"&gt;
            &lt;h5&gt;&lt;b&gt;Units:&lt;/b&gt;&lt;/h5&gt;
            &lt;ul class="bodytext"&gt;
                &lt;li&gt;length: meters, miles, feet, Angstrom&lt;/li&gt;
                &lt;li&gt;weight: grams, stones,&lt;/li&gt;
                &lt;li&gt;energy: Joules, calories&lt;/li&gt;
                &lt;li&gt;current: ampere&lt;/li&gt;
                &lt;li&gt;force: Newton&lt;/li&gt;
                &lt;li&gt;temperature: Celsius, Kelvin&lt;/li&gt;
                &lt;li&gt;....&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="hugespacer"&gt;&lt;/div&gt;
    &lt;ul class="bodytext fragment"&gt;
        &lt;li&gt;Dimensions describe the nature of a quantity&lt;/li&gt;
        &lt;li&gt;Units are conventions to measure them&lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;h3&gt;Comparing quantities&lt;/h3&gt;
    &lt;div class="narrow"&gt;
        &lt;ul class="bodytext"&gt;
            &lt;li&gt;Only quantities of the same dimension can be compared: length $X$ is greater than length $Y$ etc. There is no sense is which length $X$ can be greater than weight $Y$.&lt;/li&gt;
            &lt;li class="fragment"&gt;Units are conventions -- there is nothing fundamental about them.&lt;/li&gt;
            &lt;li class="fragment"&gt;Some unit systems are more convenient than others.&lt;/li&gt;
            &lt;li class="fragment"&gt;Everyday units are often inconvenient for biological processes.&lt;/li&gt;
            &lt;li class="fragment"&gt;We can pick units to make things as simple as possible.&lt;/li&gt;
            &lt;li class="fragment"&gt;Laws of physics connect quantities of different dimensions.&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;h3&gt;High level aims of this course&lt;/h3&gt;
    &lt;div class="hugespacer"&gt;&lt;/div&gt;
    &lt;div class="narrow"&gt;
        &lt;ul class="bodytext"&gt;
            &lt;li&gt;Understand how physics constrains biological processes.&lt;/li&gt;
            &lt;li&gt;Draw connections between processes at the molecular, organelle, cellular, and organism level.&lt;/li&gt;
            &lt;li&gt;Enable you to reason quantitatively about biological problems.&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="slide frame"&gt;
    &lt;h3&gt;On AI use in this course&lt;/h3&gt;
    &lt;div class="hugespacer"&gt;&lt;/div&gt;
    &lt;div class="bodytext center"&gt;&lt;b&gt;You are here to acquire new skills &amp;ndash; and no AI can acquire it for you.&lt;/b&gt;&lt;/div&gt;
    &lt;div class="hugespacer"&gt;&lt;/div&gt;
    &lt;div class="bodytext center fragment"&gt;&lt;b&gt;I don't have perfect guidance, but this is my recommendation:&lt;/b&gt;&lt;/div&gt;
    &lt;div class="hugespacer"&gt;&lt;/div&gt;
    &lt;div class="cols"&gt;
        &lt;div class="fragment"&gt;
            &lt;h4&gt;Don't use AI as a shortcut&lt;/h4&gt;
            &lt;ul class="smalltext"&gt;
                &lt;li&gt;Everything in this course is well known &amp;ndash; an LLM solves every exercise instantly.&lt;/li&gt;
                &lt;li&gt;An AI solution of an exercise might earn you the points, but you have missed a learning opportunity.&lt;/li&gt;
                &lt;li&gt;Getting stuck, and getting unstuck, is where the learning happens.&lt;/li&gt;
                &lt;li&gt;You want to be the one in the driver seat -- that takes work!&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
        &lt;div class="fragment"&gt;
            &lt;h4&gt;AI as a tutor&lt;/h4&gt;
            &lt;ul class="smalltext"&gt;
                &lt;li&gt;Ask for a hint, not for the solution.&lt;/li&gt;
                &lt;li&gt;Ask it to explain the same idea in three different ways.&lt;/li&gt;
                &lt;li&gt;Solve it yourself first, then ask it to find your error.&lt;/li&gt;
                &lt;li&gt;When programming, outline the algorithm first for yourself. Make sure to keep it simple.&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;img src="/images/ai_homework.png" alt="AI homework, D. Strömberg et al., preprint June 2026 via the economist" height=800px&gt;
&lt;/section&gt;</content><category term="teaching"/></entry><entry><title>Epistasis and the changing fitness landscapes of SARS-CoV-2</title><link href="/sesta_epistasis_2026.html" rel="alternate"/><published>2026-09-17T00:00:00+02:00</published><updated>2026-09-17T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2026-09-17:/sesta_epistasis_2026.html</id><summary type="html">&lt;p&gt;Since its emergence in late 2019, millions of SARS-CoV-2 genomes have been generated as part of global efforts to monitor the evolution and spread of the virus. This unprecedented volume of data provides a unique opportunity to study viral evolution at unparalleled resolution. In particular, individual genomic sites can be …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Since its emergence in late 2019, millions of SARS-CoV-2 genomes have been generated as part of global efforts to monitor the evolution and spread of the virus. This unprecedented volume of data provides a unique opportunity to study viral evolution at unparalleled resolution. In particular, individual genomic sites can be observed to have mutated independently thousands of times. These mutation counts have been used to estimate site-specific mutation rates and fitness effects for most mutations across the viral genome. Here, we use these data to investigate how the landscape of mutational fitness costs has changed over the course of the pandemic. SARS-CoV-2 evolution over the past 6 years has been characterized by the emergence of distinct variants separated by long branches corresponding to evolutionary saltations involving up to 50 mutations. We compare inferred fitness landscapes of the Spike protein across these variants and find that shifts in the estimated effects of non-synonymous mutations are linked to genetic differences between them. Sites with altered fitness costs are enriched near positions where the genetic backgrounds differ. To explain the observed changes, we introduce a model with pairwise epistatic interactions between mutations and residues that differ between variants. This model is able to explain about half of the variance in the shifts of fitness effects and suggests that each mismatch between variants substantially alters mutation effects at typically 1 to 3 additional positions.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Near real-time data on the human neutralizing antibody landscape to influenza virus as of early 2026 to inform vaccine-strain selection</title><link href="/kikawa_near_2026.html" rel="alternate"/><published>2026-07-26T00:00:00+02:00</published><updated>2026-07-26T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2026-07-26:/kikawa_near_2026.html</id><summary type="html">&lt;p&gt;Twice each year, a decision is made on whether to update the strains included in the seasonal influenza vaccine to better match the most recent circulating viral strains. To characterize the antigenic properties of current seasonal influenza A strains to inform the upcoming decision about which strains to include in …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Twice each year, a decision is made on whether to update the strains included in the seasonal influenza vaccine to better match the most recent circulating viral strains. To characterize the antigenic properties of current seasonal influenza A strains to inform the upcoming decision about which strains to include in the 2026–7 Northern Hemisphere vaccine, here we perform high-throughput sequencing–based neutralization assays using a library of 57 H3N2 and 34 H1N1 influenza hemagglutinins reflecting the circulating diversity of strains in late 2025 to early 2026. We assay this library against 302 human sera collected in late 2025. The resulting data set encompasses 27 409 titres and provides a near real-time portrait of the human neutralizing antibody landscape against influenza virus. We find that many human sera have lower titres against the K subclade of H3N2 and the D.3.1.1 subclade of H1N1; these subclades have recently become dominant among their respective subtypes. Our measurements also reveal variability in titres to different subvariants within the K subclade of H3N2, with titres especially low to subclade K strains with additional mutations in antigenic regions D and E. We make all our data and accompanying visualizations publicly available to enable their use in vaccine-strain selection and analyses of influenza evolution and immunity.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Nextstrain automates real-time phylogenetic analysis of open data for endemic and emerging pathogens</title><link href="/andrews_nextstrain_2026.html" rel="alternate"/><published>2026-07-17T00:00:00+02:00</published><updated>2026-07-17T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2026-07-17:/andrews_nextstrain_2026.html</id><summary type="html">&lt;p&gt;Motivation Genome sequencing provides an exceptional window into the evolutionary and epidemiological dynamics of endemic and emerging pathogens, and thus allows for better, more targeted, public health interventions. Online genomic surveillance platforms can provide near real-time insight into these dynamics.
Results Nextstrain provides continually updated real-time genomic surveillance for 21 …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Motivation Genome sequencing provides an exceptional window into the evolutionary and epidemiological dynamics of endemic and emerging pathogens, and thus allows for better, more targeted, public health interventions. Online genomic surveillance platforms can provide near real-time insight into these dynamics.
Results Nextstrain provides continually updated real-time genomic surveillance for 21 viruses and the bacterial pathogen Mycobacterium tuberculosis, with most analyses relying solely on open sequence data. Each pathogen includes steps to fetch and curate open data, classify sequences using established nomenclature systems, perform phylogenetic analyses, and share the results publicly. These analyses are automated, with most running daily to provide continually updated snapshots of pathogen evolution.
Availability and Implementation All source code is available at https://github.com/nextstrain. Phylogenetic results can be visualized and downloaded at https://nextstrain.org/pathogens, and open sequence data and curated metadata are available at https://nextstrain.org/pathogens/files.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Physics of Life</title><link href="/2026_PoLI_overview.html" rel="alternate"/><published>2026-06-16T00:00:00+02:00</published><updated>2026-06-16T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2026-06-16:/2026_PoLI_overview.html</id><summary type="html">&lt;p&gt;In this course, we will explore how general physical principles govern the organization of biological processes.
We will for example discuss how matter moves around in cells, how cells process information, how genomes are organized, or how biology exploits self-organization principles.&lt;/p&gt;
&lt;p&gt;During the course, we will use frequently use mathematical …&lt;/p&gt;</summary><content type="html">&lt;p&gt;In this course, we will explore how general physical principles govern the organization of biological processes.
We will for example discuss how matter moves around in cells, how cells process information, how genomes are organized, or how biology exploits self-organization principles.&lt;/p&gt;
&lt;p&gt;During the course, we will use frequently use mathematical derivations and concepts from physics that should be familiar to you from high school or the introductory lectures in semesters 1 and 2.
Furthermore, many exercises will involve programming, and you will use the computer to solve problems.
The preferred programming language for this is Python, but you can use whatever programming language you like (for example R or Matlab).
The University of Basel now provides a &lt;a href="https://jupyterhub-edu.scicore.unibas.ch/"&gt;Jupyter Hub&lt;/a&gt; for students that you can use when you don't have a suitable computer.&lt;/p&gt;
&lt;p&gt;In addition, I will suggest material by third parties (for example the excellent videos on mathematics by &lt;a href="https://3Blue1Brown.com"&gt;3Blue1Brown&lt;/a&gt;) to give additional background and revise necessary mathematical techniques.&lt;/p&gt;
&lt;h3&gt;Syllabus&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;The relevant scales and dimensions of biophysics&lt;/li&gt;
&lt;li&gt;Laws of physics and differential equations&lt;/li&gt;
&lt;li&gt;Growth processes&lt;/li&gt;
&lt;li&gt;Models of gene regulation&lt;/li&gt;
&lt;li&gt;Random walks, diffusion and Stokes-Einstein relation&lt;/li&gt;
&lt;li&gt;Elements of polymer physics&lt;/li&gt;
&lt;li&gt;Chromatin organization&lt;/li&gt;
&lt;li&gt;Membrane-less organelles and liquid-liquid phase transitions&lt;/li&gt;
&lt;li&gt;Discrimination and fidelity.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Literature&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://routledgetextbooks.com/textbooks/9780815344506/default.php"&gt;The physical biology of the Cell&lt;/a&gt; by Rob Phillips et al&lt;/li&gt;
&lt;li&gt;&lt;a href="http://book.bionumbers.org/"&gt;Cell biology by the numbers&lt;/a&gt; by Rob Phillips and Ron Milo&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Course materials&lt;/h3&gt;
&lt;p&gt;The course materials are provided on GitHub in &lt;a href="https://github.com/neherlab/PoL1-course-materials"&gt;PoL-1-course-materials&lt;/a&gt; repository. Exercise sheets and exercise submissions will be handled via ADAM.
Some introductory slides can be found &lt;a href="/PoLI_2026_week01_UnitsAndLaws.html"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Older recorded lectures&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="/videos/Arrays%20in%20NumPy.mp4"&gt;Arrays in NumPy.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Auto-activation%20and%20repression.mp4"&gt;Auto-activation and repression.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Boundary%20and%20initial%20conditions.mp4"&gt;Boundary and initial conditions.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Diffusion%20Equation.mp4"&gt;Diffusion Equation.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Diffusive%20Transport%20and%20Fick's%20law.mp4"&gt;Diffusive Transport and Fick's law.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Elements%20of%20dynamical%20systems.mp4"&gt;Elements of dynamical systems.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Extra_%20SIR%20models.mp4"&gt;Extra_ SIR models.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Genome%20sizes.mp4"&gt;Genome sizes.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Introduction%20into%20gene%20regulation.mp4"&gt;Introduction into gene regulation.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Introduction%20to%20polymer%20physics.mp4"&gt;Introduction to polymer physics.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Logistic%20growth.mp4"&gt;Logistic growth.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Morphogen%20gradients%20--%20regulation%20in%20space.mp4"&gt;Morphogen gradients -- regulation in space.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/P%20Granules%20and%20their%20liquid%20properties.mp4"&gt;P Granules and their liquid properties.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Phase%20Transitions%20in%20Biology.mp4"&gt;Phase Transitions in Biology.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Properties%20of%20membrane-less%20organelles.mp4"&gt;Properties of membrane-less organelles.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Pulling%20on%20polymers.mp4"&gt;Pulling on polymers.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Random%20Walks.mp4"&gt;Random Walks.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Relevant%20length%20scales%20in%20biological%20systems.mp4"&gt;Relevant length scales in biological systems.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Relevant%20volumes%20and%20concentrations.mp4"&gt;Relevant volumes and concentrations.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Simple%20growth%20processes.mp4"&gt;Simple growth processes.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Simple%20models%20of%20demixing.mp4"&gt;Simple models of demixing.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Simple%20models%20of%20gene%20regulation.mp4"&gt;Simple models of gene regulation.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Stiff%20polymers.mp4"&gt;Stiff polymers.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Stochastic%20effects%20and%20low%20copy%20numbers.mp4"&gt;Stochastic effects and low copy numbers.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Stokes-Einstein%20relation.mp4"&gt;Stokes-Einstein relation.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/The%20dynamic%20cytoskeleton.mp4"&gt;The dynamic cytoskeleton.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Typical%20energy%20scales%20and%20forces.mp4"&gt;Typical energy scales and forces.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Units,%20dimensions,%20and%20laws%20of%20physics.mp4"&gt;Units, dimensions, and laws of physics.mp4&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><category term="teaching"/><category term="biophysics"/></entry><entry><title>"Evolution of gene repertoire and genome structure in bacteria"</title><link href="/202603_APS.html" rel="alternate"/><published>2026-03-17T00:00:00+01:00</published><updated>2026-03-17T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2026-03-17:/202603_APS.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1mFv4MxBrtVarpBE6dmAtFwvUHfrht7Oiqig7tfS-ouM/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>"Host-pathogen coevolution in the age of big data"</title><link href="/202602_WiKo.html" rel="alternate"/><published>2026-02-26T00:00:00+01:00</published><updated>2026-02-26T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2026-02-26:/202602_WiKo.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1TvNxcg9ZdWyG9mVAw5dPmN5w2kTY547vRyeUp448vKk/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Evolution and viral properties of the SARS-CoV-2 BA.3.2 subvariant</title><link href="/jule_evolution_2026.html" rel="alternate"/><published>2026-02-20T00:00:00+01:00</published><updated>2026-02-20T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2026-02-20:/jule_evolution_2026.html</id><summary type="html">&lt;p&gt;The SARS-CoV-2 Omicron subvariant BA.3.2 descends from BA.3. It emerged two years after BA.3 ceased to circulate and differs by 39 spike mutations from BA.3. Similar to BA.2.86, which circulated at low levels before giving rise to JN.1, BA.3.2 shows …&lt;/p&gt;</summary><content type="html">&lt;p&gt;The SARS-CoV-2 Omicron subvariant BA.3.2 descends from BA.3. It emerged two years after BA.3 ceased to circulate and differs by 39 spike mutations from BA.3. Similar to BA.2.86, which circulated at low levels before giving rise to JN.1, BA.3.2 shows a low but persistent circulation globally. Here, we characterize the phylogenetic origin, infection in cell culture, and neutralization of BA.3.2 using live virus and blood plasma samples collected in South Africa at different stages of the Covid-19 pandemic. Like the Omicron BA.2.86 subvariant, we find that BA.3.2 likely emerged in Southern Africa. We also find that an 871 bp deletion removed ORF7 and ORF8. In H1299-ACE2 cells, BA.3.2 has lower cytotoxicity measured as plaque area compared to ancestral SARS-CoV-2 but similar to the co-circulating LP.8.1 Omicron subvariant with which it also shares similar replication and infection focus size. BA.3.2 and LP.8.1 exhibit complete escape from neutralization from pre-Omicron collected plasma samples, have low levels of neutralization by plasma collected in 2024, and higher neutralization by plasma collected in 2025, with BA.3.2 showing moderately lower neutralization than LP.8.1. The emergence of long branch subvariants like BA.3.2 without intermediates likely indicates that unmonitored persistent infections continue to drive large evolutionary shifts in this virus.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Nomenclature for Tracking of Genetic Variation of Seasonal Influenza Viruses</title><link href="/neher_nomenclature_2026.html" rel="alternate"/><published>2026-01-21T00:00:00+01:00</published><updated>2026-01-21T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2026-01-21:/neher_nomenclature_2026.html</id><summary type="html">&lt;p&gt;Background Genomic surveillance of human seasonal influenza viruses is an essential component of the Global Influenza Surveillance and Response system (GISRS) and informs the recommendations for the seasonal influenza vaccine composition. Phylogenetic analysis of viral genome sequences is used to identify groups of viruses sharing potential antigenic change, and computational …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Background Genomic surveillance of human seasonal influenza viruses is an essential component of the Global Influenza Surveillance and Response system (GISRS) and informs the recommendations for the seasonal influenza vaccine composition. Phylogenetic analysis of viral genome sequences is used to identify groups of viruses sharing potential antigenic change, and computational models are used to predict which viral variants are likely to circulate at high levels in upcoming seasons. To facilitate discussion and reporting of genetic diversity, as well as to communicate antigen recommendations, up-to-date and sufficiently granular definitions of genetic clades are important. Methods We implemented a nomenclature system for Segments 4 (haemagglutinin) and 6 (neuraminidase) of human Influenza A(H3N2), A(H1N1)pdm09, and Influenza B that dynamically adapts to the diversity of circulating viruses. New subclades were proposed by a clade suggestion algorithm based on criteria including (i) the number of sequences in the group, (ii) the distance from the direct parent clade, and (iii) the weighted number of amino acid substitutions on the branch leading to the common ancestor of the subclade. Results Algorithmic clade proposals were reviewed and assigned a systematic hierarchical label consisting of a leading letter, followed by numbers (e.g., G.1.3). Names are kept short by aliasing that is collapsing prefixes into unique letters. Subclade definitions are shared openly to promote adoption and tool development. Nextclade is supporting this new nomenclature, and it is being used routinely by the GISRS network. Conclusions With increasing genomic surveillance, the need for up-to-date classification schemes is growing and we hope that the current dynamic proposal will adapt to growing data volumes and aid in simplifying the interpretation of these data.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Molecular epidemiology of respiratory syncytial virus in Switzerland 2019–2024 from nucleic acid testing and whole-genome sequencing</title><link href="/kuznetsov_molecular_2025.html" rel="alternate"/><published>2025-12-29T00:00:00+01:00</published><updated>2025-12-29T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-12-29:/kuznetsov_molecular_2025.html</id><summary type="html">&lt;p&gt;BACKGROUND AND AIMS: Respiratory syncytial virus (RSV) infection is one of the leading causes of hospitalisation in infants, the elderly and immunocompromised patients, with significant morbidity and mortality rates. Despite its global impact, epidemiological surveillance of RSV in Switzerland has historically been limited compared to the USA and European countries …&lt;/p&gt;</summary><content type="html">&lt;p&gt;BACKGROUND AND AIMS: Respiratory syncytial virus (RSV) infection is one of the leading causes of hospitalisation in infants, the elderly and immunocompromised patients, with significant morbidity and mortality rates. Despite its global impact, epidemiological surveillance of RSV in Switzerland has historically been limited compared to the USA and European countries. A significant surge in RSV activity and hospitalisations after the COVID-19 pandemic, along with the introduction of new monoclonal antibodies and RSV vaccines, has led to an increased interest in the molecular epidemiology of RSV. To ensure continued efficacy of the new preventive options, monitoring of the genetic diversity of circulating RSV strains, their evolutionary dynamics and the potential emergence of resistance mutations is of central importance. The present study aimed to characterise the genetic diversity and seasonal trends of RSV dynamics in Switzerland from 2019 to 2024, mainly over the last two post-pandemic winter seasons (2022/23 and 2023/24).
METHODS: A total of 48,897 respiratory clinical specimens from 30,782 patients with respiratory tract infections were tested for RSV at a tertiary care centre in Northwestern Switzerland between July 2019 and June 2024. RSV activity over these seasons was investigated. Amplicon-based whole-genome sequencing was performed on 182 selected samples, with 125 high-quality consensus genomes and phylogenies reconstructed. Lineage distribution and seasonal subtype prevalence were compared to European data.
RESULTS: RSV activity was absent during the 2020/21 pandemic season, but surged with an off-season peak in summer 2021. RSV B predominated during the 2022/23 season, while a shift to RSV A occurred in the 2023/24 winter season, which is in line with neighbouring European countries. Lineage subtype distribution showed high concordance with circulating European strains. RSV A exhibited greater diversity (mean pairwise Hamming distance 0.015, SD 0.006) than RSV B (mean 0.006, 0.003), with all current strains falling within G protein duplication clades A.D.1, 2, 3 and 5 for RSV A, and B.D.E.1 and B.D.4.1.1 for RSV B.
CONCLUSION: By contributing 125 newly assembled RSV genome sequences, we have significantly increased the number of publicly available whole-genome sequences from Switzerland. Our study provides a genomic surveillance of RSV in Switzerland, analysing seasonal patterns, alternating subtype dominance, and consistency with broader European trends. A comprehensive understanding of the molecular epidemiology of RSV enables healthcare providers and public health authorities to monitor the effectiveness of current vaccines and monoclonal antibodies, associate lineages and serotypes with disease severity, implement timely interventions and detect emerging variants, ultimately reducing the burden of RSV-related illnesses.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>"Evolution of genome content and structure in bacteria "</title><link href="/202511_Tuebingen.html" rel="alternate"/><published>2025-11-18T00:00:00+01:00</published><updated>2025-11-18T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-11-18:/202511_Tuebingen.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1aZTUHn-oyWw4Du1tKE4fBol3vSFgrjWK4aexEo7woWo/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Marie Becker</title><link href="/marie_becker.html" rel="alternate"/><published>2025-11-14T00:00:00+01:00</published><updated>2025-11-14T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-11-14:/marie_becker.html</id><content type="html"/><category term="team"/></entry><entry><title>Corona, Grippe, HIV… Warum sind RNA-Viren so wandlungsfähig?</title><link href="/202511_TecNight.html" rel="alternate"/><published>2025-11-06T00:00:00+01:00</published><updated>2025-11-06T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-11-06:/202511_TecNight.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1PKTC6_rkHZf6NpP4v8oWwY2p0a5FiwLiQVVVHyKVZzc/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk_outreach"/></entry><entry><title>Physics of Life</title><link href="/2025_PoLI_overview.html" rel="alternate"/><published>2025-11-01T00:00:00+01:00</published><updated>2025-11-01T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-11-01:/2025_PoLI_overview.html</id><summary type="html">&lt;p&gt;In this course, we will explore how general physical principles govern the organization of biological processes.
We will for example discuss how matter moves around in cells, how cells process information, how genomes are organized, or how biology exploits self-organization principles.&lt;/p&gt;
&lt;p&gt;During the course, we will use frequently use mathematical …&lt;/p&gt;</summary><content type="html">&lt;p&gt;In this course, we will explore how general physical principles govern the organization of biological processes.
We will for example discuss how matter moves around in cells, how cells process information, how genomes are organized, or how biology exploits self-organization principles.&lt;/p&gt;
&lt;p&gt;During the course, we will use frequently use mathematical derivations and concepts from physics that should be familiar to you from high school or the introductory lectures in semesters 1 and 2.
Furthermore, many exercises will involve programming, and you will use the computer to solve problems.
The preferred programming language for this is Python, but you can use whatever programming language you like (for example R or Matlab).
The University of Basel now provides a &lt;a href="https://jupyterhub-edu.scicore.unibas.ch/"&gt;Jupyter Hub&lt;/a&gt; for students that you can use when you don't have a suitable computer.&lt;/p&gt;
&lt;p&gt;In addition, I will suggest material by third parties (for example the excellent videos on mathematics by &lt;a href="https://3Blue1Brown.com"&gt;3Blue1Brown&lt;/a&gt;) to give additional background and revise necessary mathematical techniques.&lt;/p&gt;
&lt;h3&gt;Syllabus&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;The relevant scales and dimensions of biophysics&lt;/li&gt;
&lt;li&gt;Laws of physics and differential equations&lt;/li&gt;
&lt;li&gt;Growth processes&lt;/li&gt;
&lt;li&gt;Models of gene regulation&lt;/li&gt;
&lt;li&gt;Random walks, diffusion and Stokes-Einstein relation&lt;/li&gt;
&lt;li&gt;Elements of polymer physics&lt;/li&gt;
&lt;li&gt;Chromatin organization&lt;/li&gt;
&lt;li&gt;Membrane-less organelles and liquid-liquid phase transitions&lt;/li&gt;
&lt;li&gt;Discrimination and fidelity.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Literature&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://routledgetextbooks.com/textbooks/9780815344506/default.php"&gt;The physical biology of the Cell&lt;/a&gt; by Rob Phillips et al&lt;/li&gt;
&lt;li&gt;&lt;a href="http://book.bionumbers.org/"&gt;Cell biology by the numbers&lt;/a&gt; by Rob Phillips and Ron Milo&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Course materials&lt;/h3&gt;
&lt;p&gt;The course materials are provided on GitHub in &lt;a href="https://github.com/neherlab/PoL1-course-materials"&gt;PoL-1-course-materials&lt;/a&gt; repository. Exercise sheets and exercise submissions will be handled via ADAM.&lt;/p&gt;
&lt;h3&gt;Older recorded lectures&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="/videos/Arrays%20in%20NumPy.mp4"&gt;Arrays in NumPy.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Auto-activation%20and%20repression.mp4"&gt;Auto-activation and repression.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Boundary%20and%20initial%20conditions.mp4"&gt;Boundary and initial conditions.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Diffusion%20Equation.mp4"&gt;Diffusion Equation.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Diffusive%20Transport%20and%20Fick's%20law.mp4"&gt;Diffusive Transport and Fick's law.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Elements%20of%20dynamical%20systems.mp4"&gt;Elements of dynamical systems.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Extra_%20SIR%20models.mp4"&gt;Extra_ SIR models.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Genome%20sizes.mp4"&gt;Genome sizes.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Introduction%20into%20gene%20regulation.mp4"&gt;Introduction into gene regulation.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Introduction%20to%20polymer%20physics.mp4"&gt;Introduction to polymer physics.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Logistic%20growth.mp4"&gt;Logistic growth.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Morphogen%20gradients%20--%20regulation%20in%20space.mp4"&gt;Morphogen gradients -- regulation in space.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/P%20Granules%20and%20their%20liquid%20properties.mp4"&gt;P Granules and their liquid properties.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Phase%20Transitions%20in%20Biology.mp4"&gt;Phase Transitions in Biology.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Properties%20of%20membrane-less%20organelles.mp4"&gt;Properties of membrane-less organelles.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Pulling%20on%20polymers.mp4"&gt;Pulling on polymers.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Random%20Walks.mp4"&gt;Random Walks.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Relevant%20length%20scales%20in%20biological%20systems.mp4"&gt;Relevant length scales in biological systems.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Relevant%20volumes%20and%20concentrations.mp4"&gt;Relevant volumes and concentrations.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Simple%20growth%20processes.mp4"&gt;Simple growth processes.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Simple%20models%20of%20demixing.mp4"&gt;Simple models of demixing.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Simple%20models%20of%20gene%20regulation.mp4"&gt;Simple models of gene regulation.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Stiff%20polymers.mp4"&gt;Stiff polymers.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Stochastic%20effects%20and%20low%20copy%20numbers.mp4"&gt;Stochastic effects and low copy numbers.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Stokes-Einstein%20relation.mp4"&gt;Stokes-Einstein relation.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/The%20dynamic%20cytoskeleton.mp4"&gt;The dynamic cytoskeleton.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Typical%20energy%20scales%20and%20forces.mp4"&gt;Typical energy scales and forces.mp4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/videos/Units,%20dimensions,%20and%20laws%20of%20physics.mp4"&gt;Units, dimensions, and laws of physics.mp4&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><category term="teaching"/><category term="biophysics"/></entry><entry><title>Synteny and linkage decay in bacteriophage pangenomes</title><link href="/fendley_synteny_2025.html" rel="alternate"/><published>2025-08-13T00:00:00+02:00</published><updated>2025-08-13T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-08-13:/fendley_synteny_2025.html</id><summary type="html">&lt;p&gt;Bacteriophages are rich in genetic diversity, due to frequent horizontal transfer and recombination. This makes traditional microbial phylogenetic analyses, often based on the assumption of vertical inheritance, not suitable for interpreting this diversity. Here, inspired by recent work on bacterial pangenomes, we investigate the evolution of a collection of 3425 …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Bacteriophages are rich in genetic diversity, due to frequent horizontal transfer and recombination. This makes traditional microbial phylogenetic analyses, often based on the assumption of vertical inheritance, not suitable for interpreting this diversity. Here, inspired by recent work on bacterial pangenomes, we investigate the evolution of a collection of 3425 actinobacteriophage genomes. We find that synteny is strongly conserved: core genes have a well-defined order, and most accessory genes are localized in a few locations along the core genome backbone. Within the core genome alignment, linkage disequilibrium decays rapidly with distance in some groups, while phylogenetic structure in other groups causes long-range linkage. Our quantitative characterizations extend across many groups of phages and indicate widespread homologous recombination restricted by strong gene order conservation.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Development of avian influenza A(H5) virus datasets for Nextclade enables rapid and accurate clade assignment</title><link href="/ort_development_2025.html" rel="alternate"/><published>2025-08-04T00:00:00+02:00</published><updated>2025-08-04T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-08-04:/ort_development_2025.html</id><summary type="html">&lt;p&gt;The 2022 panzootic of highly pathogenic avian influenza (HPAI) A(H5) viruses has led to unprecedented transmission to multiple mammalian species. Avian influenza A viruses of the H5 subtype circulate globally among birds and are classified into distinct clades based on their haemagglutinin (HA) genetic sequences. Thus, the ability to …&lt;/p&gt;</summary><content type="html">&lt;p&gt;The 2022 panzootic of highly pathogenic avian influenza (HPAI) A(H5) viruses has led to unprecedented transmission to multiple mammalian species. Avian influenza A viruses of the H5 subtype circulate globally among birds and are classified into distinct clades based on their haemagglutinin (HA) genetic sequences. Thus, the ability to accurately and rapidly assign clades to newly sequenced isolates is key to surveillance and outbreak response. Cocirculation of endemic, low-pathogenicity avian influenza (LPAI) A(H5) lineages in North American and European wild birds necessitates the ability to rapidly and accurately distinguish between infections arising from these lineages and epizootic HPAI A(H5) viruses. However, currently available clade assignment tools are limited and often require command-line expertise, hindering their utility for public health surveillance labs. To address this gap, we have developed datasets to enable A(H5) clade assignments with Nextclade, a drag-and-drop tool originally developed for severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) genetic clade classification. Using annotated reference datasets for all historical A(H5) clades, clade 2.3.2.1 descendants, and clade 2.3.4.4 descendants provided by the Food and Agriculture Organization/World Health Organization/World Organisation for Animal Health H5 Working Group, we identified clade-defining mutations for every established clade to enable tree-based clade assignment. We then created three Nextclade datasets which can be used to assign clades to A(H5) HA sequences and call mutations relative to reference strains through a drag-and-drop interface. Nextclade assignments were benchmarked with 19 834 unique sequences not in the reference set using a prereleased version of LABEL, a well-validated and widely used command-line software. Prospective assignment of new sequences with Nextclade and LABEL produced very well-matched assignments (match rates of 97.8\% and 99.1\% for the 2.3.2.1 and 2.3.4.4 datasets, respectively). The all-clades dataset also performed well (94.8\% match rate) and correctly distinguished between all HPAI and LPAI strains. This tool additionally allows for the identification of polybasic cleavage site sequences and potential N-linked glycosylation sites. These datasets therefore provide an alternative, rapid method to accurately assign clades to new A(H5) HA sequences, with the benefit of an easy-to-use browser interface.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>A systematic nomenclature for mpox viruses causing outbreaks with sustained human-to-human transmission</title><link href="/ruis_systematic_2025.html" rel="alternate"/><published>2025-07-27T00:00:00+02:00</published><updated>2025-07-27T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-07-27:/ruis_systematic_2025.html</id><content type="html">&lt;p&gt;We propose a new nomenclature for mpox virus lineages with sustained human-to-human transmission to improve tracking, communication and public health response.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>"Eco-Evolutionary Dynamics Limits the Predictability of Evolution"</title><link href="/202507_GRC.html" rel="alternate"/><published>2025-07-09T00:00:00+02:00</published><updated>2025-07-09T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-07-09:/202507_GRC.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/15j3Y3ntbRNskQ_3wNHc0CovqyHx3MMg9CyURZ3kBwWI/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>HIV – Versteckspiel mit dem wandelbaren Virus</title><link href="/202506_Einblicke.html" rel="alternate"/><published>2025-06-17T00:00:00+02:00</published><updated>2025-06-17T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-06-17:/202506_Einblicke.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1jBx6k1_ChOhLYdvC0jVbyiJYXKuVLZgBXzEBknhZwzw/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk_outreach"/></entry><entry><title>The mutation rate of SARS-CoV-2 is highly variable between sites and is influenced by sequence context, genomic region, and RNA structure</title><link href="/haddox_mutation_2025.html" rel="alternate"/><published>2025-06-12T00:00:00+02:00</published><updated>2025-06-12T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-06-12:/haddox_mutation_2025.html</id><summary type="html">&lt;p&gt;RNA viruses like SARS-CoV-2 have high mutation rates, which contribute to their rapid evolution. Mutation rates depend on mutation type and can vary between sites in a virus's genome. Understanding this variation can shed light on the mutational processes at play, and is crucial for quantitative modeling of viral evolution …&lt;/p&gt;</summary><content type="html">&lt;p&gt;RNA viruses like SARS-CoV-2 have high mutation rates, which contribute to their rapid evolution. Mutation rates depend on mutation type and can vary between sites in a virus's genome. Understanding this variation can shed light on the mutational processes at play, and is crucial for quantitative modeling of viral evolution. Using millions of SARS-CoV-2 full-genome sequences, we estimate rates of synonymous mutations for each mutation type and examine how much these rates vary between sites. We find a surprisingly high level of variability. A substantial fraction of this variability can be explained by local sequence context, genomic region, and RNA secondary structure. We estimate fitness effects of each mutation based on the number of times it actually occurs versus the number of times it is expected to occur based on a model of the above features. We identify small regions of the genome where synonymous or noncoding mutations occur much less often than expected, indicative of strong purifying selection on the RNA sequence independent of protein sequence. Overall, this work expands our basic understanding of SARS-CoV-2’s evolution by characterizing the virus’s mutation process at the level of individual sites and uncovering several striking mutational patterns that arise from unknown mechanisms.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Evolutionary origin and functional diversification of plant GBF1-type ARF guanine-nucleotide exchange factors</title><link href="/singh_evolutionary_2025.html" rel="alternate"/><published>2025-06-06T00:00:00+02:00</published><updated>2025-06-06T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-06-06:/singh_evolutionary_2025.html</id><summary type="html">&lt;p&gt;Large ARF GTPase-activating guanine-nucleotide exchange factors (ARF-GEFs) are essential regulators of membrane trafficking across the eukaryotes. Although conserved, the GBF1-type ARF-GEFs underwent plant-specific evolution. Of the 3 paralogs in Arabidopsis thaliana, AtGNOM-LIKE1 (AtGNL1) performs the GBF1 task of retrograde Golgi-ER traffic whereas AtGNOM mediates polar recycling from endosomes to the …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Large ARF GTPase-activating guanine-nucleotide exchange factors (ARF-GEFs) are essential regulators of membrane trafficking across the eukaryotes. Although conserved, the GBF1-type ARF-GEFs underwent plant-specific evolution. Of the 3 paralogs in Arabidopsis thaliana, AtGNOM-LIKE1 (AtGNL1) performs the GBF1 task of retrograde Golgi-ER traffic whereas AtGNOM mediates polar recycling from endosomes to the basal plasma membrane. AtGNL2 is specific to pollen and is functionally equivalent to AtGNOM. To clarify their evolutionary origin and functional diversification in the plant lineage, we established a phylogenetic tree and ortho-synteny groups (OSGs), which enabled identification of AtGNOM and AtGNL1 orthologs. In addition, somatic paralogs from several species were functionally analysed in transgenic Arabidopsis plants and tested for GNOM-specific DCB-DCB domain interaction in yeast two-hybrid assays. Our results support the following scenario. The ancient plant-specific GBF1-type ARF-GEF was functionally equivalent to AtGNOM and mediated both polar recycling and secretory trafficking. GNL2 only arose in the early flowering plants and then evolved independently. Genome duplication in the basal eudicots – but neither in monocots nor in magnoliids – gave rise to the AtGNL1 ortholog, distinguished by its unique OSG. The AtGNL1 ortholog lost the ability of DCB-DCB interaction and was free to evolve independently, eventually acquiring AtGNL1 function in the rosid clade of core eudicots. In eudicot evolution, the AtGNOM ortholog underwent repeated transposition to different OSGs whereas the AtGNL1 ortholog was recurrently lost but eventually positively selected. This evolutionary process uncoupled polar recycling required for gravitropic response or lateral root initiation from secretory trafficking required for growth.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Lost in the woods: shifting habitats can lead phylogeography astray</title><link href="/neher_lost_2025.html" rel="alternate"/><published>2025-05-22T00:00:00+02:00</published><updated>2025-05-22T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-05-22:/neher_lost_2025.html</id><summary type="html">&lt;p&gt;Continuous phylogeographic inference is a popular method to estimate parameters of the dispersal process and to reconstruct the spatial location of ancestors of extant populations from samples viral of genome sequences. However, these models typically ignore that replication and population growth are tightly coupled to spatial location: populations expand in …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Continuous phylogeographic inference is a popular method to estimate parameters of the dispersal process and to reconstruct the spatial location of ancestors of extant populations from samples viral of genome sequences. However, these models typically ignore that replication and population growth are tightly coupled to spatial location: populations expand in areas with abundant susceptible hosts and contract in regions with limited resources. Here, I first investigate the sampling consistency of popular summary statistics of dispersal and show that estimators of ‘lineage velocities’ are ill-defined. I then use simulations to investigate how local density regulation or shifting habitats perturb phylogeographic inference in continuous space and show that these can result in biassed and overconfident estimates of ancestral locations and dispersal parameters. These, sometimes dramatic, distortions depend in complicated ways on the past dynamics of habitats and underlying population dynamics and dispersal processes. Consequently, the validity of continuous phylogeographic inferences is hard to assess and confidence can be much lower than suggested by the inferred posterior distributions, in particular when involving poorly sampled locations or extrapolations far into the past.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>"Mutation, purifying selection, and adaptive evolution of SARS-CoV-2"</title><link href="/202505_ViBio.html" rel="alternate"/><published>2025-05-15T00:00:00+02:00</published><updated>2025-05-15T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-05-15:/202505_ViBio.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1DYRsNV35dUxJBHjn9OlHLBw5kSvDmsf_VTWSQtVpMC0/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Automated Bacteriophage Evolution Studies with the Aionostat</title><link href="/druelle_automated_2025.html" rel="alternate"/><published>2025-04-21T00:00:00+02:00</published><updated>2025-04-21T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-04-21:/druelle_automated_2025.html</id><summary type="html">&lt;p&gt;Bacteriophages, the viruses that infect bacteria, are the most abundant and diverse biological entities on our planet. They play a critical role in shaping ecosystems and are increasingly recognized for their potential in treating bacterial infections. Yet, our comprehension of their biology and evolutionary dynamics is limited, largely because research …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Bacteriophages, the viruses that infect bacteria, are the most abundant and diverse biological entities on our planet. They play a critical role in shaping ecosystems and are increasingly recognized for their potential in treating bacterial infections. Yet, our comprehension of their biology and evolutionary dynamics is limited, largely because research has concentrated on a select few well-characterized phages or relies on broad metagenomic studies with limited follow-up analysis of individual phages. This knowledge gap hinders our capacity to exploit their therapeutic and ecological possibilities – and while some studies have attempted to bridge it, such efforts typically require a lot of manual labor, highlighting the need for high-throughput, reproducible methods for in-depth study of phage evolution.
To address this gap, we introduce the Aionostat, a novel automated continuous culture device designed to facilitate bacteriophage directed evolution experiments at scale. The Aionostat’s potential is showcased through two example experiments. In the first, phages from the BASEL collection rapidly adapted to a challenging E. coli strain, acquiring mutations and deletions that improved their infectivity. In the second experiment, we evolved a mixture of these phages on the same E.coli strain, leading to the emergence of recombinant phages with increased fitness. By automating these experiments, the Aionostat enables faster, more reproducible studies of phage evolution that would be impractical to perform by hand, thereby opening new avenues for investigating viral dynamics, engineering phage therapies, and studying evolutionary principles in broader biological contexts.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Estimating Re and overdispersion in secondary cases from the size of identical sequence clusters of SARS-CoV-2</title><link href="/hodcroft_estimating_2025.html" rel="alternate"/><published>2025-04-15T00:00:00+02:00</published><updated>2025-04-15T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-04-15:/hodcroft_estimating_2025.html</id><summary type="html">&lt;p&gt;The wealth of genomic data that was generated during the COVID-19 pandemic provides an exceptional opportunity to obtain information on the transmission of SARS-CoV-2. Specifically, there is great interest to better understand how the effective reproduction number Re and the overdispersion of secondary cases, which can be quantified by the …&lt;/p&gt;</summary><content type="html">&lt;p&gt;The wealth of genomic data that was generated during the COVID-19 pandemic provides an exceptional opportunity to obtain information on the transmission of SARS-CoV-2. Specifically, there is great interest to better understand how the effective reproduction number Re and the overdispersion of secondary cases, which can be quantified by the negative binomial dispersion parameter k, changed over time and across regions and viral variants. The aim of our study was to develop a Bayesian framework to infer Re and k from viral sequence data. First, we developed a mathematical model for the distribution of the size of identical sequence clusters, in which we integrated viral transmission, the mutation rate of the virus, and incomplete case-detection. Second, we implemented this model within a Bayesian inference framework, allowing the estimation of Re and k from genomic data only. We validated this model in a simulation study. Third, we identified clusters of identical sequences in all SARS-CoV-2 sequences in 2021 from Switzerland, Denmark, and Germany that were available on GISAID. We obtained monthly estimates of the posterior distribution of Re and k, with the resulting Re estimates slightly lower than estimates obtained by other methods, and k comparable with previous results. We found comparatively higher estimates of k in Denmark which suggests less opportunities for superspreading and more controlled transmission compared to the other countries in 2021. Our model included an estimation of the case detection and sampling probability, but the estimates obtained had large uncertainty, reflecting the difficulty of estimating these parameters simultaneously. Our study presents a novel method to infer information on the transmission of infectious diseases and its heterogeneity using genomic data. With increasing availability of sequences of pathogens in the future, we expect that our method has the potential to provide new insights into the transmission and the overdispersion in secondary cases of other pathogens.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>"Mutation, purifying selection, and adaptive evolution of SARS-CoV-2"</title><link href="/202503_Harrogate.html" rel="alternate"/><published>2025-03-24T00:00:00+01:00</published><updated>2025-03-24T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-03-24:/202503_Harrogate.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1eLyDkhNB0BmGwib3Dc3x-pI6tsTjDM7UH36Auw-bafw/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Greta Brenna</title><link href="/greta-brenna.html" rel="alternate"/><published>2025-02-03T00:00:00+01:00</published><updated>2025-02-03T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-02-03:/greta-brenna.html</id><content type="html"/><category term="team"/></entry><entry><title>Quantifying the evolutionary dynamics of structure and content in closely-related E. coli genomes</title><link href="/molari_quantifying_2025.html" rel="alternate"/><published>2025-01-03T00:00:00+01:00</published><updated>2025-01-03T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2025-01-03:/molari_quantifying_2025.html</id><summary type="html">&lt;p&gt;Bacterial genomes primarily diversify via gain, loss, and rearrangement of genetic material in their flexible accessory genome. Yet the dynamics of accessory genome evolution are very poorly understood, in contrast to the core genome where diversification is readily described by mutations and homologous recombination. Here, we tackle this problem for …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Bacterial genomes primarily diversify via gain, loss, and rearrangement of genetic material in their flexible accessory genome. Yet the dynamics of accessory genome evolution are very poorly understood, in contrast to the core genome where diversification is readily described by mutations and homologous recombination. Here, we tackle this problem for the case of very closely related genomes. We comprehensively describe genome evolution within n=222 genomes of E. coli ST131, which likely shared a common ancestor around one hundred years ago. After removing putative recombinant diversity, the total length of the phylogeny is 6000 core genome substitutions. Within this diversity, we find 22 modifications to core genome synteny and estimate around 2000 structural changes within the accessory genome, i.e. one structural change for every 3 core genome substitutions. 63\% of loci with structural diversity could be resolved into individual gain and loss events with ten-fold more gains than losses, demonstrating a dominance of gains due to insertion sequences and prophage integration. Our results suggest the majority of synteny changes and insertions in our dataset are likely deleterious and only persist for a short time before being removed by purifying selection.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>The consequences of SARS-CoV-2 within-host persistence</title><link href="/sigal_consequences_2024.html" rel="alternate"/><published>2024-11-25T00:00:00+01:00</published><updated>2024-11-25T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-11-25:/sigal_consequences_2024.html</id><summary type="html">&lt;p&gt;SARS-CoV-2 causes an acute respiratory tract infection that resolves in most people in less than a month. Yet some people with severely weakened immune systems fail to clear the virus, leading to persistent infections with high viral titres in the respiratory tract. In a subset of cases, persistent SARS-CoV-2 replication …&lt;/p&gt;</summary><content type="html">&lt;p&gt;SARS-CoV-2 causes an acute respiratory tract infection that resolves in most people in less than a month. Yet some people with severely weakened immune systems fail to clear the virus, leading to persistent infections with high viral titres in the respiratory tract. In a subset of cases, persistent SARS-CoV-2 replication results in an accelerated accumulation of adaptive mutations that confer escape from neutralizing antibodies and enhance cellular infection. This may lead to the evolution of extensively mutated SARS-CoV-2 variants and introduce an element of chance into the timing of variant evolution, as variant formation may depend on evolution in a single person. Whether long COVID is also caused by persistence of replicating SARS-CoV-2 is controversial. One line of evidence is detection of SARS-CoV-2 RNA and proteins in different body compartments long after SARS-CoV-2 infection has cleared from the upper respiratory tract. However, thus far, no replication competent virus has been cultured from individuals with long COVID who are immunocompetent. In this Review, we consider mechanisms of viral persistence, intra-host evolution in persistent infections, the connection of persistent infections with SARS-CoV-2 variants and the possible role of SARS-CoV-2 persistence in long COVID. Understanding persistent infections may therefore resolve much of what is still unclear in COVID-19 pathophysiology, with possible implications for other emerging viruses.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>PoL I: Quantitative problems, dimensions, and units</title><link href="/PoLI_2024_week01_UnitsAndLaws.html" rel="alternate"/><published>2024-11-06T00:00:00+01:00</published><updated>2024-11-06T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-11-06:/PoLI_2024_week01_UnitsAndLaws.html</id><summary type="html">&lt;section&gt;
&lt;h2&gt;So far in this course ...&lt;/h2&gt;
    &lt;ul&gt;
        &lt;li&gt;Thermodynamics and statistical mechanics&lt;/li&gt;
        &lt;li&gt;Protein folding&lt;/li&gt;
        &lt;li&gt;Reaction kinetics&lt;/li&gt;
        &lt;li&gt;Ligand binding&lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h2&gt;What about topics like ...&lt;/h2&gt;
    &lt;ul&gt;
        &lt;li&gt;Gene regulation&lt;/li&gt;
        &lt;li&gt;Developmental biology&lt;/li&gt;
        &lt;li&gt;Cell biology&lt;/li&gt;
        &lt;li&gt;....&lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Mathematics is extremely effective in physics&lt;/h3&gt;
    &lt;div style="position:absolute; top:22%; left:15%; width: 80%; text-align: left;"&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;Motions of planets and moons can be predicted with extreme accuracy&lt;/li&gt;
                &lt;li&gt;Behavior of atoms, particles, electrons etc can be …&lt;/li&gt;&lt;/ul&gt;&lt;/font&gt;&lt;/div&gt;&lt;/section&gt;</summary><content type="html">&lt;section&gt;
&lt;h2&gt;So far in this course ...&lt;/h2&gt;
    &lt;ul&gt;
        &lt;li&gt;Thermodynamics and statistical mechanics&lt;/li&gt;
        &lt;li&gt;Protein folding&lt;/li&gt;
        &lt;li&gt;Reaction kinetics&lt;/li&gt;
        &lt;li&gt;Ligand binding&lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h2&gt;What about topics like ...&lt;/h2&gt;
    &lt;ul&gt;
        &lt;li&gt;Gene regulation&lt;/li&gt;
        &lt;li&gt;Developmental biology&lt;/li&gt;
        &lt;li&gt;Cell biology&lt;/li&gt;
        &lt;li&gt;....&lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Mathematics is extremely effective in physics&lt;/h3&gt;
    &lt;div style="position:absolute; top:22%; left:15%; width: 80%; text-align: left;"&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;Motions of planets and moons can be predicted with extreme accuracy&lt;/li&gt;
                &lt;li&gt;Behavior of atoms, particles, electrons etc can be controlled and exploited&lt;/li&gt;
                &lt;li&gt;Behavior that is unintuitive to us is captured well by the laws of physics&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h3&gt;The strange behavior of rotating objects&lt;/h3&gt;
&lt;iframe width="1120" height="630" src="https://www.youtube.com/embed/1n-HMSCDYtM?si=Nwak0OQucbV4N-qO" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen&gt;&lt;/iframe&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Biology is much more complex than Physics&lt;/h3&gt;
    &lt;div style="position:absolute; top:22%; left:15%; width: 80%; text-align: left;"&gt;
        &lt;b&gt;Physics is most effective in simple and controlled systems&lt;/b&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;Laws of physics connect fundamental particles and forces.&lt;/li&gt;
                &lt;li&gt;These laws explain properties of simple systems and homogeneous matter&lt;/li&gt;
                &lt;li&gt;Good understanding of systems at equilibrium or isolated systems &lt;/li&gt;
                &lt;li&gt;These laws also govern complex systems, but the connection between the laws and the behavior is hard to decipher&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;&lt;br&gt;
        &lt;b&gt;Biological complexity&lt;/b&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;Biological systems evolved -- layering complexity&lt;/li&gt;
                &lt;li&gt;Cells consist of thousands of molecular species, interacting in complicated ways&lt;/li&gt;
                &lt;li&gt;Biology is always in flux.&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Physics vs Biology&lt;/h4&gt;
    &lt;div style="position:absolute; top:15%; left:5%; width: 45%; text-align: left;"&gt;
    &lt;img src="https://upload.wikimedia.org/wikipedia/commons/1/1f/Two-body_Jacobi_coordinates.JPG"&gt;
    &lt;span class="ref"&gt;&lt;a href="https://commons.wikimedia.org/wiki/File:Two-body_Jacobi_coordinates.JPG"&gt;Wikipedia, by Brews Oshare&lt;/a&gt;&lt;/span&gt;
    &lt;font size=5&gt;
    &lt;ul&gt;
    &lt;li&gt; Equations that govern the dynamics
    &lt;li&gt; Exact predictions of future configuration
    &lt;/ul&gt;
    &lt;/font&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:15%; left:50%; width: 50%; text-align: left;" class="fragment"&gt;
    &lt;img src="/talk_images/981px-Signal_transduction_pathways.svg.png"&gt;
    &lt;span class="ref"&gt;&lt;a href="https://commons.wikimedia.org/w/index.php?curid=12081090"&gt;Wikipedia, by cybertory&lt;/a&gt;&lt;/span&gt;
    &lt;font size=5&gt;
    &lt;ul&gt;
    &lt;li&gt; Long, but incomplete, list of components
    &lt;li&gt; Only qualitative description of interactions
    &lt;/ul&gt;
    &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h2&gt;From description to quantitative understanding!&lt;/h2&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Quantitative questions&lt;/h3&gt;
    &lt;div style="position:absolute; top:22%; left:15%; width: 80%; text-align: left;"&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;How many human cells are in your body?&lt;/li&gt;
                &lt;li&gt;How many other cells?&lt;/li&gt;
                &lt;li&gt;How many ribosomes/signaling molecules are in a cell?&lt;/li&gt;
                &lt;li&gt;How do genes regulate each other?&lt;/li&gt;
                &lt;li&gt;How rapidly does a protein move from one end of the cell to another?&lt;/li&gt;
                &lt;li&gt;What fraction of transcription factors is bound to DNA?&lt;/li&gt;
                &lt;li&gt;What are the speed limits for biochemical reactions?&lt;/li&gt;
                &lt;li&gt;How are polarities and developmental gradients set up?&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
        &lt;font size="6" class="fragment"&gt;
            &lt;ul&gt;
                &lt;li&gt;&lt;b&gt;Not:&lt;/b&gt; Gene X causes Y&lt;/li&gt;
                &lt;li&gt;&lt;b&gt;But:&lt;/b&gt; 20% faster diffusion of gene X extends the gradient by $20\mu m$&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Dimensions and units&lt;/h3&gt;
    &lt;div style="position:absolute; top:22%; left:15%; width: 40%; text-align: left;"&gt;
        &lt;h5&gt;&lt;b&gt;Dimensions&lt;/b&gt;&lt;/h5&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;length&lt;/li&gt;
                &lt;li&gt;weight&lt;/li&gt;
                &lt;li&gt;energy&lt;/li&gt;
                &lt;li&gt;current&lt;/li&gt;
                &lt;li&gt;force&lt;/li&gt;
                &lt;li&gt;temperature&lt;/li&gt;
                &lt;li&gt;....&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:22%; left:45%; width: 45%; text-align: left;" class="fragment"&gt;
        &lt;h5&gt;&lt;b&gt;Units:&lt;/b&gt;&lt;/h5&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;length: meters, miles, feet, Angstrom&lt;/li&gt;
                &lt;li&gt;weight: grams, stones, &lt;/li&gt;
                &lt;li&gt;energy: Joules, calories&lt;/li&gt;
                &lt;li&gt;current: ampere&lt;/li&gt;
                &lt;li&gt;force: Newton&lt;/li&gt;
                &lt;li&gt;temperature: Celsius, Kelvin&lt;/li&gt;
                &lt;li&gt;....&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:15%; width: 80%; text-align: left;" class="fragment"&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;Dimensions describe the nature of a quantity&lt;/li&gt;
                &lt;li&gt;Units are conventions to measure them&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Comparing quantities&lt;/h3&gt;
    &lt;div style="position:absolute; top:22%; left:15%; width: 70%; text-align: left;"&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;Only quantities of the same dimension can be compared: length $X$ is greater than length $Y$ etc. There is no sense is which length $X$ can be greater than weight $Y$.&lt;/li&gt;
                &lt;li class="fragment"&gt;Units are conventions -- there is nothing fundamental about them. &lt;/li&gt;
                &lt;li class="fragment"&gt;Some unit systems are more convenient than others.&lt;/li&gt;
                &lt;li class="fragment"&gt;Everyday units are often inconvienent for biological processes&lt;/li&gt;
                &lt;li class="fragment"&gt;We can pick units to make things as simple as possible&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h3&gt;Aim: Enable you to reason quantitatively about biological problems!&lt;/h3&gt;
&lt;/section&gt;</content><category term="teaching"/></entry><entry><title>Physics of Life</title><link href="/2024_PoLI_overview.html" rel="alternate"/><published>2024-11-01T00:00:00+01:00</published><updated>2024-11-01T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-11-01:/2024_PoLI_overview.html</id><summary type="html">&lt;p&gt;In this course, we will explore how general physical principles govern the organization of biological processes.
We will for example discuss how matter moves around in cells, how cells process information, how genomes are organized, or how biology exploits self-organization principles.&lt;/p&gt;
&lt;p&gt;During the course, we will use frequently use mathematical …&lt;/p&gt;</summary><content type="html">&lt;p&gt;In this course, we will explore how general physical principles govern the organization of biological processes.
We will for example discuss how matter moves around in cells, how cells process information, how genomes are organized, or how biology exploits self-organization principles.&lt;/p&gt;
&lt;p&gt;During the course, we will use frequently use mathematical derivations and concepts from physics that should be familiar to you from high school or the introductory lectures in semesters 1 and 2.
Furthermore, many exercises will involve programming, and you will use the computer to solve problems.
The preferred programming language for this is Python, but you can use whatever programming language you like (for example R or Matlab).
The University of Basel now provides a &lt;a href="https://jupyterhub-edu.scicore.unibas.ch/"&gt;Jupyter Hub&lt;/a&gt; for students that you can use when you don't have a suitable computer.&lt;/p&gt;
&lt;p&gt;In addition, I will suggest material by third parties (for example the excellent videos on mathematics by &lt;a href="https://3Blue1Brown.com"&gt;3Blue1Brown&lt;/a&gt;) to give additional background and revise necessary mathematical techniques.&lt;/p&gt;
&lt;h3&gt;Syllabus&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;The relevant scales and dimensions of biophysics&lt;/li&gt;
&lt;li&gt;Laws of physics and differential equations&lt;/li&gt;
&lt;li&gt;Growth processes&lt;/li&gt;
&lt;li&gt;Models of gene regulation&lt;/li&gt;
&lt;li&gt;Random walks, diffusion and Stokes-Einstein relation&lt;/li&gt;
&lt;li&gt;Elements of polymer physics&lt;/li&gt;
&lt;li&gt;Chromatin organization&lt;/li&gt;
&lt;li&gt;Membrane-less organelles and liquid-liquid phase transitions&lt;/li&gt;
&lt;li&gt;Discrimination and fidelity.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Literature&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://routledgetextbooks.com/textbooks/9780815344506/default.php"&gt;The physical biology of the Cell&lt;/a&gt; by Rob Phillips et al&lt;/li&gt;
&lt;li&gt;&lt;a href="http://book.bionumbers.org/"&gt;Cell biology by the numbers&lt;/a&gt; by Rob Phillips and Ron Milo&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Course materials&lt;/h3&gt;
&lt;p&gt;The course materials are provided on GitHub in &lt;a href="https://github.com/neherlab/PoL1-course-materials"&gt;PoL-1-course-materials&lt;/a&gt; repository. Exercise sheets and exercise submissions will be handled via ADAM.&lt;/p&gt;</content><category term="teaching"/><category term="biophysics"/></entry><entry><title>Isabel Joia</title><link href="/isabel_joia.html" rel="alternate"/><published>2024-11-01T00:00:00+01:00</published><updated>2024-11-01T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-11-01:/isabel_joia.html</id><content type="html"/><category term="team"/></entry><entry><title>Virus evolution and the spread of infectious disease</title><link href="/202410_Ringvorlesung.html" rel="alternate"/><published>2024-10-23T00:00:00+02:00</published><updated>2024-10-23T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-10-23:/202410_Ringvorlesung.html</id><summary type="html">&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Viruses&lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; left:5%; width:30%"&gt;
        &lt;img src="talk_images/tobacco_mosaic_virus.png" width="100%"&gt;
        &lt;span style="font-size: 18px"&gt;tobacco mosaic virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; (Thomas Splettstoesser, wikipedia)&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:55%; left:5%; width:30%"&gt;
        &lt;img src="talk_images/bacteria_phage.png" width="40%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;bacteria phage&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; (adenosine, wikipedia)&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:15%; left:32%; width:30%"&gt;
        &lt;img src="talk_images/influenza_virus.png" width="70%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;influenza virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; wikipedia&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:55%; left:32%; width:30%"&gt;
        &lt;img src="talk_images/HI-virion-structure.svg" width="45%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;human immunodeficiency virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; wikipedia&lt;/span&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position:absolute; top:25%; left:60%; width:32%"&gt;
    &lt;small&gt;&lt;ul&gt;
        &lt;li&gt;rely on host to replicate&lt;/li&gt;
        &lt;li&gt;little more than genome + capsid&lt;/li&gt;
        &lt;li&gt;genomes typically 5-200k bases (+exceptions)&lt;/li&gt;
        &lt;!-- &lt;li&gt;many infectious diseases are caused by viruses&lt;/li&gt; --&gt;
        &lt;!-- &lt;li&gt;very important function in microbial eco-systems&lt;/li&gt; --&gt;
        &lt;li&gt;most abundant organisms on earth $\sim 10^{31}$&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:52%; left:55%; width: 50%"&gt;
&lt;!--    &lt;h5&gt;Phylogenetic analysis&lt;/h5&gt;
    &lt;img src="/talk_images/toy_alignment_notree.svg" width=70% class="plain"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:52%; left:55%; width: 50%"&gt;
    &lt;h5&gt;Phylogenetic analysis&lt;/h5&gt;
    &lt;img src="/talk_images/toy_alignment_tree.svg" width=70% class="plain"&gt;
    &lt;/div&gt;

 --&gt;&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Lifecycle of animal viruses&lt;/h3&gt;
    &lt;img src="/talk_images/HepC_replication.png"&gt;
&lt;span class="ref"&gt;By &lt;a href="https://en.wikipedia.org/wiki/User:GrahamColm" class="extiw" title="wikipedia:User:GrahamColm"&gt;GrahamColm&lt;/a&gt; at &lt;a href="https://en.wikipedia.org/wiki/" class="extiw" title="wikipedia:"&gt;English Wikipedia …&lt;/a&gt;&lt;/span&gt;&lt;/section&gt;</summary><content type="html">&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Viruses&lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; left:5%; width:30%"&gt;
        &lt;img src="talk_images/tobacco_mosaic_virus.png" width="100%"&gt;
        &lt;span style="font-size: 18px"&gt;tobacco mosaic virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; (Thomas Splettstoesser, wikipedia)&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:55%; left:5%; width:30%"&gt;
        &lt;img src="talk_images/bacteria_phage.png" width="40%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;bacteria phage&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; (adenosine, wikipedia)&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:15%; left:32%; width:30%"&gt;
        &lt;img src="talk_images/influenza_virus.png" width="70%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;influenza virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; wikipedia&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:55%; left:32%; width:30%"&gt;
        &lt;img src="talk_images/HI-virion-structure.svg" width="45%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;human immunodeficiency virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; wikipedia&lt;/span&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position:absolute; top:25%; left:60%; width:32%"&gt;
    &lt;small&gt;&lt;ul&gt;
        &lt;li&gt;rely on host to replicate&lt;/li&gt;
        &lt;li&gt;little more than genome + capsid&lt;/li&gt;
        &lt;li&gt;genomes typically 5-200k bases (+exceptions)&lt;/li&gt;
        &lt;!-- &lt;li&gt;many infectious diseases are caused by viruses&lt;/li&gt; --&gt;
        &lt;!-- &lt;li&gt;very important function in microbial eco-systems&lt;/li&gt; --&gt;
        &lt;li&gt;most abundant organisms on earth $\sim 10^{31}$&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:52%; left:55%; width: 50%"&gt;
&lt;!--    &lt;h5&gt;Phylogenetic analysis&lt;/h5&gt;
    &lt;img src="/talk_images/toy_alignment_notree.svg" width=70% class="plain"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:52%; left:55%; width: 50%"&gt;
    &lt;h5&gt;Phylogenetic analysis&lt;/h5&gt;
    &lt;img src="/talk_images/toy_alignment_tree.svg" width=70% class="plain"&gt;
    &lt;/div&gt;

 --&gt;&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Lifecycle of animal viruses&lt;/h3&gt;
    &lt;img src="/talk_images/HepC_replication.png"&gt;
&lt;span class="ref"&gt;By &lt;a href="https://en.wikipedia.org/wiki/User:GrahamColm" class="extiw" title="wikipedia:User:GrahamColm"&gt;GrahamColm&lt;/a&gt; at &lt;a href="https://en.wikipedia.org/wiki/" class="extiw" title="wikipedia:"&gt;English Wikipedia&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Development of sequencing technologies&lt;/h3&gt;
    &lt;div style="position:absolute; top:12%; left:0%; width: 65%; text-align: left;"&gt;
        &lt;img src="/talk_images/developments_in_high_throughput_sequencing.jpg" width="100%" class="plain"&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:12%; left:60%; width: 40%; text-align: left;"&gt;
        &lt;div class="hugespacer"&gt;&lt;/div&gt;
        &lt;h5&gt;We can now sequence...&lt;/h5&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;thousands of bacterial isolates&lt;/li&gt;
                &lt;li&gt;thousands of single cells&lt;/li&gt;
                &lt;li&gt;populations of viruses, bacteria or flies&lt;/li&gt;
                &lt;li&gt;diverse ecosystems&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
        &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Virus genomes change rapidly through time&lt;/h3&gt;
&lt;div style="position: absolute;top:22%; left:15%; width:70%; text-align: left"&gt;
&lt;font font-family="Andale Mono"&gt;
&lt;b&gt;A/Brisbane/100/2014&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1000/2015&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;T&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1/2017&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
... hundreds of thousands of sequences...
&lt;/font&gt;
&lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Phylogenetic analysis of viral sequences&lt;/h3&gt;
    &lt;div style="position: absolute;top:22%; left:15%; width: 70%"&gt;
    &lt;img src="/talk_images/toy_alignment_notree.svg" width=100% class="plain"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:22%; left:15%; width: 70%"&gt;
    &lt;img src="/talk_images/toy_alignment_tree.svg" width=100% class="plain"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:75%; left:15%; width: 70%"&gt;
        &lt;h5&gt;RNA viruses have a high mutation rate. New mutations arise every few weeks.&lt;/h5&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Some viruses evolve a million times faster than animals&lt;/h3&gt;
    &lt;div class="bigspacer"&gt;&lt;/div&gt;
    &lt;h4&gt;Animal haemoglobin&lt;/h4&gt;
    &lt;img src="/talk_images/hemoglobin_alignment.png" width="1200px" class="plain"&gt;
    &lt;div class="bigspacer"&gt;&lt;/div&gt;
    &lt;h4&gt;HIV protein&lt;/h4&gt;
    &lt;img src="/talk_images/HIV_dummy_alignment.png" width="1200px" class="plain"&gt;
&lt;/section&gt;
&lt;!--HIV INTRAPATIENT EVOLUTION --&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Evolution of HIV&lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; left:5%; width:64%"&gt;
        &lt;img src="talk_images/sharp_hahn_HIV_origins.png" width="100%"&gt;&lt;br&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:70%; width:30%"&gt;
    &lt;small&gt;
        &lt;ul class="fragment"&gt;
            &lt;li&gt;Chimp &amp;rarr; human transmission around 1900 gave rise to HIV-1 group M&lt;/li&gt;
            &lt;li&gt;~100 million infected people since&lt;/li&gt;
            &lt;li&gt;subtypes differ at 10-20% of their genome&lt;/li&gt;
            &lt;li&gt;HIV-1 evolves ~0.1% per year&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/small&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;image: Sharp and Hahn, CSH Persp. Med.&lt;/span&gt;
&lt;/section&gt;
&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;HIV infection&lt;/h3&gt;
    &lt;div style="position: absolute; left:5%; top:20%; width: 45%"&gt;
        &lt;img src="talk_images/HIV_infection_sketch.png" width="100%" class="plain"&gt;
    &lt;/div&gt;
    &lt;div style="position: absolute; left:50%; top:15%; width: 50%"&gt;
        &lt;img src="talk_images/HIV-replication-cycle_simplified.svg" width="100%" class="plain fragment"&gt;
    &lt;/div&gt;
    &lt;div style="position: absolute; left:5%; bottom:15%; width: 45%"&gt;
    &lt;small&gt;
    &lt;ul&gt;
        &lt;li&gt;$10^8$ cells are infected every day&lt;/li&gt;
        &lt;li&gt;the virus repeatedly escapes immune recognition&lt;/li&gt;
        &lt;li&gt;integrates into T-cells as &lt;it&gt;latent provirus&lt;/it&gt;&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;&lt;/div&gt;
    &lt;span class="ref"&gt;&lt;a href="https://en.wikipedia.org/wiki/HIV/AIDS#/media/File:Hiv-timecourse.png"&gt;image: wikipedia&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;HIV-1 evolution within one individual&lt;/h3&gt;
    &lt;div style="position:absolute; top:18%; left:5%; width:40%"&gt;
        &lt;img class="plain" src="talk_images/HIV_quasispecies.svg"&gt;&lt;br&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:18%; left:55%; width:40%"&gt;
        &lt;img class="fragment plain"  src="/talk_images/sketchPrepCircle.png" width=100%&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:7%; left:10%; width:40%"&gt;
        &lt;img class="fragment plain" src="talk_images/pile_up.png" width="100%"&gt;&lt;br&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;silouhette: clipartfest.com, Zanini at al, 2015. Collaboration with Jan Albert and his group&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Immune escape in early HIV infection&lt;/h3&gt;
    &lt;img src="/talk_images/HIV_immune_escape_sketch.png" width=1200px&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Immune escape in early HIV infection&lt;/h3&gt;
    &lt;img src="/talk_images/HIV_immune_escape_salazar.png" width=1200px&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Selective sweeps&lt;/h3&gt;
    &lt;font size=5&gt;
        &lt;ul&gt;
            &lt;li&gt;Viruses carrying a beneficial mutation have more offspring: on average $1+s$ instead of $1$&lt;/li&gt;
            &lt;li&gt;$s$ is called selection coefficient&lt;/li&gt;
            &lt;li&gt;Fraction $x$ of viruses carrying the mutation changes as
            $$x(t+1) = \frac{(1+s)x(t)}{(1+s)x(t) + (1-x(t))}$$&lt;/li&gt;
            &lt;li&gt;In continuous time &amp;rarr; logistic differential equation:
                $$\frac{dx}{dt} = sx(1-x) \Rightarrow x(t) = \frac{e^{s(t-t_0)}}{1+ e^{s(t-t_0)}}$$
                &lt;/li&gt;
        &lt;/ul&gt;
    &lt;/font&gt;
&lt;/section&gt;

&lt;!-- MUTATION TRACKING --&gt;
&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Population sequencing to track all mutations above 1%&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:8%; height:84%"&gt;
        &lt;div style="width:100%"&gt;
            &lt;object data="talk_images/zanini_2015_frequency_trajectories.svg" type="image/svg+xml" width="50%"&gt;&lt;/object&gt;
            &lt;object class="fragment" data="talk_images/richman_2003_antibody_titers.svg" type="image/svg+xml" width="48%"&gt;&lt;/object&gt;
        &lt;/div&gt;
    &lt;/div&gt;
        &lt;!-- &lt;div class="bigspacer"&gt;&lt;/div&gt; --&gt;
    &lt;div style="position:absolute; bottom:10%; left:8%;"&gt;
        &lt;small&gt;
        &lt;ul&gt;
            &lt;li&gt;diverge at 0.1-1% per year&lt;/li&gt;
            &lt;li&gt;almost whole genome coverage in 10 patients&lt;/li&gt;
            &lt;li&gt;full data set at &lt;a href="http://hiv.tuebingen.mpg.de"&gt;hiv.tuebingen.mpg.de&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;/small&gt;
        &lt;/div&gt;
    &lt;span class="ref"&gt;Zanini et al, eLife, 2015; antibody data from Richman et al, 2003&lt;/span&gt;
&lt;/section&gt;

&lt;!-- BOOK OF TREES - MOVIE ALONG THE GENOME --&gt;
&lt;!-- &lt;section class="fullslide"&gt;
    &lt;div style="position:absolute; top:25%; left:0%; width:100%"&gt;
        &lt;img src="talk_images/HIV_book_of_trees.gif" width=60%&gt;&lt;br&gt;
    &lt;/div&gt;
&lt;/section&gt;
 --&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Human Influenza A viruses&lt;/h3&gt;
&lt;div style="position: absolute;top:13%; left:15%; width:70%"&gt;
&lt;img src="/talk_images/flu_pandemics.png" width=100%&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;slide by Trevor Bedford&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h3&gt;Weekly numbers of positive influenza tests in the US by subtype&lt;/h3&gt;
    &lt;img class="plain" src="/images/flu_subtypes_positive_tests.png"&gt;
&lt;span class="ref"&gt;&lt;a href="https://gis.cdc.gov/grasp/fluview/fluportaldashboard.html"&gt;Data by the US CDC&lt;/a&gt; &lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Influenza virus&lt;/h3&gt;
    &lt;div style="position: absolute;top:15%; left:5%; width:60%; justify-content: left"&gt;
    &lt;img src="/talk_images/InfluenzaA-virion_viralZone.jpg" width=100% class="plain"&gt;
    &lt;/div&gt;
    &lt;div style="position: absolute;top:15%; left:68%; width:30%; justify-content: left"&gt;
        &lt;font size=5&gt;
        &lt;ul&gt;
            &lt;li&gt;Surface proteins hemagglutinin (HA) and neuraminidase (NA)&lt;/li&gt;
            &lt;li&gt;Influenza A virus&lt;/li&gt;
            &lt;ul&gt;
                &lt;li&gt;Common in birds and mammals&lt;/li&gt;
                &lt;li&gt;Many different subtypes defined by surface proteins&lt;/li&gt;
                &lt;li&gt;H3N2, H1N1, H7N9, H5N1&lt;/li&gt;
            &lt;/ul&gt;
            &lt;li&gt;Influenza B virus&lt;/li&gt;
            &lt;ul&gt;
                &lt;li&gt;infects mainly humans&lt;/li&gt;
                &lt;li&gt;two lineages that split 30-40y ago&lt;/li&gt;
                &lt;li&gt;B/Victoria vs B/Yamagata&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;a href="http://nextflu.org"  target="_blank"&gt;&lt;h1 style="color:#5097BA"&gt;nextflu.org&lt;/h1&gt;&lt;/a&gt;
&lt;a href="http://bedford.io"  target="_blank"&gt;&lt;h3&gt;joint work with Trevor Bedford &amp; his lab&lt;/h3&gt;&lt;/a&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;img src="/talk_images/nextflu_screenshot.png" height=800px&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;a href="http://nextstrain.org"  target="_blank"&gt;&lt;h1 style="color:#E04929"&gt;nextstrain.org&lt;/h1&gt;&lt;/a&gt;
&lt;a href="http://bedford.io"  target="_blank"&gt;&lt;h3&gt;joint work with Trevor Bedford &amp; his lab&lt;/h3&gt;&lt;/a&gt;
&lt;!-- &lt;img src="talk_images/nextflu.png" width=90%&gt;
 --&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h2&gt;Summary&lt;/h2&gt;
    &lt;ul&gt;
        &lt;li&gt;RNA virus evolution can be observed directly&lt;/li&gt;
        &lt;li&gt;Rapidly adapting population require new population genetic models&lt;/li&gt;
        &lt;li&gt;Those model can be used to infer fit clades&lt;/li&gt;
        &lt;li&gt;Future influenza population can be anticipated&lt;/li&gt;
        &lt;li&gt;Automated real-time analysis can help fight the spread of disease&lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;HIV acknowledgments&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:10%; width:35%"&gt;
        &lt;div style="display:inline"&gt;
            &lt;img src="/images/team_pics/fabio_zanini.png" height=160px&gt;
            &lt;img src="/images/team_pics/jan_albert.png" height=160px&gt;
            &lt;img src="/images/team_pics/johanna_brodin.png" height=160px&gt;
            &lt;img src="/images/team_pics/christa_lanz.png" height=160px&gt;
            &lt;img src="/images/team_pics/goran_bratt.png" height=160px&gt;
            &lt;img src="/images/team_pics/lina_thebo.png" height=160px&gt;
            &lt;img src="/images/team_pics/vadim_puller.png" height=160px&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:45%; width:30%"&gt;
    &lt;small&gt;
    &lt;ul&gt;
        &lt;li&gt;Fabio Zanini&lt;/li&gt;
        &lt;li&gt;Jan Albert&lt;/li&gt;
        &lt;li&gt;Johanna Brodin&lt;/li&gt;
        &lt;li&gt;Christa Lanz&lt;/li&gt;
        &lt;li&gt;Göran Bratt&lt;/li&gt;
        &lt;li&gt;Lina Thebo&lt;/li&gt;
        &lt;li&gt;Vadim Puller&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:60%; width:40%"&gt;
    &lt;img class="plain" src="talk_images/max-planck-logo.png" height=120px style="margin-right: 10px"&gt;
    &lt;img class="plain" src="talk_images/erc-logo.jpg" height=120px style="margin-left: 10px"&gt;
    &lt;img class="plain" src="talk_images/unibas_logo.png" height=80px style="margin-right: 10px"&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Influenza and Theory acknowledgments&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:10%; width:30%"&gt;
        &lt;div style="display:inline"&gt;
            &lt;img src="/images/team_pics/boris_shraiman.png" height=180px&gt;
            &lt;img src="/images/team_pics/colin_russell.png" height=180px&gt;
            &lt;img src="/images/team_pics/trevor_bedford.png" height=180px&gt;
            &lt;img src="/images/team_pics/oskar_hallatscheck.png" height=180px&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:45%; width:30%"&gt;
    &lt;small&gt;
    &lt;ul&gt;
        &lt;li&gt;Boris Shraiman&lt;/li&gt;
        &lt;li&gt;Colin Russell&lt;/li&gt;
        &lt;li&gt;Trevor Bedford&lt;/li&gt;
        &lt;li&gt;Oskar Hallatschek&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:60%; width:40%"&gt;
    &lt;img class="plain" src="talk_images/max-planck-logo.png" height=120px style="margin-right: 10px"&gt;
    &lt;img class="plain" src="talk_images/erc-logo.jpg" height=120px style="margin-left: 10px"&gt;
    &lt;img class="plain" src="talk_images/unibas_logo.png" height=80px style="margin-right: 10px"&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Acknowledgments&lt;/h3&gt;
&lt;div  style="position: absolute;top:20%; left:10%; width: 80%; text-align:left"&gt;
  &lt;h4&gt;Trevor Bedford and his lab -- terrific collaboration since 2014&lt;/h4&gt;
  &lt;img src="/talk_images/nextstrain_people.png" width="1300px"&gt;
  &lt;h4&gt;especially James Hadfield, Emma Hodcroft, Ivan Aksamentov, Moira Zuber, John Huddleston, and Tom Sibley&lt;/h4&gt;
&lt;/div&gt;
&lt;div style="position: absolute;bottom:10%; left:10%; width: 80%; text-align:left"&gt;
  &lt;h4&gt;Data we analyze are contributed by scientists from all over the world&lt;/h4&gt;
  &lt;h4&gt;Data are shared and curated by GISAID&lt;h4&gt;
  &lt;img src="/talk_images/GISAID_logo.png" class="plain" width="200px"&gt;
&lt;/div&gt;
&lt;/section&gt;</content><category term="teaching"/></entry><entry><title>Eco-evolutionary dynamics of adapting pathogens and host immunity</title><link href="/barrat-charlaix_eco-evolutionary_2024.html" rel="alternate"/><published>2024-10-18T00:00:00+02:00</published><updated>2024-10-18T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-10-18:/barrat-charlaix_eco-evolutionary_2024.html</id><summary type="html">&lt;p&gt;As pathogens spread in a population of hosts, immunity is built up and the pool of susceptible individuals is depleted. This generates selective pressure, to which many human RNA viruses, such as influenza virus or SARS-CoV-2, respond with rapid antigenic evolution and frequent emergence of immune evasive variants. However, the …&lt;/p&gt;</summary><content type="html">&lt;p&gt;As pathogens spread in a population of hosts, immunity is built up and the pool of susceptible individuals is depleted. This generates selective pressure, to which many human RNA viruses, such as influenza virus or SARS-CoV-2, respond with rapid antigenic evolution and frequent emergence of immune evasive variants. However, the host’s immune systems adapt and older immune responses wane, such that escape variants only enjoy a growth advantage for a limited time. If variant growth dynamics and reshaping of host-immunity operate on comparable time scales, viral adaptation is determined by eco-evolutionary interactions that are not captured by models of rapid evolution in a fixed environment. Here, we use a Susceptible/Infected model to describe the interaction between an evolving viral population in a dynamic but immunologically diverse host population. We show that depending on strain cross-immunity, heterogeneity of the host population, and durability of immune responses, escape variants initially grow exponentially, but lose their growth advantage before reaching high frequencies. Their subsequent dynamics follows an anomalous random walk determined by future escape variants and results in variant trajectories that are unpredictable. This model can explain the apparent contradiction between the clearly adaptive nature of antigenic evolution and the quasi-neutral dynamics of high frequency variants observed for influenza viruses.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>"Evolution of SARS-CoV-2, immune escape, and the emergence variants of concern"</title><link href="/202409_KITP.html" rel="alternate"/><published>2024-09-24T00:00:00+02:00</published><updated>2024-09-24T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-09-24:/202409_KITP.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1TXI4f_qdFi7BoEOFL5W8-QCjCNOFkswWIsTOMsdJhQA/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Aleksandr Kuznetsov</title><link href="/aleksandr-kuznetsov.html" rel="alternate"/><published>2024-07-12T00:00:00+02:00</published><updated>2024-07-12T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-07-12:/aleksandr-kuznetsov.html</id><content type="html"/><category term="team"/></entry><entry><title>Benjamin Otter</title><link href="/benjamin-otter.html" rel="alternate"/><published>2024-07-12T00:00:00+02:00</published><updated>2024-07-12T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-07-12:/benjamin-otter.html</id><content type="html"/><category term="team"/></entry><entry><title>Standardized Phylogenetic Classification of Human Respiratory Syncytial Virus Below the Subgroup Level</title><link href="/goya_standardized_2024.html" rel="alternate"/><published>2024-07-11T00:00:00+02:00</published><updated>2024-07-11T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-07-11:/goya_standardized_2024.html</id><content type="html">&lt;p&gt;Classification of Respiratory Syncytial Virus&lt;/p&gt;</content><category term="publication"/></entry><entry><title>"Spread and Immune Escape of Respiratory RNA Viruses"</title><link href="/202405_RKI.html" rel="alternate"/><published>2024-05-23T00:00:00+02:00</published><updated>2024-05-23T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-05-23:/202405_RKI.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1BGvzadPJPphQhiNCUurdTkZq4P5-oTrVf_nwBDMX1Y8/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>"Mutation, purifying selection, and adaptive evolution of SARS-CoV-2"</title><link href="/202405_Tuebingen.html" rel="alternate"/><published>2024-05-03T00:00:00+02:00</published><updated>2024-05-03T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-05-03:/202405_Tuebingen.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1fZd7c6dtljk5TOrVYfsGGIAegk961_GRTgSijFWgFyk/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>"Mutation, purifying selection, and adaptive evolution of SARS-CoV-2"</title><link href="/202404_EDI.html" rel="alternate"/><published>2024-04-25T00:00:00+02:00</published><updated>2024-04-25T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-04-25:/202404_EDI.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1ak_b65gwPQCB069UF2MjsLms41l9_z7_aEXdPUvRxEE/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>"Tracking and predicting the spread and evolution of RNA viruses"</title><link href="/202404_BVBRC.html" rel="alternate"/><published>2024-04-08T00:00:00+02:00</published><updated>2024-04-08T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-04-08:/202404_BVBRC.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1pgt2C_bXnTFPtg1D9MjQI4uCOFr8xBf2aTbRQCh0jhw/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Georg Angehrn</title><link href="/georg-angehrn.html" rel="alternate"/><published>2024-04-01T00:00:00+02:00</published><updated>2024-04-01T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-04-01:/georg-angehrn.html</id><content type="html"/><category term="team"/></entry><entry><title>"Co-evolution of RNA viruses and the human immune system"</title><link href="/202403_DPG.html" rel="alternate"/><published>2024-03-18T00:00:00+01:00</published><updated>2024-03-18T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-03-18:/202403_DPG.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1jzRDh4e7QeF6DbZG9idHNxRUJeoHIwEGtkW_i-ewjvs/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>How much should we sequence? An analysis of the Swiss SARS-CoV-2 surveillance effort</title><link href="/wegner_how_2024.html" rel="alternate"/><published>2024-03-18T00:00:00+01:00</published><updated>2024-03-18T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-03-18:/wegner_how_2024.html</id><content type="html"/><category term="publication"/></entry><entry><title>"Real-time analysis and visualization of pathogen spread with Nextstrain"</title><link href="/202402_Engelberg.html" rel="alternate"/><published>2024-02-26T00:00:00+01:00</published><updated>2024-02-26T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-02-26:/202402_Engelberg.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1XPzpqJ1ZeWaYPZkWGLPhbf7tCntVFFW-YUWmmPaVN6c/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Nextstrain workshop at the Wengen Winter School</title><link href="/202401_wengen_nextstrain.html" rel="alternate"/><published>2024-01-15T00:00:00+01:00</published><updated>2024-01-15T00:00:00+01:00</updated><author><name>Emma Hodcroft and Richard Neher</name></author><id>tag:None,2024-01-15:/202401_wengen_nextstrain.html</id><summary type="html">&lt;p&gt;This workshop provides an overview of phylogenetic analysis and interactive visualization using Nextstrain.
&lt;a href="https://nextstrain.org"&gt;Nextstrain&lt;/a&gt; is an open-source project to facilitate phylodynamic analysis, data integration, and visualization of large data sets of viral and bacterial pathogens. The analysis results can be visualized on your own computer or shared on the web …&lt;/p&gt;</summary><content type="html">&lt;p&gt;This workshop provides an overview of phylogenetic analysis and interactive visualization using Nextstrain.
&lt;a href="https://nextstrain.org"&gt;Nextstrain&lt;/a&gt; is an open-source project to facilitate phylodynamic analysis, data integration, and visualization of large data sets of viral and bacterial pathogens. The analysis results can be visualized on your own computer or shared on the web.&lt;/p&gt;
&lt;h3&gt;Prerequisites&lt;/h3&gt;
&lt;p&gt;We hope that we can jump right in and start analyzing data and exploring the spread of disease. We therefore ask you to come to the workshop with the necessary tools installed on your computer.&lt;/p&gt;
&lt;p&gt;We will be using basic shell commands as well, like moving and editing files, changing directories, and starting programs. There are some great resources available online to learn or refresh this basic command-line usage.&lt;/p&gt;
&lt;p&gt;Please follow the Nextstrain CLI installation instructions on &lt;a href="https://docs.nextstrain.org/en/latest/install.html"&gt;docs.nextstrain.org&lt;/a&gt;.
These are available for all the major operating systems (Windows, Mac, Linux). On Windows you need you setup WSL2 and install Docker.&lt;/p&gt;
&lt;p&gt;If you have trouble setting this up on your computer, please contact your IT department or computer-savvy friend.&lt;/p&gt;
&lt;p&gt;Once you have installed the above, we recommend you configure either the &lt;code&gt;docker&lt;/code&gt; or &lt;code&gt;conda&lt;/code&gt; runtime for the workshop:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;nextstrain&lt;span class="w"&gt; &lt;/span&gt;setup&lt;span class="w"&gt; &lt;/span&gt;conda
nextstrain&lt;span class="w"&gt; &lt;/span&gt;setup&lt;span class="w"&gt; &lt;/span&gt;docker
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Check that everything works by running&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;nextstrain&lt;span class="w"&gt; &lt;/span&gt;check-setup&lt;span class="w"&gt; &lt;/span&gt;--set-default
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;For the rest of the tutorial, we assume that you are running all commands inside the &lt;code&gt;nextstrain shell&lt;/code&gt; which you can start with &lt;code&gt;nextstrain shell .&lt;/code&gt; and exit with &lt;code&gt;ctrl+d&lt;/code&gt; or by typing &lt;code&gt;exit&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Within this shell, all necessary tools are installed and ready to be used.&lt;/p&gt;
&lt;!-- ### Overview and Basics

 * [Basics of phylogenetic analysis](201901_krisp_intro.html)
 * [Exploring interactive phylogenies with Auspice](201901_krisp_auspice.html)
 * [The nextstrain toolchain](201909_nextstrain_toolchain.html)
 * [Analysis with augur and Snakemake -- Virus tutorial ](202203_qlife_augur.html)

### Next steps

 * [Analysis with augur and Snakemake -- SARS-CoV_2 Challenge](202309_badhonnef_SC2.html)
 * [Important steps in setting up your own analysis](201909_tips_and_tricks.html)

### Additional steps and details
 * [Options for time tree inference](201910_RIVM_refine.html)
 * [Specify color maps and geographic information](201910_RIVM_color_geo.html)
 * [Advanced snakemake (wildcards, functions, default rules)](201910_RIVM_advanced_snakemake.html)
 * [Parsing metadata from fasta files](201910_RIVM_meta_from_fasta.html)
 * [Community pages on nextstrain](201910_RIVM_community.html) --&gt;

&lt;h3&gt;Important links&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://nextstrain.org"&gt;nextstrain.org&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://nextstrain.org/docs/getting-started/introduction"&gt;nextstrain documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nextstrain/zika-tutorial"&gt;Example repository with zika sequences&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/neherlab/treetime"&gt;Time-scaled phylogenies with TreeTime&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://conda.io/docs/user-guide/install/download.html"&gt;getting miniconda&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://snakemake.readthedocs.io/en/stable/tutorial/basics.html"&gt;snakemake tutorial&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><category term="teaching"/><category term="bioinformatics"/><category term="phylogenetics"/></entry><entry><title>Revitalizing antibiotic discovery and development through in vitro modelling of in-patient conditions</title><link href="/sollier_revitalizing_2024.html" rel="alternate"/><published>2024-01-04T00:00:00+01:00</published><updated>2024-01-04T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2024-01-04:/sollier_revitalizing_2024.html</id><content type="html">&lt;p&gt;In vitro models mimicking in-patient conditions have the potential to yield exciting opportunities for antibiotic research and revitalize future antibiotic discovery and development.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>SARS-CoV-2 infection in immunosuppression evolves sub-lineages which independently accumulate neutralization escape mutations</title><link href="/lustig_sars-cov-2_2023.html" rel="alternate"/><published>2023-12-28T00:00:00+01:00</published><updated>2023-12-28T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-12-28:/lustig_sars-cov-2_2023.html</id><summary type="html">&lt;p&gt;One mechanism of variant formation may be evolution during long-term infection in immunosuppressed people. To understand the viral phenotypes evolved during such infection, we tested SARS-CoV-2 viruses evolved from an ancestral B.1 lineage infection lasting over 190 days post-diagnosis in an advanced HIV disease immunosuppressed individual. Sequence and phylogenetic …&lt;/p&gt;</summary><content type="html">&lt;p&gt;One mechanism of variant formation may be evolution during long-term infection in immunosuppressed people. To understand the viral phenotypes evolved during such infection, we tested SARS-CoV-2 viruses evolved from an ancestral B.1 lineage infection lasting over 190 days post-diagnosis in an advanced HIV disease immunosuppressed individual. Sequence and phylogenetic analysis showed two evolving sub-lineages, with the second sub-lineage replacing the first sub-lineage in a seeming evolutionary sweep. Each sub-lineage independently evolved escape from neutralizing antibodies. The most evolved virus for the first sub-lineage (isolated day 34) and the second sub-lineage (isolated day 190) showed similar escape from ancestral SARS-CoV-2 and Delta-variant infection elicited neutralizing immunity despite having no spike mutations in common relative to the B.1 lineage. The day 190 isolate also evolved higher cell–cell fusion and faster viral replication and caused more cell death relative to virus isolated soon after diagnosis, though cell death was similar to day 34 first sub-lineage virus. These data show that SARS-CoV-2 strains in prolonged infection in a single individual can follow independent evolutionary trajectories which lead to neutralization escape and other changes in viral properties.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Visualizing and quantifying structural diversity around mobile resistance genes</title><link href="/shaw_visualizing_2023.html" rel="alternate"/><published>2023-12-20T00:00:00+01:00</published><updated>2023-12-20T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-12-20:/shaw_visualizing_2023.html</id><summary type="html">&lt;p&gt;Understanding the evolution of mobile genes is important for understanding the spread of antimicrobial resistance (AMR). Many clinically important AMR genes have been mobilized by mobile genetic elements (MGEs) on the kilobase scale, such as integrons and transposons, which can integrate into both chromosomes and plasmids and lead to rapid …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Understanding the evolution of mobile genes is important for understanding the spread of antimicrobial resistance (AMR). Many clinically important AMR genes have been mobilized by mobile genetic elements (MGEs) on the kilobase scale, such as integrons and transposons, which can integrate into both chromosomes and plasmids and lead to rapid spread of the gene through bacterial populations. Looking at the flanking regions of these mobile genes in diverse genomes can highlight common structures and reveal patterns of MGE spread. However, historically this has been a largely descriptive process, relying on gene annotation and expert knowledge. Here we describe a general method to visualize and quantify the structural diversity around genes using pangraph to find blocks of homologous sequence. We apply this method to a set of 12 clinically important beta-lactamase genes and provide interactive visualizations of their flanking regions at https://liampshaw.github.io/flanking-regions. We show that nucleotide-level variation in the mobile gene itself generally correlates with increased structural diversity in its flanking regions, demonstrating a relationship between rates of mutational evolution and rates of structural evolution, and find a bias for greater structural diversity upstream. Our framework is a starting point to investigate general rules that apply to the horizontal spread of new genes through bacterial populations.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Evolution and neutralization escape of the SARS-CoV-2 BA.2.86 subvariant</title><link href="/khan_evolution_2023.html" rel="alternate"/><published>2023-12-01T00:00:00+01:00</published><updated>2023-12-01T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-12-01:/khan_evolution_2023.html</id><summary type="html">&lt;p&gt;Omicron BA.2.86 subvariant differs from Omicron BA.2 as well as recently circulating variants by over 30 mutations in the spike protein alone. Here we report on the isolation of the live BA.2.86 subvariant from a diagnostic swab collected in South Africa which we tested for …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Omicron BA.2.86 subvariant differs from Omicron BA.2 as well as recently circulating variants by over 30 mutations in the spike protein alone. Here we report on the isolation of the live BA.2.86 subvariant from a diagnostic swab collected in South Africa which we tested for escape from neutralizing antibodies and viral replication properties in cell culture. We found that BA.2.86 does not have significantly more escape relative to Omicron XBB.1.5 from neutralizing immunity elicited by either Omicron XBB-family subvariant infection or from residual neutralizing immunity of recently collected sera from the South African population. BA.2.86 does have extensive escape relative to ancestral virus with the D614G substitution (B.1 lineage) when neutralized by sera from pre-Omicron vaccinated individuals and relative to Omicron BA.1 when neutralized by sera from Omicron BA.1 infected individuals. BA.2.86 and XBB.1.5 show similar viral infection dynamics in the VeroE6-TMPRSS2 and H1299-ACE2 cell lines. We also investigate the relationship of BA.2.86 to BA.2 sequences. The closest BA.2 sequences are BA.2 samples from Southern Africa circulating in early 2022. Similarly, many basal BA.2.86 sequences were sampled in Southern Africa. This suggests that BA.2.86 potentially evolved in this region, and that unobserved evolution led to escape from neutralizing antibodies similar in scale to recently circulating strains of SARS-CoV-2.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Virus evolution and the spread of infectious disease</title><link href="/202311_Ringvorlesung.html" rel="alternate"/><published>2023-11-15T00:00:00+01:00</published><updated>2023-11-15T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-11-15:/202311_Ringvorlesung.html</id><summary type="html">&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Viruses&lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; left:5%; width:30%"&gt;
        &lt;img src="talk_images/tobacco_mosaic_virus.png" width="100%"&gt;
        &lt;span style="font-size: 18px"&gt;tobacco mosaic virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; (Thomas Splettstoesser, wikipedia)&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:55%; left:5%; width:30%"&gt;
        &lt;img src="talk_images/bacteria_phage.png" width="40%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;bacteria phage&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; (adenosine, wikipedia)&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:15%; left:32%; width:30%"&gt;
        &lt;img src="talk_images/influenza_virus.png" width="70%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;influenza virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; wikipedia&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:55%; left:32%; width:30%"&gt;
        &lt;img src="talk_images/HI-virion-structure.svg" width="45%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;human immunodeficiency virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; wikipedia&lt;/span&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position:absolute; top:25%; left:60%; width:32%"&gt;
    &lt;small&gt;&lt;ul&gt;
        &lt;li&gt;rely on host to replicate&lt;/li&gt;
        &lt;li&gt;little more than genome + capsid&lt;/li&gt;
        &lt;li&gt;genomes typically 5-200k bases (+exceptions)&lt;/li&gt;
        &lt;!-- &lt;li&gt;many infectious diseases are caused by viruses&lt;/li&gt; --&gt;
        &lt;!-- &lt;li&gt;very important function in microbial eco-systems&lt;/li&gt; --&gt;
        &lt;li&gt;most abundant organisms on earth $\sim 10^{31}$&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:52%; left:55%; width: 50%"&gt;
&lt;!--    &lt;h5&gt;Phylogenetic analysis&lt;/h5&gt;
    &lt;img src="/talk_images/toy_alignment_notree.svg" width=70% class="plain"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:52%; left:55%; width: 50%"&gt;
    &lt;h5&gt;Phylogenetic analysis&lt;/h5&gt;
    &lt;img src="/talk_images/toy_alignment_tree.svg" width=70% class="plain"&gt;
    &lt;/div&gt;

 --&gt;&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Lifecycle of animal viruses&lt;/h3&gt;
    &lt;img src="/talk_images/HepC_replication.png"&gt;
&lt;span class="ref"&gt;By &lt;a href="https://en.wikipedia.org/wiki/User:GrahamColm" class="extiw" title="wikipedia:User:GrahamColm"&gt;GrahamColm&lt;/a&gt; at &lt;a href="https://en.wikipedia.org/wiki/" class="extiw" title="wikipedia:"&gt;English Wikipedia …&lt;/a&gt;&lt;/span&gt;&lt;/section&gt;</summary><content type="html">&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Viruses&lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; left:5%; width:30%"&gt;
        &lt;img src="talk_images/tobacco_mosaic_virus.png" width="100%"&gt;
        &lt;span style="font-size: 18px"&gt;tobacco mosaic virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; (Thomas Splettstoesser, wikipedia)&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:55%; left:5%; width:30%"&gt;
        &lt;img src="talk_images/bacteria_phage.png" width="40%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;bacteria phage&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; (adenosine, wikipedia)&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:15%; left:32%; width:30%"&gt;
        &lt;img src="talk_images/influenza_virus.png" width="70%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;influenza virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; wikipedia&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:55%; left:32%; width:30%"&gt;
        &lt;img src="talk_images/HI-virion-structure.svg" width="45%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;human immunodeficiency virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; wikipedia&lt;/span&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position:absolute; top:25%; left:60%; width:32%"&gt;
    &lt;small&gt;&lt;ul&gt;
        &lt;li&gt;rely on host to replicate&lt;/li&gt;
        &lt;li&gt;little more than genome + capsid&lt;/li&gt;
        &lt;li&gt;genomes typically 5-200k bases (+exceptions)&lt;/li&gt;
        &lt;!-- &lt;li&gt;many infectious diseases are caused by viruses&lt;/li&gt; --&gt;
        &lt;!-- &lt;li&gt;very important function in microbial eco-systems&lt;/li&gt; --&gt;
        &lt;li&gt;most abundant organisms on earth $\sim 10^{31}$&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:52%; left:55%; width: 50%"&gt;
&lt;!--    &lt;h5&gt;Phylogenetic analysis&lt;/h5&gt;
    &lt;img src="/talk_images/toy_alignment_notree.svg" width=70% class="plain"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:52%; left:55%; width: 50%"&gt;
    &lt;h5&gt;Phylogenetic analysis&lt;/h5&gt;
    &lt;img src="/talk_images/toy_alignment_tree.svg" width=70% class="plain"&gt;
    &lt;/div&gt;

 --&gt;&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Lifecycle of animal viruses&lt;/h3&gt;
    &lt;img src="/talk_images/HepC_replication.png"&gt;
&lt;span class="ref"&gt;By &lt;a href="https://en.wikipedia.org/wiki/User:GrahamColm" class="extiw" title="wikipedia:User:GrahamColm"&gt;GrahamColm&lt;/a&gt; at &lt;a href="https://en.wikipedia.org/wiki/" class="extiw" title="wikipedia:"&gt;English Wikipedia&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Development of sequencing technologies&lt;/h3&gt;
    &lt;div style="position:absolute; top:12%; left:0%; width: 65%; text-align: left;"&gt;
        &lt;img src="/talk_images/developments_in_high_throughput_sequencing.jpg" width="100%" class="plain"&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:12%; left:60%; width: 40%; text-align: left;"&gt;
        &lt;div class="hugespacer"&gt;&lt;/div&gt;
        &lt;h5&gt;We can now sequence...&lt;/h5&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;thousands of bacterial isolates&lt;/li&gt;
                &lt;li&gt;thousands of single cells&lt;/li&gt;
                &lt;li&gt;populations of viruses, bacteria or flies&lt;/li&gt;
                &lt;li&gt;diverse ecosystems&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
        &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Virus genomes change rapidly through time&lt;/h3&gt;
&lt;div style="position: absolute;top:22%; left:15%; width:70%; text-align: left"&gt;
&lt;font font-family="Andale Mono"&gt;
&lt;b&gt;A/Brisbane/100/2014&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1000/2015&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;T&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1/2017&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
... hundreds of thousands of sequences...
&lt;/font&gt;
&lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Phylogenetic analysis of viral sequences&lt;/h3&gt;
    &lt;div style="position: absolute;top:22%; left:15%; width: 70%"&gt;
    &lt;img src="/talk_images/toy_alignment_notree.svg" width=100% class="plain"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:22%; left:15%; width: 70%"&gt;
    &lt;img src="/talk_images/toy_alignment_tree.svg" width=100% class="plain"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:75%; left:15%; width: 70%"&gt;
        &lt;h5&gt;RNA viruses have a high mutation rate. New mutations arise every few weeks.&lt;/h5&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Some viruses evolve a million times faster than animals&lt;/h3&gt;
    &lt;div class="bigspacer"&gt;&lt;/div&gt;
    &lt;h4&gt;Animal haemoglobin&lt;/h4&gt;
    &lt;img src="/talk_images/hemoglobin_alignment.png" width="1200px" class="plain"&gt;
    &lt;div class="bigspacer"&gt;&lt;/div&gt;
    &lt;h4&gt;HIV protein&lt;/h4&gt;
    &lt;img src="/talk_images/HIV_dummy_alignment.png" width="1200px" class="plain"&gt;
&lt;/section&gt;
&lt;!--HIV INTRAPATIENT EVOLUTION --&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Evolution of HIV&lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; left:5%; width:64%"&gt;
        &lt;img src="talk_images/sharp_hahn_HIV_origins.png" width="100%"&gt;&lt;br&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:70%; width:30%"&gt;
    &lt;small&gt;
        &lt;ul class="fragment"&gt;
            &lt;li&gt;Chimp &amp;rarr; human transmission around 1900 gave rise to HIV-1 group M&lt;/li&gt;
            &lt;li&gt;~100 million infected people since&lt;/li&gt;
            &lt;li&gt;subtypes differ at 10-20% of their genome&lt;/li&gt;
            &lt;li&gt;HIV-1 evolves ~0.1% per year&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/small&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;image: Sharp and Hahn, CSH Persp. Med.&lt;/span&gt;
&lt;/section&gt;
&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;HIV infection&lt;/h3&gt;
    &lt;div style="position: absolute; left:5%; top:20%; width: 45%"&gt;
        &lt;img src="talk_images/HIV_infection_sketch.png" width="100%" class="plain"&gt;
    &lt;/div&gt;
    &lt;div style="position: absolute; left:50%; top:15%; width: 50%"&gt;
        &lt;img src="talk_images/HIV-replication-cycle_simplified.svg" width="100%" class="plain fragment"&gt;
    &lt;/div&gt;
    &lt;div style="position: absolute; left:5%; bottom:15%; width: 45%"&gt;
    &lt;small&gt;
    &lt;ul&gt;
        &lt;li&gt;$10^8$ cells are infected every day&lt;/li&gt;
        &lt;li&gt;the virus repeatedly escapes immune recognition&lt;/li&gt;
        &lt;li&gt;integrates into T-cells as &lt;it&gt;latent provirus&lt;/it&gt;&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;&lt;/div&gt;
    &lt;span class="ref"&gt;&lt;a href="https://en.wikipedia.org/wiki/HIV/AIDS#/media/File:Hiv-timecourse.png"&gt;image: wikipedia&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;HIV-1 evolution within one individual&lt;/h3&gt;
    &lt;div style="position:absolute; top:18%; left:5%; width:40%"&gt;
        &lt;img class="plain" src="talk_images/HIV_quasispecies.svg"&gt;&lt;br&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:18%; left:55%; width:40%"&gt;
        &lt;img class="fragment plain"  src="/talk_images/sketchPrepCircle.png" width=100%&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:7%; left:10%; width:40%"&gt;
        &lt;img class="fragment plain" src="talk_images/pile_up.png" width="100%"&gt;&lt;br&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;silouhette: clipartfest.com, Zanini at al, 2015. Collaboration with Jan Albert and his group&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Immune escape in early HIV infection&lt;/h3&gt;
    &lt;img src="/talk_images/HIV_immune_escape_sketch.png" width=1200px&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Immune escape in early HIV infection&lt;/h3&gt;
    &lt;img src="/talk_images/HIV_immune_escape_salazar.png" width=1200px&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Selective sweeps&lt;/h3&gt;
    &lt;font size=5&gt;
        &lt;ul&gt;
            &lt;li&gt;Viruses carrying a beneficial mutation have more offspring: on average $1+s$ instead of $1$&lt;/li&gt;
            &lt;li&gt;$s$ is called selection coefficient&lt;/li&gt;
            &lt;li&gt;Fraction $x$ of viruses carrying the mutation changes as
            $$x(t+1) = \frac{(1+s)x(t)}{(1+s)x(t) + (1-x(t))}$$&lt;/li&gt;
            &lt;li&gt;In continuous time &amp;rarr; logistic differential equation:
                $$\frac{dx}{dt} = sx(1-x) \Rightarrow x(t) = \frac{e^{s(t-t_0)}}{1+ e^{s(t-t_0)}}$$
                &lt;/li&gt;
        &lt;/ul&gt;
    &lt;/font&gt;
&lt;/section&gt;

&lt;!-- MUTATION TRACKING --&gt;
&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Population sequencing to track all mutations above 1%&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:8%; height:84%"&gt;
        &lt;div style="width:100%"&gt;
            &lt;object data="talk_images/zanini_2015_frequency_trajectories.svg" type="image/svg+xml" width="50%"&gt;&lt;/object&gt;
            &lt;object class="fragment" data="talk_images/richman_2003_antibody_titers.svg" type="image/svg+xml" width="48%"&gt;&lt;/object&gt;
        &lt;/div&gt;
    &lt;/div&gt;
        &lt;!-- &lt;div class="bigspacer"&gt;&lt;/div&gt; --&gt;
    &lt;div style="position:absolute; bottom:10%; left:8%;"&gt;
        &lt;small&gt;
        &lt;ul&gt;
            &lt;li&gt;diverge at 0.1-1% per year&lt;/li&gt;
            &lt;li&gt;almost whole genome coverage in 10 patients&lt;/li&gt;
            &lt;li&gt;full data set at &lt;a href="http://hiv.tuebingen.mpg.de"&gt;hiv.tuebingen.mpg.de&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;/small&gt;
        &lt;/div&gt;
    &lt;span class="ref"&gt;Zanini et al, eLife, 2015; antibody data from Richman et al, 2003&lt;/span&gt;
&lt;/section&gt;

&lt;!-- BOOK OF TREES - MOVIE ALONG THE GENOME --&gt;
&lt;!-- &lt;section class="fullslide"&gt;
    &lt;div style="position:absolute; top:25%; left:0%; width:100%"&gt;
        &lt;img src="talk_images/HIV_book_of_trees.gif" width=60%&gt;&lt;br&gt;
    &lt;/div&gt;
&lt;/section&gt;
 --&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Human Influenza A viruses&lt;/h3&gt;
&lt;div style="position: absolute;top:13%; left:15%; width:70%"&gt;
&lt;img src="/talk_images/flu_pandemics.png" width=100%&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;slide by Trevor Bedford&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h3&gt;Weekly numbers of positive influenza tests in the US by subtype&lt;/h3&gt;
    &lt;img class="plain" src="/images/flu_subtypes_positive_tests.png"&gt;
&lt;span class="ref"&gt;&lt;a href="https://gis.cdc.gov/grasp/fluview/fluportaldashboard.html"&gt;Data by the US CDC&lt;/a&gt; &lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Influenza virus&lt;/h3&gt;
    &lt;div style="position: absolute;top:15%; left:5%; width:60%; justify-content: left"&gt;
    &lt;img src="/talk_images/InfluenzaA-virion_viralZone.jpg" width=100% class="plain"&gt;
    &lt;/div&gt;
    &lt;div style="position: absolute;top:15%; left:68%; width:30%; justify-content: left"&gt;
        &lt;font size=5&gt;
        &lt;ul&gt;
            &lt;li&gt;Surface proteins hemagglutinin (HA) and neuraminidase (NA)&lt;/li&gt;
            &lt;li&gt;Influenza A virus&lt;/li&gt;
            &lt;ul&gt;
                &lt;li&gt;Common in birds and mammals&lt;/li&gt;
                &lt;li&gt;Many different subtypes defined by surface proteins&lt;/li&gt;
                &lt;li&gt;H3N2, H1N1, H7N9, H5N1&lt;/li&gt;
            &lt;/ul&gt;
            &lt;li&gt;Influenza B virus&lt;/li&gt;
            &lt;ul&gt;
                &lt;li&gt;infects mainly humans&lt;/li&gt;
                &lt;li&gt;two lineages that split 30-40y ago&lt;/li&gt;
                &lt;li&gt;B/Victoria vs B/Yamagata&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;a href="http://nextflu.org"  target="_blank"&gt;&lt;h1 style="color:#5097BA"&gt;nextflu.org&lt;/h1&gt;&lt;/a&gt;
&lt;a href="http://bedford.io"  target="_blank"&gt;&lt;h3&gt;joint work with Trevor Bedford &amp; his lab&lt;/h3&gt;&lt;/a&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;img src="/talk_images/nextflu_screenshot.png" height=800px&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;a href="http://nextstrain.org"  target="_blank"&gt;&lt;h1 style="color:#E04929"&gt;nextstrain.org&lt;/h1&gt;&lt;/a&gt;
&lt;a href="http://bedford.io"  target="_blank"&gt;&lt;h3&gt;joint work with Trevor Bedford &amp; his lab&lt;/h3&gt;&lt;/a&gt;
&lt;!-- &lt;img src="talk_images/nextflu.png" width=90%&gt;
 --&gt;
&lt;/section&gt;

&lt;!-- THEORETICAL POPGEN AND BSC --&gt;
&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Clonal interference and traveling waves&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; width:100%"&gt;
        &lt;img src="talk_images/arees_small_mutations.png" width=75%&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Annual Reviews, 2013; Desai &amp; Fisher; Brunet &amp; Derrida; Kessler &amp; Levine&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;div style="position:absolute; top:5%; left:50%; width:38%"&gt;
        &lt;h4&gt;Typical tree&lt;/h4&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:50%; width:38%"&gt;
        &lt;img src="talk_images/example_tree_BSC.png"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" data-fragment-index=1 style="position:absolute; bottom:10%; left:10%; width:38%"&gt;
        &lt;img src="talk_images/BSC_explain0.png"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" data-fragment-index=2 style="position:absolute; bottom:10%; left:10%; width:38%"&gt;
        &lt;img src="talk_images/BSC_explain1.png"&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:5%; left:10%; width:38%"&gt;
        &lt;h4 class="fragment fade-in" data-fragment-index=1&gt;Bolthausen-Sznitman Coalescent&lt;/h4&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Hallatschek, PNAS, 2013; see also Brunet and Derrida, PRE, 2007&lt;/span&gt;
&lt;/section&gt;

&lt;!-- &lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;U-shaped polarized site frequency spectra&lt;/h3&gt;
    &lt;div style="position:absolute; bottom:15%; left:27%; width:60%"&gt;
        &lt;img src="talk_images/BSC_SFS.png" width="100%"&gt;&lt;br&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:55%; left:0%; width:27%"&gt;
        &lt;img src="talk_images/toy_alignment.svg" width="70%" type="image/svg+xml"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:15%; left:0%; width:27%"&gt;
        &lt;img src="talk_images/example_tree_BSC.png" width="70%"&gt;&lt;br&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Hallatschek, PNAS, 2013&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;img src="talk_images/HIV_SFS.png" width=70%&gt;
    &lt;span class="ref"&gt;Zanini et al, eLife, 2015&lt;/span&gt;
&lt;/section&gt;
 --&gt;

&lt;!-- FLU PREDICTION --&gt;
&lt;section&gt;
    &lt;h3&gt;Bursts in a tree &amp;harr; high fitness genotypes&lt;/h3&gt;
    &lt;h3 class="fragment"&gt;Can we read fitness of a tree?&lt;/h3&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Predicting evolution&lt;/h3&gt;
    &lt;div style="position:absolute; top:18%; left:5%; width:33%"&gt;
        &lt;img src="talk_images/fitness_prediction_two_sample.png" width="90%"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:38%; left:50%; width:33%"&gt;
    &lt;small&gt;
        &lt;h3 style="text-align:left; width:100%"&gt;Given the branching pattern:&lt;/h3&gt;
        &lt;ul&gt;
            &lt;li&gt;can we predict fitness?&lt;/li&gt;
            &lt;li&gt;pick the closest relative of the future?&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/small&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Fitness inference from trees&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:5%; width:90%"&gt;
    &lt;object data="talk_images/neher_2014_algorithm.svg" width="90%"&gt;&lt;/object&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:20%; left:5%; width:90%"&gt;
        &lt;small&gt;$$P(\mathbf{x}|T) = \frac{1}{Z(T)} p_0(x_0) \prod_{i=0}^{n_{int}} g(x_{i_1}, t_{i_1}| x_i, t_i)g(x_{i_2}, t_{i_2}| x_i, t_i)$$&lt;/small&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;!-- &lt;section&gt;
    &lt;video height="100%" data-autoplay src="talk_images/flu_prediction.webm" type="video/webm"&gt;&lt;/video&gt;
&lt;/section&gt; --&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Validation on simulated data&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:8%; width:34%"&gt;
    &lt;object data="talk_images/neher_2014_toy_prediction_C.svg" width="90%"&gt;&lt;/object&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:16%; left:54%; width:30%"&gt;
    &lt;img class="fragment fade-out"  data-fragment-index=1 src="talk_images/fitness_prediction_two_sample_pred.png"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:16%; left:54%; width:30%"&gt;
    &lt;img class="fragment current-visible" data-fragment-index=1 src="talk_images/fitness_prediction_two_sample_avg.png"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:16%; left:54%; width:30%"&gt;
    &lt;img class="fragment current-visible" data-fragment-index=2 src="talk_images/fitness_prediction_two_sample_opt.png"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Prediction of the dominating H3N2 influenza strain &lt;/h3&gt;
    &lt;div class="spacer"&gt;&lt;/div&gt;
    &lt;object data="talk_images/neher_2014_H3N2_prediction.svg" width="70%"&gt;&lt;/object&gt;
    &lt;small&gt;&lt;ul&gt;
        &lt;li&gt;no influenza specific input&lt;/li&gt;
        &lt;li&gt;how can the model be improved? (see model by Luksza &amp; Laessig)&lt;/li&gt;
        &lt;li&gt;what other context might this apply?&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h2&gt;Summary&lt;/h2&gt;
    &lt;ul&gt;
        &lt;li&gt;RNA virus evolution can be observed directly&lt;/li&gt;
        &lt;li&gt;Rapidly adapting population require new population genetic models&lt;/li&gt;
        &lt;li&gt;Those model can be used to infer fit clades&lt;/li&gt;
        &lt;li&gt;Future influenza population can be anticipated&lt;/li&gt;
        &lt;li&gt;Automated real-time analysis can help fight the spread of disease&lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;HIV acknowledgments&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:10%; width:35%"&gt;
        &lt;div style="display:inline"&gt;
            &lt;img src="/images/team_pics/fabio_zanini.png" height=160px&gt;
            &lt;img src="/images/team_pics/jan_albert.png" height=160px&gt;
            &lt;img src="/images/team_pics/johanna_brodin.png" height=160px&gt;
            &lt;img src="/images/team_pics/christa_lanz.png" height=160px&gt;
            &lt;img src="/images/team_pics/goran_bratt.png" height=160px&gt;
            &lt;img src="/images/team_pics/lina_thebo.png" height=160px&gt;
            &lt;img src="/images/team_pics/vadim_puller.png" height=160px&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:45%; width:30%"&gt;
    &lt;small&gt;
    &lt;ul&gt;
        &lt;li&gt;Fabio Zanini&lt;/li&gt;
        &lt;li&gt;Jan Albert&lt;/li&gt;
        &lt;li&gt;Johanna Brodin&lt;/li&gt;
        &lt;li&gt;Christa Lanz&lt;/li&gt;
        &lt;li&gt;Göran Bratt&lt;/li&gt;
        &lt;li&gt;Lina Thebo&lt;/li&gt;
        &lt;li&gt;Vadim Puller&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:60%; width:40%"&gt;
    &lt;img class="plain" src="talk_images/max-planck-logo.png" height=120px style="margin-right: 10px"&gt;
    &lt;img class="plain" src="talk_images/erc-logo.jpg" height=120px style="margin-left: 10px"&gt;
    &lt;img class="plain" src="talk_images/unibas_logo.png" height=80px style="margin-right: 10px"&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Influenza and Theory acknowledgments&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:10%; width:30%"&gt;
        &lt;div style="display:inline"&gt;
            &lt;img src="/images/team_pics/boris_shraiman.png" height=180px&gt;
            &lt;img src="/images/team_pics/colin_russell.png" height=180px&gt;
            &lt;img src="/images/team_pics/trevor_bedford.png" height=180px&gt;
            &lt;img src="/images/team_pics/oskar_hallatscheck.png" height=180px&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:45%; width:30%"&gt;
    &lt;small&gt;
    &lt;ul&gt;
        &lt;li&gt;Boris Shraiman&lt;/li&gt;
        &lt;li&gt;Colin Russell&lt;/li&gt;
        &lt;li&gt;Trevor Bedford&lt;/li&gt;
        &lt;li&gt;Oskar Hallatschek&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:60%; width:40%"&gt;
    &lt;img class="plain" src="talk_images/max-planck-logo.png" height=120px style="margin-right: 10px"&gt;
    &lt;img class="plain" src="talk_images/erc-logo.jpg" height=120px style="margin-left: 10px"&gt;
    &lt;img class="plain" src="talk_images/unibas_logo.png" height=80px style="margin-right: 10px"&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Acknowledgments&lt;/h3&gt;
&lt;div  style="position: absolute;top:20%; left:10%; width: 80%; text-align:left"&gt;
  &lt;h4&gt;Trevor Bedford and his lab -- terrific collaboration since 2014&lt;/h4&gt;
  &lt;img src="/talk_images/nextstrain_people.png" width="1300px"&gt;
  &lt;h4&gt;especially James Hadfield, Emma Hodcroft, Ivan Aksamentov, Moira Zuber, John Huddleston, and Tom Sibley&lt;/h4&gt;
&lt;/div&gt;
&lt;div style="position: absolute;bottom:10%; left:10%; width: 80%; text-align:left"&gt;
  &lt;h4&gt;Data we analyze are contributed by scientists from all over the world&lt;/h4&gt;
  &lt;h4&gt;Data are shared and curated by GISAID&lt;h4&gt;
  &lt;img src="/talk_images/GISAID_logo.png" class="plain" width="200px"&gt;
&lt;/div&gt;
&lt;/section&gt;</content><category term="teaching"/></entry><entry><title>Luca Sesta</title><link href="/luca-sesta.html" rel="alternate"/><published>2023-11-12T00:00:00+01:00</published><updated>2023-11-12T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-11-12:/luca-sesta.html</id><content type="html"/><category term="team"/></entry><entry><title>"SARS-CoV-2 evolution and interaction with influenza"</title><link href="/202311_Impfkongress.html" rel="alternate"/><published>2023-11-10T00:00:00+01:00</published><updated>2023-11-10T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-11-10:/202311_Impfkongress.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/16i89OmnQab8JARqgKaRYzTDm18Y178plWIcMaWCcIlk/edit#slide=id.p"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>PoL I: Quantitative problems, dimensions, and units</title><link href="/PoLI_2023_week01_UnitsAndLaws.html" rel="alternate"/><published>2023-11-03T00:00:00+01:00</published><updated>2023-11-03T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-11-03:/PoLI_2023_week01_UnitsAndLaws.html</id><summary type="html">&lt;section&gt;
&lt;h2&gt;Can we understand biology quantitatively?&lt;/h2&gt;
&lt;h2&gt;How is Biology different from Physics?&lt;/h2&gt;
&lt;h2&gt;How can Physics help understand biological systems?&lt;/h2&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Mathematics is extremely effective in physics&lt;/h3&gt;
    &lt;div style="position:absolute; top:22%; left:15%; width: 80%; text-align: left;"&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;Motions of planets and moons can be predicted with extreme accuracy&lt;/li&gt;
                &lt;li&gt;Behavior of atoms, particles, electrons etc can be controlled and exploited&lt;/li&gt;
                &lt;li&gt;Unintuitive behavior is captured …&lt;/li&gt;&lt;/ul&gt;&lt;/font&gt;&lt;/div&gt;&lt;/section&gt;</summary><content type="html">&lt;section&gt;
&lt;h2&gt;Can we understand biology quantitatively?&lt;/h2&gt;
&lt;h2&gt;How is Biology different from Physics?&lt;/h2&gt;
&lt;h2&gt;How can Physics help understand biological systems?&lt;/h2&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Mathematics is extremely effective in physics&lt;/h3&gt;
    &lt;div style="position:absolute; top:22%; left:15%; width: 80%; text-align: left;"&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;Motions of planets and moons can be predicted with extreme accuracy&lt;/li&gt;
                &lt;li&gt;Behavior of atoms, particles, electrons etc can be controlled and exploited&lt;/li&gt;
                &lt;li&gt;Unintuitive behavior is captured by physical theories&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h3&gt;The strange behavior of rotating objects&lt;/h3&gt;
&lt;iframe width="1120" height="630" src="https://www.youtube.com/embed/1n-HMSCDYtM?si=Nwak0OQucbV4N-qO" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen&gt;&lt;/iframe&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Biology is much more complex than Physics&lt;/h3&gt;
    &lt;div style="position:absolute; top:22%; left:15%; width: 80%; text-align: left;"&gt;
        &lt;b&gt;Physics is most effective in simple and controlled systems&lt;/b&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;Laws of physics connect fundamental particles and forces.&lt;/li&gt;
                &lt;li&gt;These laws explain properties of simple systems and homogeneous matter&lt;/li&gt;
                &lt;li&gt;Good understanding of systems at equilibrium or isolated systems &lt;/li&gt;
                &lt;li&gt;These laws also govern complex systems, but the connection between the laws and the behavior is hard to decipher&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;&lt;br&gt;
        &lt;b&gt;Biological complexity&lt;/b&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;Biological systems evolved -- layering complexity&lt;/li&gt;
                &lt;li&gt;Cells consist of thousands of molecular species, interacting in complicated ways&lt;/li&gt;
                &lt;li&gt;Biology is always in flux.&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Physics vs Biology&lt;/h4&gt;
    &lt;div style="position:absolute; top:15%; left:5%; width: 45%; text-align: left;"&gt;
    &lt;img src="https://upload.wikimedia.org/wikipedia/commons/1/1f/Two-body_Jacobi_coordinates.JPG"&gt;
    &lt;span class="ref"&gt;&lt;a href="https://commons.wikimedia.org/wiki/File:Two-body_Jacobi_coordinates.JPG"&gt;Wikipedia, by Brews Oshare&lt;/a&gt;&lt;/span&gt;
    &lt;font size=5&gt;
    &lt;ul&gt;
    &lt;li&gt; Equations that govern the dynamics
    &lt;li&gt; Exact predictions of future configuration
    &lt;/ul&gt;
    &lt;/font&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:15%; left:50%; width: 50%; text-align: left;" class="fragment"&gt;
    &lt;img src="/talk_images/981px-Signal_transduction_pathways.svg.png"&gt;
    &lt;span class="ref"&gt;&lt;a href="https://commons.wikimedia.org/w/index.php?curid=12081090"&gt;Wikipedia, by cybertory&lt;/a&gt;&lt;/span&gt;
    &lt;font size=5&gt;
    &lt;ul&gt;
    &lt;li&gt; Long, but incomplete, list of components
    &lt;li&gt; Only qualitative description of interactions
    &lt;/ul&gt;
    &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h2&gt;From description to quantitative understanding!&lt;/h2&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Quantitative questions&lt;/h3&gt;
    &lt;div style="position:absolute; top:22%; left:15%; width: 80%; text-align: left;"&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;How many human cells are in your body?&lt;/li&gt;
                &lt;li&gt;How many other cells?&lt;/li&gt;
                &lt;li&gt;How many ribosomes/signaling molecules are in a cell?&lt;/li&gt;
                &lt;li&gt;How do genes regulate each other?&lt;/li&gt;
                &lt;li&gt;How rapidly does a protein move from one end of the cell to another?&lt;/li&gt;
                &lt;li&gt;What fraction of transcription factors is bound to DNA?&lt;/li&gt;
                &lt;li&gt;What are the speed limits for biochemical reactions?&lt;/li&gt;
                &lt;li&gt;How are polarities and developmental gradients set up?&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
        &lt;font size="6" class="fragment"&gt;
            &lt;ul&gt;
                &lt;li&gt;&lt;b&gt;Not:&lt;/b&gt; Gene X causes Y&lt;/li&gt;
                &lt;li&gt;&lt;b&gt;But:&lt;/b&gt; 20% faster diffusion of gene X extends the gradient by $20\mu m$&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Dimensions and units&lt;/h3&gt;
    &lt;div style="position:absolute; top:22%; left:15%; width: 40%; text-align: left;"&gt;
        &lt;h5&gt;&lt;b&gt;Dimensions&lt;/b&gt;&lt;/h5&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;length&lt;/li&gt;
                &lt;li&gt;weight&lt;/li&gt;
                &lt;li&gt;energy&lt;/li&gt;
                &lt;li&gt;current&lt;/li&gt;
                &lt;li&gt;force&lt;/li&gt;
                &lt;li&gt;temperature&lt;/li&gt;
                &lt;li&gt;....&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:22%; left:45%; width: 45%; text-align: left;" class="fragment"&gt;
        &lt;h5&gt;&lt;b&gt;Units:&lt;/b&gt;&lt;/h5&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;length: meters, miles, feet, Angstrom&lt;/li&gt;
                &lt;li&gt;weight: grams, stones, &lt;/li&gt;
                &lt;li&gt;energy: Joules, calories&lt;/li&gt;
                &lt;li&gt;current: ampere&lt;/li&gt;
                &lt;li&gt;force: Newton&lt;/li&gt;
                &lt;li&gt;temperature: Celsius, Kelvin&lt;/li&gt;
                &lt;li&gt;....&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:15%; width: 80%; text-align: left;" class="fragment"&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;Dimensions describe the nature of a quantity&lt;/li&gt;
                &lt;li&gt;Units are conventions to measure them&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Comparing quantities&lt;/h3&gt;
    &lt;div style="position:absolute; top:22%; left:15%; width: 70%; text-align: left;"&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;Only quantities of the same dimension can be compared: length $X$ is greater than length $Y$ etc. There is no sense is which length $X$ can be greater than weight $Y$.&lt;/li&gt;
                &lt;li class="fragment"&gt;Units are conventions -- there is nothing fundamental about them. &lt;/li&gt;
                &lt;li class="fragment"&gt;Some unit systems are more convenient than others.&lt;/li&gt;
                &lt;li class="fragment"&gt;Everyday units are often inconvienent for biological processes&lt;/li&gt;
                &lt;li class="fragment"&gt;We can pick units to make things as simple as possible&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Laws of physics relate quantities of different dimensions&lt;/h3&gt;
    &lt;div style="position:absolute; top:18%; left:15%; width: 70%; text-align: left;"&gt;
        Take Newton's law:&lt;br&gt;
        &lt;font color=#BB2211&gt;
        $$ F = m \times a$$
        $$ \mathrm{Force} = \mathrm{mass} \times \mathrm{acceleration}$$&lt;br&gt;
        &lt;/font&gt;
        Relates quantities of different dimensions to each other.
        &lt;br&gt;&lt;br&gt;
        &lt;div class="fragment"&gt;
        Common units for the quantities involved are: &lt;br&gt;
        &lt;font color=#BB2211&gt;
        $$ \mathrm{[Newton]} = \mathrm{[Kilogram]} \times \mathrm{[meter/second^2]}$$&lt;br&gt;
        &lt;/font&gt;
        thereby defining the unit of force "Newton".
        &lt;/div&gt;
        &lt;br&gt;&lt;br&gt;
        &lt;div class="fragment"&gt;
        &lt;b&gt;The law is valid in any system of units!&lt;/b&gt;
        &lt;br&gt;Units are chosen by humans, the law itself is fundamental.
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Physical constants&lt;/h3&gt;
    &lt;div style="position:absolute; top:18%; left:15%; width: 70%; text-align: left;"&gt;
        Consider the gravitational law:
        &lt;br&gt;
        &lt;font color=#BB2211&gt;
        $$ F \sim \frac{m_1 m_2}{r^2}$$
        $$ \mathrm{Force} \sim \mathrm{mass^2}/\mathrm{length^2}$$&lt;br&gt;
        &lt;/font&gt;
        The quantities left and right do &lt;b&gt;not&lt;/b&gt; have the same dimensions!&lt;br&gt;

        Links force to masses and distance, but not what the absolute value of the force is.
        &lt;br&gt;
        &lt;div class="fragment"&gt;
        The missing link is established by the gravitational constant $G$:
        &lt;br&gt;
        &lt;font color=#BB2211&gt;
            $$ F = G\frac{m_1 m_2}{r^2}\quad \mathrm{with} \quad G \approx 6.67 \frac{m^3}{kg\,s^2}$$&lt;br&gt;
        &lt;/font&gt;
        The value of $G$ depends on the system of units we use.
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;This course: quantitative understanding of biology&lt;/h3&gt;
    &lt;div style="position:absolute; top:18%; left:15%; width: 70%; text-align: left;"&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;Laws of physics yield quantitative and predictive relationships and constraints for biology&lt;/li&gt;
                &lt;li&gt;Computer programming is essential to explore quantitative relationships and handle data&lt;/li&gt;
                &lt;li&gt;Units are absolutely critical to get right: &lt;br&gt;
                    If you calculate a &lt;i&gt;length&lt;/i&gt; and the result is in &lt;i&gt;seconds&lt;/i&gt; something went seriously wrong&lt;/li&gt;
                &lt;li&gt;Checking your units will catch many obvious mistakes.&lt;/li&gt;
                &lt;li&gt;Choosing your units wisely will make many calculations easier&lt;/li&gt;
            &lt;/ul&gt;
    &lt;/div&gt;

&lt;/section&gt;</content><category term="teaching"/></entry><entry><title>APOBEC3 deaminase editing in mpox virus as evidence for sustained human transmission since at least 2016</title><link href="/otoole_apobec3_2023.html" rel="alternate"/><published>2023-11-02T00:00:00+01:00</published><updated>2023-11-02T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-11-02:/otoole_apobec3_2023.html</id><summary type="html">&lt;p&gt;Historically, mpox has been characterized as an endemic zoonotic disease that transmits through contact with the reservoir rodent host in West and Central Africa. However, in May 2022, human cases of mpox were detected spreading internationally beyond countries with known endemic reservoirs. When the first cases from 2022 were sequenced …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Historically, mpox has been characterized as an endemic zoonotic disease that transmits through contact with the reservoir rodent host in West and Central Africa. However, in May 2022, human cases of mpox were detected spreading internationally beyond countries with known endemic reservoirs. When the first cases from 2022 were sequenced, they shared 42 nucleotide differences from the closest mpox virus (MPXV) previously sampled. Nearly all these mutations are characteristic of the action of APOBEC3 deaminases, host enzymes with antiviral function. Assuming APOBEC3 editing is characteristic of human MPXV infection, we developed a dual-process phylogenetic molecular clock that—inferring a rate of {\textasciitilde}6 APOBEC3 mutations per year—estimates that MPXV has been circulating in humans since 2016. These observations of sustained MPXV transmission present a fundamental shift to the perceived paradigm of MPXV epidemiology as a zoonosis and highlight the need for revising public health messaging around MPXV as well as outbreak management and control.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Physics of Life</title><link href="/2023_PoLI_overview.html" rel="alternate"/><published>2023-11-01T00:00:00+01:00</published><updated>2023-11-01T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-11-01:/2023_PoLI_overview.html</id><summary type="html">&lt;p&gt;In this course, we will explore how general physical principles govern the organization of biological processes.
We will for example discuss how matter moves around in cells, how cells process information, how genomes are organized, or how biology exploits self-organization principles.&lt;/p&gt;
&lt;p&gt;During the course, we will use frequently use mathematical …&lt;/p&gt;</summary><content type="html">&lt;p&gt;In this course, we will explore how general physical principles govern the organization of biological processes.
We will for example discuss how matter moves around in cells, how cells process information, how genomes are organized, or how biology exploits self-organization principles.&lt;/p&gt;
&lt;p&gt;During the course, we will use frequently use mathematical derivations and concepts from physics that should be familiar to you from high school or the introductory lectures in semesters 1 and 2.
Furthermore, many exercises will involve programming and you will use the computer to solve problems.
The preferred programming language for this is Python, but you can use whatever programming language you like (for example R or Matlab).
The University of Basel now provides a &lt;a href="https://jupyterhub-edu.scicore.unibas.ch/"&gt;Jupyter Hub&lt;/a&gt; for students that you can use when you don't have a suitable computer.&lt;/p&gt;
&lt;p&gt;In addition, I will suggest material by third parties (for example the excellent videos on mathematics by &lt;a href="https://3Blue1Brown.com"&gt;3Blue1Brown&lt;/a&gt;) to give additional background and revise necessary mathematical techniques.&lt;/p&gt;
&lt;h3&gt;Syllabus&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;The relevant scales and dimensions of biophysics&lt;/li&gt;
&lt;li&gt;Laws of physics and differential equations&lt;/li&gt;
&lt;li&gt;Growth processes&lt;/li&gt;
&lt;li&gt;Models of gene regulation&lt;/li&gt;
&lt;li&gt;Random walks, diffusion and Stokes-Einstein relation&lt;/li&gt;
&lt;li&gt;Elements of polymer physics&lt;/li&gt;
&lt;li&gt;Chromatin organization&lt;/li&gt;
&lt;li&gt;Membraneless organelles and liquid-liquid phase transitions&lt;/li&gt;
&lt;li&gt;Discrimination and fidelity.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;Literature&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://routledgetextbooks.com/textbooks/9780815344506/default.php"&gt;The physical biology of the Cell&lt;/a&gt; by Rob Phillips et al&lt;/li&gt;
&lt;li&gt;&lt;a href="http://book.bionumbers.org/"&gt;Cell biology by the numbers&lt;/a&gt; by Rob Phillips and Ron Milo&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Lectures&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Preparatory material&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=WUvTyaaNkzM"&gt;Refresher on calculus (3Blue1Brown)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.3blue1brown.com/lessons/differential-equations"&gt;Refresher on differential equations (3Blue1Brown)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.anaconda.com/anaconda/install/"&gt;Installation of Python and jupyter notebooks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="/PoL_notebooks/week00_programming_resources.ipynb"&gt;Jupyter notebooks with links to programming resources&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Lecture 1 -- The relevant scales: sizes, energies, concentrations&lt;ul&gt;
&lt;li&gt;&lt;a href="/PoLI_2023_week01_UnitsAndLaws.html"&gt;Quantitative problems, dimensions, and units&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How big are biological entities? &lt;a href="https://tube.switch.ch/videos/439dc6b7"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture01a_SizesAndLogScales.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture01a_SizesAndLogScales.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Lecture 2 -- scales continued, differential equations, friction.&lt;ul&gt;
&lt;li&gt;Volumes and concentrations? &lt;a href="https://tube.switch.ch/videos/26d61d3c"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture01b_VolumesAndConcentrations.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture01b_VolumesAndConcentrations.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Energies and Forces &lt;a href="https://tube.switch.ch/videos/5e03fb03"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture01c_EnergiesAndForces.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture01c_EnergiesAndForces.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Genome sizes &lt;a href="https://tube.switch.ch/videos/a91a6c31"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture01d_GenomeSizes.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture01d_GenomeSizes.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Differential Equations &lt;a href="/PoL_notebooks/2023/lecture02a_differentialequations.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture02a_differentialequations.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Lecture 3 -- Biological growth processes, gene regulation&lt;ul&gt;
&lt;li&gt;Logistic growth, &lt;a href="/PoL_notebooks/2023/lecture02b_Growth.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture02b_Growth.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;SIR and predator-prey &lt;a href="/PoL_notebooks/2023/lecture02c_SIR_and_LV_models.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture02c_SIR_and_LV_models.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Dynamical Systems &lt;a href="/PoL_notebooks/2023/lecture02d_DynamicalSystems.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture02d_DynamicalSystems.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Gene Regulation Basics &lt;a href="https://tube.switch.ch/videos/8d661dd6"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture03a_generegulation.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture03a_generegulation.ipynb"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Gene Regulation Basics &lt;a href="https://tube.switch.ch/videos/2781a72f"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture03b_SimpleModelsOfGeneRegulation.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture03b_SimpleModelsOfGeneRegulation.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Auto-activation and repression. &lt;a href="https://tube.switch.ch/videos/c73b3b6e"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/lecture03d_AutoActivationRepression.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/pdfs/lecture03d_AutoActivationRepression.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Lecture 4 -- Random walks and diffusion&lt;ul&gt;
&lt;li&gt;Random protein production: &lt;a href="/PoL_notebooks/2023/lecture04_noisyExpression.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture04_noisyExpression.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Random walks: &lt;a href="https://tube.switch.ch/videos/f618f8ff"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture04a_RandomWalks.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture04a_RandomWalks.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Diffusion equation: &lt;a href="https://tube.switch.ch/videos/438c675b"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture04b_DiffusionEquation.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture04b_DiffusionEquation.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Boundary and initial conditions: &lt;a href="https://tube.switch.ch/videos/d4024a9f"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture04c_BoundaryAndInitialConditions.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture04c_BoundaryAndInitialConditions.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Diffusive transport: &lt;a href="https://tube.switch.ch/videos/634aedea"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture04d_DiffusiveFlux.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture04d_DiffusiveFlux.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Stokes-Einstein relation: &lt;a href="https://tube.switch.ch/videos/63a3bae0"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture04e_StokesEinsteinRelation.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture04e_StokesEinsteinRelation.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=ly4S0oi3Yz8"&gt;Background: Introduction to partial differential equations (3Blue1Brown)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=ToIXSwZ1pJU"&gt;Background: Solutions to the heat and diffusion equation (3Blue1Brown)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Lecture 5 -- Gene Regulation in Space&lt;ul&gt;
&lt;li&gt;Morphogen gradients -- regulation in space. &lt;a href="https://tube.switch.ch/videos/b2a4db07"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture05a_RegulationInSpace.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture05a_RegulationInSpace.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=Ncxs21KEj0g"&gt;Background: video lecture by Eric Wieschaus on Drosophila development&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://youtu.be/cpOf5el9GIk"&gt;Background: video lecture by Eric Wieschaus on Gradient formation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Lecture 6 -- Phase transitions in cell biology&lt;ul&gt;
&lt;li&gt;Phase transitions. &lt;a href="/PoL_notebooks/2023/lecture06a_membranelessOrganelles.pdf"&gt;slides&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Simple models of phase transitions, &lt;a href="https://tube.switch.ch/videos/653b6cd9"&gt;lecture&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture06b_SimpleModelOfPhaseTransitions.ipynb"&gt;notebook&lt;/a&gt;, &lt;a href="/PoL_notebooks/2023/lecture06b_SimpleModelOfPhaseTransitions.pdf"&gt;notebook-PDF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=AP47mIkd-h0"&gt;Background: video lecture by Cliff Brangwynne&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;</content><category term="teaching"/><category term="biophysics"/></entry><entry><title>SARS-CoV-2 evolution in the Omicron era</title><link href="/roemer_sars-cov-2_2023.html" rel="alternate"/><published>2023-10-15T00:00:00+02:00</published><updated>2023-10-15T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-10-15:/roemer_sars-cov-2_2023.html</id><summary type="html">&lt;p&gt;Since SARS-CoV-2 BA.5 (Omicron) emerged and spread in 2022, Omicron lineages have markedly diversified. Here we review the evolutionary trajectories and processes that underpin the emergence of these lineages, and identify the most prevalent sublineages. We discuss the potential origins of second-generation BA.2 lineages. Simple and complex recombination …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Since SARS-CoV-2 BA.5 (Omicron) emerged and spread in 2022, Omicron lineages have markedly diversified. Here we review the evolutionary trajectories and processes that underpin the emergence of these lineages, and identify the most prevalent sublineages. We discuss the potential origins of second-generation BA.2 lineages. Simple and complex recombination, antigenic drift and convergent evolution have enabled SARS-CoV-2 to accumulate mutations that alter its antigenicity. We also discuss the potential evolutionary trajectories of SARS-CoV-2 in the future.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>SARS-COV-2 workshop</title><link href="/202309_badhonnef_SC2.html" rel="alternate"/><published>2023-09-14T00:00:00+02:00</published><updated>2023-09-14T00:00:00+02:00</updated><author><name>Cornelius Roemer &amp; Richard Neher (modified from Valentin Druelle)</name></author><id>tag:None,2023-09-14:/202309_badhonnef_SC2.html</id><summary type="html">&lt;h1&gt;Analysing SARS-COV-2 data&lt;/h1&gt;
&lt;p&gt;This is the last part of the Nextstrain workshop. One can either try things with their own data or choose to focus on SARS-COV-2. This document provides some guidelines to the SARS-COV-2 analysis.&lt;/p&gt;
&lt;h2&gt;Questions&lt;/h2&gt;
&lt;p&gt;These are some suggestions concerning the questions you should try to answer using …&lt;/p&gt;</summary><content type="html">&lt;h1&gt;Analysing SARS-COV-2 data&lt;/h1&gt;
&lt;p&gt;This is the last part of the Nextstrain workshop. One can either try things with their own data or choose to focus on SARS-COV-2. This document provides some guidelines to the SARS-COV-2 analysis.&lt;/p&gt;
&lt;h2&gt;Questions&lt;/h2&gt;
&lt;p&gt;These are some suggestions concerning the questions you should try to answer using Nextstrain. Feel free to focus on other questions if you have something specific in mind.
- How many clades is there in your data ? What do they correspond to?
- How fast does SARS-COV-2 evolve overall?
- Is the root of the tree correctly inferred?
- Where are most of the mutations happening? What does this gene correspond to?
- What are some of the mutations characterizing the different variants?&lt;/p&gt;
&lt;h2&gt;Downloading sequence dataset&lt;/h2&gt;
&lt;p&gt;Use online resources to create a SARS-COV-2 sequence dataset of around 1000 sequences. In our case we will be using &lt;a href="https://www.ncbi.nlm.nih.gov/labs/virus/vssi/#/virus?SeqType_s=Nucleotide&amp;amp;VirusLineage_ss=taxid:2697049"&gt;NCBI virus resource&lt;/a&gt; to generate a suitable dataset.&lt;/p&gt;
&lt;p&gt;You will arrive there&lt;/p&gt;
&lt;p&gt;&lt;img alt src="/teaching_images/202203_Qlife/Qlife_workshop_2.png"&gt;&lt;/p&gt;
&lt;p&gt;The interface allows you to download a random selection of the many sequences that are available. This will be helpful for our purpose as we only want to analyze a few thousand sequences, not a few millions.
First, filter the sequences to a subset that best suits your questions&lt;/p&gt;
&lt;p&gt;&lt;img alt src="/teaching_images/202203_Qlife/Qlife_workshop_3.png"&gt;&lt;/p&gt;
&lt;p&gt;Then click download, specify the size of the random sample, and define the header you want for your sequences.&lt;/p&gt;
&lt;p&gt;&lt;img alt src="/teaching_images/202203_Qlife/Qlife_workshop_4.png"&gt;
&lt;img alt src="/teaching_images/202203_Qlife/Qlife_workshop_5.png"&gt;
&lt;img alt src="/teaching_images/202203_Qlife/Qlife_workshop_6.png"&gt;&lt;/p&gt;
&lt;p&gt;One also needs a reference sequence for the future alignment : https://www.ncbi.nlm.nih.gov/nuccore/MN908947.3/&lt;/p&gt;
&lt;p&gt;&lt;img alt src="/teaching_images/202203_Qlife/Qlife_workshop_7.png"&gt;
Take this sequence and save it as &lt;code&gt;reference.gb&lt;/code&gt; in your data folder.&lt;/p&gt;
&lt;h2&gt;Curating the dataset&lt;/h2&gt;
&lt;p&gt;Look at what you get on Aliview or similar. It's around 500MB.
Make sure the sequence names contain the relevant information.&lt;/p&gt;
&lt;h2&gt;Building the pipeline&lt;/h2&gt;
&lt;p&gt;The steps are very similar to the Zika tutorial, except that we must create the metadata file from the sequence names and change the parameters in the filter part to correctly subsample the dataset. You need this subsampling step otherwise it the following steps will take a long time to run (too many sequences).&lt;/p&gt;
&lt;p&gt;We suggest putting the raw data and everything you want to keep in a folder called &lt;code&gt;data&lt;/code&gt;. The files that you want to clean from one analysis to the next will be in another folders that will be removed via a snakemake &lt;code&gt;clean&lt;/code&gt; rule.&lt;/p&gt;
&lt;p&gt;Now it is time to create the snakemake pipeline. You can inspire yourself from the zika tutorial as it will be very similar.&lt;/p&gt;
&lt;p&gt;First define the input files you are going to use:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;INPUT_FASTA&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;data/SC2_sequences.fasta&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;REFERENCE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;data/reference.gb&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;DROPPED&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;data/dropped.txt&amp;quot;&lt;/span&gt;
&lt;span class="n"&gt;AUSPICE_CONFIG&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;auspice_config.json&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;You need to create the &lt;code&gt;dropped.txt&lt;/code&gt; file even if it stays empty.&lt;/p&gt;
&lt;p&gt;Also define the cleaning rule:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;rule&lt;/span&gt; &lt;span class="n"&gt;clean&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;Removing directories: &lt;/span&gt;&lt;span class="si"&gt;{params}&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="s2"&gt;&amp;quot;results&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;&amp;quot;visualisation&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;shell&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="s2"&gt;&amp;quot;rm -rfv &lt;/span&gt;&lt;span class="si"&gt;{params}&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h3&gt;Metadata&lt;/h3&gt;
&lt;p&gt;The metadata concerning our sequence is contained in their headers. To create the metadata from these headers one can use the &lt;code&gt;augur parse&lt;/code&gt; command.&lt;/p&gt;
&lt;p&gt;A snakemake rule can be created for this, for example:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;rule&lt;/span&gt; &lt;span class="n"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;        Creating the metadata file from raw sequences {input.sequences}&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
    &lt;span class="nb"&gt;input&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;sequences&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;INPUT_FASTA&lt;/span&gt;
    &lt;span class="n"&gt;output&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;metadata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;data/metadata.tsv&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;sequences&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;data/sequences.fasta&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;fields&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;quot;accession country date&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;shell&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="sd"&gt;        augur parse \&lt;/span&gt;
&lt;span class="sd"&gt;            --sequences {input.sequences} \&lt;/span&gt;
&lt;span class="sd"&gt;            --output-sequences {output.sequences} \&lt;/span&gt;
&lt;span class="sd"&gt;            --output-metadata {output.metadata} \&lt;/span&gt;
&lt;span class="sd"&gt;            --fields {params.fields}&lt;/span&gt;
&lt;span class="sd"&gt;        &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</content><category term="teaching"/><category term="bioinformatics"/><category term="phylogenetics"/></entry><entry><title>Nextstrain workshop at Bad Honnef</title><link href="/202309_badhonnef_nextstrain.html" rel="alternate"/><published>2023-09-14T00:00:00+02:00</published><updated>2023-09-14T00:00:00+02:00</updated><author><name>Cornelius Roemer and Richard Neher</name></author><id>tag:None,2023-09-14:/202309_badhonnef_nextstrain.html</id><summary type="html">&lt;p&gt;This workshop provides an overview of phylogenetic analysis and interactive visualization using Nextstrain.
&lt;a href="https://nextstrain.org"&gt;Nextstrain&lt;/a&gt; is an open-source project to facilitate phylodynamic analysis, data integration, and visualization of large data sets of viral and bacterial pathogens. The analysis results can be visualized on your own computer or shared on the web …&lt;/p&gt;</summary><content type="html">&lt;p&gt;This workshop provides an overview of phylogenetic analysis and interactive visualization using Nextstrain.
&lt;a href="https://nextstrain.org"&gt;Nextstrain&lt;/a&gt; is an open-source project to facilitate phylodynamic analysis, data integration, and visualization of large data sets of viral and bacterial pathogens. The analysis results can be visualized on your own computer or shared on the web.&lt;/p&gt;
&lt;p&gt;&lt;img alt="QR" src="/teaching_images/202309_badhonnef_QR.png"&gt;&lt;/p&gt;
&lt;h3&gt;Prerequisites&lt;/h3&gt;
&lt;p&gt;Please follow the Nextstrain CLI installation instructions on &lt;a href="https://docs.nextstrain.org/en/latest/install.html"&gt;docs.nextstrain.org&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;These are available for all the major operating systems (Windows, Mac, Linux). On Windows you need you setup WSL2 and install Docker.&lt;/p&gt;
&lt;p&gt;We recommend you configure either the &lt;code&gt;docker&lt;/code&gt; or &lt;code&gt;conda&lt;/code&gt; runtime for the workshop:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;nextstrain&lt;span class="w"&gt; &lt;/span&gt;setup&lt;span class="w"&gt; &lt;/span&gt;conda
nextstrain&lt;span class="w"&gt; &lt;/span&gt;setup&lt;span class="w"&gt; &lt;/span&gt;docker
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Check that everthing works by running&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;nextstrain&lt;span class="w"&gt; &lt;/span&gt;check-setup&lt;span class="w"&gt; &lt;/span&gt;--set-default
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;For the rest of the tutorial, we assume that you are running all commands inside the &lt;code&gt;nextstrain shell&lt;/code&gt; which you can start with &lt;code&gt;nextstrain shell .&lt;/code&gt; and exit with &lt;code&gt;ctrl+d&lt;/code&gt; or by typing &lt;code&gt;exit&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Within this shell, all necessary tools are installed and ready to be used.&lt;/p&gt;
&lt;h3&gt;Overview and Basics&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="201901_krisp_intro.html"&gt;Basics of phylogenetic analysis&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="201901_krisp_auspice.html"&gt;Exploring interactive phylogenies with Auspice&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="201909_nextstrain_toolchain.html"&gt;The nextstrain toolchain&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="202203_qlife_augur.html"&gt;Analysis with augur and Snakemake -- Virus tutorial &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Next steps&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="202309_badhonnef_SC2.html"&gt;Analysis with augur and Snakemake -- SARS-CoV_2 Challenge&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="201909_tips_and_tricks.html"&gt;Important steps in setting up your own analysis&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Additional steps and details&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="201910_RIVM_refine.html"&gt;Options for time tree inference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="201910_RIVM_color_geo.html"&gt;Specify color maps and geographic information&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="201910_RIVM_advanced_snakemake.html"&gt;Advanced snakemake (wildcards, functions, default rules)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="201910_RIVM_meta_from_fasta.html"&gt;Parsing metadata from fasta files&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="201910_RIVM_community.html"&gt;Community pages on nextstrain&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Important links&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://nextstrain.org"&gt;nextstrain.org&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://nextstrain.org/docs/getting-started/introduction"&gt;nextstrain documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nextstrain/zika-tutorial"&gt;Example repository with zika sequences&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/neherlab/treetime"&gt;Time-scaled phylogenies with TreeTime&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://conda.io/docs/user-guide/install/download.html"&gt;getting miniconda&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://snakemake.readthedocs.io/en/stable/tutorial/basics.html"&gt;snakemake tutorial&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><category term="teaching"/><category term="bioinformatics"/><category term="phylogenetics"/></entry><entry><title>Viral genetic clustering and transmission dynamics of the 2022 mpox outbreak in Portugal</title><link href="/borges_viral_2023.html" rel="alternate"/><published>2023-09-11T00:00:00+02:00</published><updated>2023-09-11T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-09-11:/borges_viral_2023.html</id><summary type="html">&lt;p&gt;Pathogen genome sequencing during epidemics enhances our ability to identify and understand suspected clusters and investigate their relationships. Here, we combine genomic and epidemiological data of the 2022 mpox outbreak to better understand early viral spread, diversification and transmission dynamics. By sequencing 52\% of the confirmed cases in Portugal, we …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Pathogen genome sequencing during epidemics enhances our ability to identify and understand suspected clusters and investigate their relationships. Here, we combine genomic and epidemiological data of the 2022 mpox outbreak to better understand early viral spread, diversification and transmission dynamics. By sequencing 52\% of the confirmed cases in Portugal, we identified the mpox virus sublineages with the highest impact on case numbers and fitted them into a global context, finding evidence that several international sublineages probably emerged or spread early in Portugal. We estimated a 62\% infection reporting rate and that 1.3\% of the population of men who have sex with men in Portugal were infected. We infer the critical role played by sexual networks and superspreader gatherings, such as sauna attendance, in the dissemination of mpox virus. Overall, our findings highlight genomic epidemiology as a tool for the real-time monitoring and control of mpox epidemics, and can guide future vaccine policy in a highly susceptible population.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>"Adaptation and immune escape of SARS-CoV-2"</title><link href="/202308_SSM.html" rel="alternate"/><published>2023-08-31T00:00:00+02:00</published><updated>2023-08-31T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-08-31:/202308_SSM.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1h4_9CjiApdz3Urdfv0I7EitOhmY0R_6onPO2Z5_Pl68/edit#slide=id.p"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Fitness effects of mutations to SARS-CoV-2 proteins</title><link href="/bloom_fitness_2023.html" rel="alternate"/><published>2023-08-19T00:00:00+02:00</published><updated>2023-08-19T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-08-19:/bloom_fitness_2023.html</id><summary type="html">&lt;p&gt;Knowledge of the fitness effects of mutations to SARS-CoV-2 can inform assessment of new variants, design of therapeutics resistant to escape, and understanding of the functions of viral proteins. However, experimentally measuring effects of mutations is challenging: we lack tractable lab assays for many SARS-CoV-2 proteins, and comprehensive deep mutational …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Knowledge of the fitness effects of mutations to SARS-CoV-2 can inform assessment of new variants, design of therapeutics resistant to escape, and understanding of the functions of viral proteins. However, experimentally measuring effects of mutations is challenging: we lack tractable lab assays for many SARS-CoV-2 proteins, and comprehensive deep mutational scanning has been applied to only two SARS-CoV-2 proteins. Here we develop an approach that leverages millions of publicly available SARS-CoV-2 sequences to estimate effects of mutations. We first calculate how many independent occurrences of each mutation are expected to be observed along the SARS-CoV-2 phylogeny in the absence of selection. We then compare these expected observations to the actual observations to estimate the effect of each mutation. These estimates correlate well with deep mutational scanning measurements. For most genes, synonymous mutations are nearly neutral, stop-codon mutations are deleterious, and amino-acid mutations have a range of effects. However, some viral accessory proteins are under little to no selection. We provide interactive visualizations of effects of mutations to all SARS-CoV-2 proteins (https://jbloomlab.github.io/SARS2-mut-fitness). The framework we describe is applicable to any virus for which the number of available sequences is sufficiently large that many independent occurrences of each neutral mutation are observed.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>"Adaptation and immune escape of SARS-CoV-2"</title><link href="/202306_MCID.html" rel="alternate"/><published>2023-06-29T00:00:00+02:00</published><updated>2023-06-29T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-06-29:/202306_MCID.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/13kwSQJRr2VBt0GbI3T8lLP-q-8uD0KFOIVsD8o_WTLw/edit#slide=id.p"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Waves driven by immune evasive variants: How large and how often?</title><link href="/202306_size_of_waves.html" rel="alternate"/><published>2023-06-18T00:00:00+02:00</published><updated>2023-06-18T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-06-18:/202306_size_of_waves.html</id><summary type="html">&lt;h4&gt;&lt;a href="/static/2023-06_size_of_waves.ipynb"&gt;Click here for the IPython Notebook used to generate this post&lt;/a&gt;&lt;/h4&gt;
&lt;h4&gt;Revised on 2023-07-05&lt;/h4&gt;
&lt;p&gt;Since late 2020, the dynamics of SARS-CoV-2 incidence is driven by the emergence of novel variants that are either more transmissible than competing variants, or have changed in such a way that they can (partially) evade …&lt;/p&gt;</summary><content type="html">&lt;h4&gt;&lt;a href="/static/2023-06_size_of_waves.ipynb"&gt;Click here for the IPython Notebook used to generate this post&lt;/a&gt;&lt;/h4&gt;
&lt;h4&gt;Revised on 2023-07-05&lt;/h4&gt;
&lt;p&gt;Since late 2020, the dynamics of SARS-CoV-2 incidence is driven by the emergence of novel variants that are either more transmissible than competing variants, or have changed in such a way that they can (partially) evade population immunity.  Immune evasive variants can spread faster due to a larger pool of susceptible hosts.
The spread of such contagious diseases and the competition between variants is typically modeled by Susceptible-Infected-Recovered (SIR) models.
These SIR models come in many flavors, but even more complex versions are rather crude approximations of the spread of a diverse virus in a population that is heterogenous in many aspects, including immunological, demographic, mobility, contact patters, etc.
As a result these models are of limited use for quantitative predictions and inference, but they can inform intuition and illuminate how observed patterns depend on phenomenological parameters that capture general aspects of spread.
The latter is the objective of this note and it is mostly reiterating well known material from textbooks.
But I find myself having to look them up now and then and it is useful for me to have them all in the same place.
In particular, I will discuss&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#no-waning"&gt;how the final epidemic size in absence of waning depends on model parameters&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#with-waning"&gt;how the fixed point, frequency of waves, and dampening of oscillations depend on the rate of waning&lt;/a&gt;, and&lt;/li&gt;
&lt;li&gt;&lt;a href="#size-of-waves-caused-by-invading-variants"&gt;the size of variant waves and how they depend on population heterogeneity&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The last point arose in frequently when we observed a novel variant growing in proportion at a certain rate: How many people will get infected in such a variant driven wave.
It turns out that the size of a wave depends strongly on population heterogeneity.&lt;/p&gt;
&lt;p&gt;I will close with some &lt;a href="#incorporating-heterogeneous-population-immunity-in-sir-models"&gt;thoughts on how to incorporate gradual waning of immunity&lt;/a&gt; in the population, for example via gradually decreasing neutralization titers, into SIR models. Waves generated by immune evasive in these models fall between the extreme cases expected from simple SIR models without population heterogeneity.&lt;/p&gt;
&lt;h2&gt;Basic SIR model with waning&lt;/h2&gt;
&lt;p&gt;The basic SIR model is given by
$$
\dot{S} = -\beta I S + \gamma (1-S)
$$
$$
\dot{I} = \beta I S - \nu I
$$&lt;/p&gt;
&lt;p&gt;where \(\nu\) is the recovery rate of an infected individual. We will use this rate to set the unit of time, that is we measure time in units of pathogen generations and set to \(\nu=1\).
For diseases of interest here, \(\nu \approx 1/\mathrm{week}\) or \(2/\mathrm{week}\) such that there are 50 to 100 generations per year.
The parameters \(\beta\) and \(\gamma\) are the rate at which the disease spreads from infected to susceptible individuals and the rate at which recovered individuals loose their immunity and become susceptible again, respectively.
The &lt;em&gt;basic reproductive number&lt;/em&gt; is given by \(R_0 = \beta/\nu\), while the initial growth rate of an outbreak in a completely susceptible population is given by \(\beta - \nu\).  We ignore population turn-over in this note.&lt;/p&gt;
&lt;p&gt;The behavior of this model with and without waning (\(\gamma=0\) or \(\gamma&amp;gt;0\)) is shown below. The model is solved numerically, see the &lt;a href="/static/2023-06_size_of_waves.ipynb"&gt;notebook&lt;/a&gt; for the code.&lt;/p&gt;
&lt;p&gt;&lt;img alt="png" src="/images/size_of_waves_output_2_0.png"&gt;&lt;/p&gt;
&lt;p&gt;As expected, the numerical solution above shows that the initial dynamics do not depend on \(\gamma\).
This holds as long as waning is slow compared to the duration of the first wave.
After the initial peak, the solution with waning exhibits a damped oscillation around a fixed point.
Without waning, the pool of susceptibles is irreversibly reduced and so small that it does not support pathogen spread. The system hence settles to a disease free state \(I(t)=0\) with 94% of the population immune (in the above example). Both the final epidemic size in absence of waning and the equilibrium properties with waning can be explored analytically.&lt;/p&gt;
&lt;p&gt;&lt;a name="no-waning"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Final epidemic size&lt;/h2&gt;
&lt;p&gt;Without waning, the residual susceptibility is simply the fraction of people that didn't get infected during the wave. To solve for the final size (&lt;a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3506030/"&gt;See Miller (2012) for a detailed discussion&lt;/a&gt;) for \(\gamma=0\), one divides \(\dot{I}\) by \(\dot{S}\) to obtain
$$
\frac{dI}{dS} = -1 + \frac{1}{\beta S}
$$
which can be integrated
$$
I(t) - I(0) = S(0) - S(t)  + \frac{\log(S(0)/S(t))}{\beta}
$$
For \(t\to \infty\), \(I(t) \to 0\) and \(I(0)\) can be chosen infinitesimally small such that the final susceptibility is the solution of this transcendental equation:
$$
S(t_\infty) = S(0)e^{-\beta (S(0) - S(t_\infty))}
$$&lt;/p&gt;
&lt;p&gt;For large \(\beta\) and an initially completely susceptible population \(S(0)=1\), \(S(\infty)\approx e^{-\beta}\).
For \(\beta\) close to 1 we can expand the exponential and solve for \(R(t_\infty) = 1-S(t_\infty)\)
$$
\begin{split}
R(t_\infty) &amp;amp; = 1 - e^{-\beta R(t_\infty)} \approx  \beta R(t_\infty) - \frac{\beta^2 R(t_\infty)^2}{2}  + \cdots
\end{split}
$$
This linear approximation yields \(R(t_\infty) \approx 2(\beta-1)\) confirming the notion that a similar of people are infected before and after the peak of the wave. The full equation can be solved iteratively.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;beta&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;1.4&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;final_epidemic_size&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;beta&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max_iter&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;max_iter&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;max_iter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;beta&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="n"&gt;Sf&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;S0&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max_iter&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;Sf&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;beta&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Sf&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;Sf&lt;/span&gt;

&lt;span class="n"&gt;beta&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;final size for &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;beta&lt;/span&gt;&lt;span class="si"&gt;=}&lt;/span&gt;&lt;span class="s2"&gt; is: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;final_epidemic_size&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;beta&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;S0&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;1.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;1.3f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nv"&gt;final&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;size&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;beta&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;is&lt;/span&gt;:&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;.&lt;span class="mi"&gt;940&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;a name="with-waning"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Equilibrium with waning&lt;/h2&gt;
&lt;p&gt;With positive \(\gamma\), there is a non-trivial fix point at
$$
\bar{S} = \beta^{-1} \quad \mathrm{and} \quad \bar{I} = \gamma(1-\beta^{-1}) =  \gamma(1-\bar{S})
$$
This fixed point has the intuitive property that average number of secondary cases \(R_e = \beta\bar{S} = 1\) and that the average incidence is rate at which immune individuals become susceptible (the product of the rate of waning and the size of the immune compartment \(1-\bar{S}\)).
Deviations \(\delta S\) and \(\delta I\) from this steady state (\(\bar{S}, \bar{I}\)) can be analyzed by linear perturbation theory.
In matrix form, the linearized system is given by
$$
\begin{pmatrix}
\dot{\delta S}\\
\dot{\delta I}
\end{pmatrix} =
\begin{pmatrix}
-\gamma \beta &amp;amp; -1\\
\gamma (\beta-1) &amp;amp; 0
\end{pmatrix}
\begin{pmatrix}
\delta S\\
\delta I
\end{pmatrix}
$$
with characteristic equation \(-\lambda(\gamma\beta - \lambda) + \gamma (\beta-1)=0\) and eigenvalues
$$
\lambda_{1/2} = -\frac{\gamma \beta}{2} \pm \sqrt{\gamma^2 \beta^2/4 - \gamma(\beta -1)}
$$
The corresponding right-eigenvectors are
$$
v_{1/2} = \begin{pmatrix} -1 \\ \lambda_{1/2} + \gamma \beta  \end{pmatrix}
$$
When \(\gamma &amp;lt; \frac{4}{\beta(1- \beta)}\), as is true in cases of interest, the system exhibits dampened oscillations with a frequency
$$
\omega = \sqrt{\gamma(\beta -1) - \gamma^2 \beta^2/4} \approx \sqrt{\gamma(\beta-1)}\left(1 - \frac{\gamma\beta^2}{8(\beta-1)}+\ldots \right)
$$
and a decay time \(\tau = \frac{2}{\gamma\beta}\).&lt;/p&gt;
&lt;p&gt;A period \(T\) is thus related to \(\gamma\) and \(\beta\) via \(2\pi = \omega T \approx \sqrt{\gamma(\beta-1)}T\) such that the rate of waning is \(\gamma = \frac{4\pi^2}{T^2(\beta-1)}\).
With \(\beta\) somewhere around 5 and waves every 4 months (20-25 serial intervals), we obtain \(\gamma = \frac{4\pi^2}{4\cdot{} 25^2}\approx \frac{1}{60}\) per serial interval.
Note that this rate of waning includes contributions from viral evolution, which will be discontinuous jumps associated with the emergence of novel variants, and individual loss of immunity which will be gradual at the population level.&lt;/p&gt;
&lt;h3&gt;Linear solution around the fixed point&lt;/h3&gt;
&lt;p&gt;To calculate the coefficients of the linear solution with the above eigenvalues and eigenvectors, we need the left eigenvectors
$$
u_{1/2} = \frac{1}{\gamma (\beta-1)}\left(\begin{matrix} \gamma (\beta-1) \ \lambda_{1/2} + \gamma \beta  \end{matrix}\right)
$$
which scaled such that \(v_i \cdot u_i = 1\). Coefficients of the solution
$$
\begin{pmatrix}
S\\
I
\end{pmatrix} =
\begin{pmatrix}
\bar{S}\\
\bar{I}
\end{pmatrix} +
e^{-t/\tau} \left(a_1 e^{i\omega t} + a_2 e^{-i \omega t}\right)
$$
where \(a_i = u_i \left(
\delta S(0),
\delta I(0)
\right)^t
\)&lt;/p&gt;
&lt;p&gt;&lt;img alt="png" src="/images/size_of_waves_output_9_0.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;a name="size-of-waves-caused-by-invading-variants"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Size of waves caused by invading variants&lt;/h2&gt;
&lt;p&gt;After having explored the size of an initial outbreak and the equilibrium in a population where immunity wanes, let's consider a new, initially rare, variant that grows at a rate \(\alpha\) in a population where the resident variant is at equilibrium.
This growth rate is related to \(\beta^{*} \) and the susceptibility \(S^{*} \) of the new variant via \(\alpha = \beta^{*} S^{*} - 1\).&lt;/p&gt;
&lt;p&gt;Within this simple model, a novel variant could grow with rate \(\alpha\) for different reasons&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Transmissibility&lt;/strong&gt;: The variant is more transmissible with increased \(\beta^{*}\) but unchanged \(S^{*}=S\), no immune evasion. In this case \(\beta^* = \frac{1+\alpha}{S} = (1 + \alpha)\beta\).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Zero-One immune evasion&lt;/strong&gt;: The variant grows because a fraction of the population is completely susceptible again but \(\beta^*=\beta\) is unchanged. In this case, the new susceptibility is \(S^* = S (1+\alpha)\).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Uniform immune evasion&lt;/strong&gt;: The variant grows because immune protection of the entire population is reduced. This would correspond to a model with \(S^* = 1\) and \(\beta^* = 1+\alpha\) (This ignores the previously susceptible fraction, but this will be small for a disease with large \(R_0\)).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These three scenarios (mixtures of them are of course possible) lead to waves of rather different size. Since we are concerned with the wave caused by a single invading variant, we can ignore waning and set \(\gamma=0\). Despite identical initial growth rates, the size of the wave is much higher when transmission is supported by slow spread in the entire population compared to fast spread in a small completely susceptible population. When significant waning occurs over the course of the wave caused by the new variant, the epidemic sizes of the different scenarios become more similar.&lt;/p&gt;
&lt;p&gt;&lt;img alt="png" src="/images/size_of_waves_output_11_0.png"&gt;&lt;/p&gt;
&lt;p&gt;Over the past 18 months, we have frequently seen variants with doubling times between one and two weeks, corresponding to growth rates between 0.25 and 0.5 per serial interval.
The above example is for \(\alpha=0.25\) per serial interval with attack rates varying from 10% to above 35%.
For faster growing variants, e.g. \(\alpha=0.5\), the attack rates range from 17% for the zero-one immune evasion scenario to 58% for the uniform evasion scenario.
In both cases, the size of resulting wave differs about 3-fold depending on population heterogeneity.&lt;/p&gt;
&lt;p&gt;&lt;a name="incorporating-heterogeneous-population-immunity-in-sir-models"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Incorporating heterogeneous population immunity in SIR models&lt;/h2&gt;
&lt;p&gt;The models above classify individuals as either completely susceptible or completely protected with transitions between these "compartments".
More generally, different individuals differ in their response to the virus and have been exposed to different variants at different times in the past with gradual waning of immunity.
We therefore expect there to be a distribution of protective immunity in the population.
Related extensions of SIR models have been proposed by &lt;a href="https://arxiv.org/abs/2211.09062"&gt;Mohamed El Khalifi and Tom Britton&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A simple model of the probability of infection upon exposure could be
$$
p = e^{-x}
$$
where \(x\) could be interpreted as a neutralization titer or some other correlate of protection. In the population, there is a distribution \(\phi(x,t)\) that is governed by waning with rate \(v\), boosting by infection with rate \(\nu I(t)\):
$$
\frac{\partial \phi}{\partial t} = D \frac{\partial^2 \phi(x,t)}{\partial^2 x} + v\frac{\partial \phi(x,t)}{\partial x} + I(t) \left(\delta(x-x_0) - \beta \phi(x,t) e^{-x}\right)
$$
The first diffusive term accounts for variation in the waning rate \(v\) and boosting through cross-immunity with other pathogens.&lt;/p&gt;
&lt;p&gt;The infection dynamics is given by
$$
\frac{dI}{dt} = I(t) \left(\beta \int_0^\infty dx \phi(x,t) e^{-x} - 1\right)
$$&lt;/p&gt;
&lt;p&gt;As before, we use the recovery rate to set the unit of time.
Other scales and numbers that play a role are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;\(\beta\) is the infectivity and related to \(R_0\) via \(R_0 = \frac{\beta}{\nu}\)&lt;/li&gt;
&lt;li&gt;\(v\) is the velocity at which titers drop. We generally expect this to be on the order of 0.01 to 0.1/per week corresponding to 0.5 to 5 antigenic units per year.&lt;/li&gt;
&lt;li&gt;\(x_0\) is the typical post-infection titer.&lt;/li&gt;
&lt;li&gt;\(D\) the titer diffusivity. This diffusivity will capture heterogeneity in the rate of titer drops and other variation. I don't have an expectation for its value. But I imagine something like \(0.02\) per serial interval is sensible, resulting in an 2 unit^2 variance after a year.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The average susceptibility in this model is then given by
$$
\langle S \rangle = \int_0^{x_0} dx\, \phi(x) e^{-x}
$$
And the resulting growth rate of the outbreak is
$$
\beta \langle S \rangle - 1 = \beta \int_0^{x_0} dx\, \phi(x) e^{-x} - 1
$$&lt;/p&gt;
&lt;p&gt;The simple discretized implementation of this model is given by:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;SusceptI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;beta&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;gamma&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;D&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;xgrid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dx&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="sd"&gt;&amp;#39;&amp;#39;&amp;#39;&lt;/span&gt;
&lt;span class="sd"&gt;    time derivative of the prevalence and the susceptibility distribution.&lt;/span&gt;
&lt;span class="sd"&gt;    &amp;#39;&amp;#39;&amp;#39;&lt;/span&gt;
    &lt;span class="c1"&gt;# convert D and v to right/left jump rates. stuff all waning into the left jumps&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;D&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;dx&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;  &lt;span class="c1"&gt;#+ v/2/dx&lt;/span&gt;
    &lt;span class="n"&gt;l&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;D&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;dx&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;dx&lt;/span&gt;

    &lt;span class="n"&gt;I&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;phi&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Y&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;Y&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:]&lt;/span&gt;
    &lt;span class="n"&gt;dY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;zeros_like&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Y&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;dY&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;I&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;beta&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;dx&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;phi&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;xgrid&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;dY&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;gamma&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;beta&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;I&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;xgrid&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]))&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;phi&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;gamma&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;dx&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;phi&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;dY&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt;  &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;l&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;gamma&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;beta&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;I&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;xgrid&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]))&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;phi&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;I&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;dx&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;phi&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;dY&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;gamma&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;beta&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;I&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;xgrid&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]))&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;phi&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;phi&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;phi&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;:]&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;dY&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This discretized model can be readily solved numerically, see the figure below.
At first, this model exhibits narrow waves with increasing frequency before settling into a pattern of damped oscillations similar to the compartmental model above (top left panel).&lt;/p&gt;
&lt;p&gt;Initially, the is no population heterogeneity and the time between waves is given by the time it takes for population to loose immunity from \(x=x_0\) to \(x&amp;lt;1\), which is \(t=x_0/v\).
These intervals are indicated by the gray vertical bars.
Since the gradual transmission from an immune state to a susceptible state takes time, this model effectively implements a delay which could give rise to sustained oscillations. For parameter values investigate here, oscillations are damped.&lt;/p&gt;
&lt;p&gt;The population distribution of immunity \(x\) is shown in the lower two panels.
The lower left panel show the distribution at three early time points, the right panel the approximate equilibrium distribution at long times.
Once the population distribution of \(x\) has equilibrated, the system has a tendency to oscillate around a fixed point similar to the SIR model.
But these oscillations decay less rapidly than in the equivalent SIR model with \(\gamma=v/x_0\), which would correspond to the inverse of the time over which people loose their immunity. The period of the oscillations is also longer than the \(t = 2\pi/\sqrt{(\beta-1)\gamma}\) expected in the compartmental model.&lt;/p&gt;
&lt;p&gt;&lt;img alt="png" src="/images/size_of_waves_output_16_0.png"&gt;&lt;/p&gt;
&lt;p&gt;This pattern of accelerating waves that gradually dampen is also observed in COVID-19, for example in the hospitalization data of the UK:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image.png" src="/images/size_of_waves_UK_waves.png"&gt;
Figure: Hospitalization data from England visualized by &lt;a href="https://ourworldindata.org/grapher/uk-daily-covid-admissions?country=London~South+East~England"&gt;OurWorldInData&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;However, the first two peaks here correspond to initial wave spring 2020 and the Alpha wave and their timing is not determined by immune waning dynamics but the emergence of variants. Since late 2021, the more or less continuous circulation of Omicron variants with a 3-4 months period is more suggestive of a dynamics determined by immune waning and reinfection.&lt;/p&gt;
&lt;h2&gt;Immune evasive variants&lt;/h2&gt;
&lt;p&gt;Now consider an immune evasive variant invading. The susceptibility of the population to this variant can differ from that of the original variant in different ways.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the titers in the population could be uniformly reduced by a factor, that is \(x \rightarrow \max(0, x-\Delta x)\) and \(\phi'(x) = \phi(x+\Delta x) + \phi_0 \delta(x)\), where \(\delta(x) \) is a Dirac-Delta function and \(\phi_0 = \int_0^{\Delta x} \phi(x)dx \). We'll refer to this case as &lt;strong&gt;shifted&lt;/strong&gt; susceptibility.&lt;/li&gt;
&lt;li&gt;a fraction \(\epsilon\) of the population becomes completely susceptible,
 i.e. \(\phi'(x) = \epsilon \delta(x) + (1-\epsilon)\phi(x)\). We'll refer to this case as &lt;strong&gt;partial loss&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With increasing number of variants, susceptibilities and cross-immunities, model become a lot more complex. But we will consider a simple case where with only one immune escape variant with the modified susceptibility \(\phi'(x)\) and ignore the resident variant. In this case, we still have a single variant model with the same parameters. The variant initially grows with a rate \(\beta \langle S' \rangle - 1\).&lt;/p&gt;
&lt;p&gt;To compare how the size of a wave depends on the model assumptions, we numerically solve for a wave with an initial susceptibility \(\phi\) according the &lt;strong&gt;shift&lt;/strong&gt; and &lt;strong&gt;partial loss&lt;/strong&gt; models and compare this to the waves in standard SIR models. For the latter, we assume that (i) every body in the population is partially susceptible (uniform evasion), that that a fraction of the population is fully susceptible and the remainder fully immune (zero/one). In all cases, parameters are adjusted such that the initial growth rates are equal:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="c1"&gt;# copy the equilibrium susceptibility distribution&lt;/span&gt;
&lt;span class="n"&gt;phi_base_line&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;copy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sol&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;:])&lt;/span&gt;

&lt;span class="c1"&gt;# calculate the shifted probability distribution&lt;/span&gt;
&lt;span class="n"&gt;delta_x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="n"&gt;phi_shift&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;zeros_like&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;phi_base_line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;phi_shift&lt;/span&gt;&lt;span class="p"&gt;[:(&lt;/span&gt;&lt;span class="n"&gt;xgrid&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;delta_x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;()]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;phi_base_line&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;xgrid&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;delta_x&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;phi_shift&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;phi_shift&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;xgrid&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;=&lt;/span&gt;&lt;span class="n"&gt;delta_x&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="n"&gt;S_avg_shift&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;xgrid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;phi_shift&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;dx&lt;/span&gt;

&lt;span class="c1"&gt;# calculate the probability for the partial_loss case&lt;/span&gt;
&lt;span class="n"&gt;eps&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.21&lt;/span&gt;
&lt;span class="n"&gt;phi_loss&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;phi_base_line&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;eps&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;phi_loss&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;phi_base_line&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;eps&lt;/span&gt;
&lt;span class="n"&gt;S_avg_loss&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;xgrid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;phi_loss&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;dx&lt;/span&gt;

&lt;span class="n"&gt;growth_rate&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;beta&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="n"&gt;S_avg_shift&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;average susceptibility -- shift:&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;S_avg_shift&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;1.3f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;, loss:&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;S_avg_loss&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;1.3f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;growth rate: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;growth_rate&lt;/span&gt;&lt;span class="si"&gt;:&lt;/span&gt;&lt;span class="s2"&gt;1.3f&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;I&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.001&lt;/span&gt;
&lt;span class="n"&gt;T&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;linspace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;31&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;Y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;array&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="n"&gt;I&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;phi_shift&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="n"&gt;sol_shift&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;odeint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;SusceptI&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;beta&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;gamma&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;D&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;xgrid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dx&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="n"&gt;Y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;array&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="n"&gt;I&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;phi_loss&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="n"&gt;sol_loss&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;odeint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;SusceptI&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;T&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;beta&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;gamma&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;D&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;xgrid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dx&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;average susceptibility -- shift:0.365, loss:0.366
growth rate: 0.823
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;img alt="png" src="/images/size_of_waves_output_20_1.png"&gt;&lt;/p&gt;
&lt;p&gt;As expected, models with a continuous susceptibility distribution generate wave sizes in between the extreme cases where the entire population is uniformly susceptible, and where a fraction is completely susceptible. The shifted titer-case is closer to the former, the partial loss closer to the latter.&lt;/p&gt;</content><category term="post"/><category term="sars-cov-2"/></entry><entry><title>LAPIS is a fast web API for massive open virus sequencing data</title><link href="/chen_lapis_2023.html" rel="alternate"/><published>2023-06-05T00:00:00+02:00</published><updated>2023-06-05T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-06-05:/chen_lapis_2023.html</id><summary type="html">&lt;p&gt;BACKGROUND: Recent epidemic outbreaks such as the SARS-CoV-2 pandemic and the mpox outbreak in 2022 have demonstrated the value of genomic sequencing data for tracking the origin and spread of pathogens. Laboratories around the globe generated new sequences at unprecedented speed and volume and bioinformaticians developed new tools and dashboards …&lt;/p&gt;</summary><content type="html">&lt;p&gt;BACKGROUND: Recent epidemic outbreaks such as the SARS-CoV-2 pandemic and the mpox outbreak in 2022 have demonstrated the value of genomic sequencing data for tracking the origin and spread of pathogens. Laboratories around the globe generated new sequences at unprecedented speed and volume and bioinformaticians developed new tools and dashboards to analyze this wealth of data. However, a major challenge that remains is the lack of simple and efficient approaches for accessing and processing sequencing data.
RESULTS: The Lightweight API for Sequences (LAPIS) facilitates rapid retrieval and analysis of genomic sequencing data through a REST API. It supports complex mutation- and metadata-based queries and can perform aggregation operations on massive datasets. LAPIS is optimized for typical questions relevant to genomic epidemiology. Using a newly-developed in-memory database engine, it has a high speed and throughput: between 25 January and 4 February 2023, the SARS-CoV-2 instance of LAPIS, which contains 14.5 million sequences, processed over 20 million requests with a mean response time of 411 ms and a median response time of 1 ms. LAPIS is the core engine behind our dashboards on genspectrum.org and we currently maintain public LAPIS instances for SARS-CoV-2 and mpox.
CONCLUSIONS: Powered by an optimized database engine and available through a web API, LAPIS enhances the accessibility of genomic sequencing data. It is designed to serve as a common backend for dashboards and analyses with the potential to be integrated into common database platforms such as GenBank.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>"From pandemic to endemic: the interplay of immunity, viral evolution, and seasonality"</title><link href="/202305_Nordita.html" rel="alternate"/><published>2023-05-31T00:00:00+02:00</published><updated>2023-05-31T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-05-31:/202305_Nordita.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1mErUB6fYBxGhGARQuYrQCHlB-7SIzNseSxGcK59OYq4/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>"Evolution of SARS-CoV-2: fitness landscapes, immune escape, and emergence of variants of concern"</title><link href="/202305_Karolinska.html" rel="alternate"/><published>2023-05-29T00:00:00+02:00</published><updated>2023-05-29T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-05-29:/202305_Karolinska.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/13Tm209MSXRQRhiRAv3Pk5_rdMl7NMtJgjt_9zWfhr5s/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title/><link href="/202304_SSGM.html" rel="alternate"/><published>2023-04-27T00:00:00+02:00</published><updated>2023-04-27T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-04-27:/202304_SSGM.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1CMOGRaiwXnT9CaVGYjmfT-82tYCHUGF7gvG49HBqMrw/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Rapid escape of new SARS-CoV-2 Omicron variants from BA.2-directed antibody responses</title><link href="/dijokaite-guraliuc_rapid_2023.html" rel="alternate"/><published>2023-04-25T00:00:00+02:00</published><updated>2023-04-25T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-04-25:/dijokaite-guraliuc_rapid_2023.html</id><summary type="html">&lt;p&gt;In November 2021, Omicron BA.1, containing a raft of new spike mutations, emerged and quickly spread globally. Intense selection pressure to escape the antibody response produced by vaccines or severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) infection then led to a rapid succession of Omicron sub-lineages with waves of …&lt;/p&gt;</summary><content type="html">&lt;p&gt;In November 2021, Omicron BA.1, containing a raft of new spike mutations, emerged and quickly spread globally. Intense selection pressure to escape the antibody response produced by vaccines or severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) infection then led to a rapid succession of Omicron sub-lineages with waves of BA.2 and then BA.4/5 infection. Recently, many variants have emerged such as BQ.1 and XBB, which carry up to 8 additional receptor-binding domain (RBD) amino acid substitutions compared with BA.2. We describe a panel of 25 potent monoclonal antibodies (mAbs) generated from vaccinees suffering BA.2 breakthrough infections. Epitope mapping shows potent mAb binding shifting to 3 clusters, 2 corresponding to early-pandemic binding hotspots. The RBD mutations in recent variants map close to these binding sites and knock out or severely knock down neutralization activity of all but 1 potent mAb. This recent mAb escape corresponds with large falls in neutralization titer of vaccine or BA.1, BA.2, or BA.4/5 immune serum.&lt;/p&gt;</content><category term="publication"/></entry><entry><title/><link href="/202304_dynamics.html" rel="alternate"/><published>2023-04-22T00:00:00+02:00</published><updated>2023-04-22T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-04-22:/202304_dynamics.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1WkFbsH3dW7-U66xmjaae9qWCmS11Iuo-FHJPVavq7p4/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Post-doctoral position in phylogenetics and microbial evolution</title><link href="/202304_BZ_postdoc.html" rel="alternate"/><published>2023-04-21T00:00:00+02:00</published><updated>2023-04-21T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-04-21:/202304_BZ_postdoc.html</id><summary type="html">&lt;p&gt;A postdoctoral position is available in the &lt;a href="http://neherlab.org"&gt;research group&lt;/a&gt; of Richard Neher at the &lt;a href="http://biozentrum.unibas.ch"&gt;Biozentrum of the University of Basel&lt;/a&gt;. Our group works on evolution of pathogenic viruses and bacteria with a focus on seasonal influenza virus, SARS-CoV-2, enteroviruses, and drug resistance evolution in bacteria. Research in our group combines …&lt;/p&gt;</summary><content type="html">&lt;p&gt;A postdoctoral position is available in the &lt;a href="http://neherlab.org"&gt;research group&lt;/a&gt; of Richard Neher at the &lt;a href="http://biozentrum.unibas.ch"&gt;Biozentrum of the University of Basel&lt;/a&gt;. Our group works on evolution of pathogenic viruses and bacteria with a focus on seasonal influenza virus, SARS-CoV-2, enteroviruses, and drug resistance evolution in bacteria. Research in our group combines population genetics, phylogenetics, mathematical models, and next-generation sequencing to understand the complex dynamics of host-pathogen interactions.
On one hand, we are interested in &lt;strong&gt;developing tools to analyze and visualize large datasets&lt;/strong&gt; and maintain several popular tools such as &lt;a href="http://nextstrain.org"&gt;Nextstrain&lt;/a&gt; (together with Trevor Bedford's group in Seattle), &lt;a href="https://github.com/neherlab/treetime/"&gt;TreeTime&lt;/a&gt;, &lt;a href="https://pangenome.org"&gt;panX&lt;/a&gt;, and &lt;a href="https://github.com/neherlab/pangraph"&gt;panGraph&lt;/a&gt;.
On the other hand, we tackle &lt;strong&gt;fundamental questions of how microbes evolve&lt;/strong&gt; in light of changing population immunity, drug therapy, or new environments.
Adaptation via recombination, reassortment, and genome structure evolution are of particular interest to us.&lt;/p&gt;
&lt;p&gt;Possible projects of a post-doctoral fellow include (i) novel phylogenetic and phylodynamic methods suitable for very large data sets, (ii) scalable inference from ancestral reassortment graphs of influenza, and (iii) evolution of gene content and gene order of bacterial chromosomes or plasmids.
The scope of the projects is flexible, can be tailored to the applicants interest and skills, and we are open to exciting new ideas.&lt;/p&gt;
&lt;h4&gt;What we offer&lt;/h4&gt;
&lt;p&gt;You would have the opportunity to pursue original research in a small, interactive, and interdisciplinary group that tackles diverse problems in computational biology.
We are internationally well connected and collaborate with several other research groups in Basel and in different parts of the world.
We have access to state-of-the-art computing facilities, wet lab space, and sufficient funding for conference travel and research expenses.
Our team includes a professional software engineer who can turn novel methods into robust and maintainable software.
Salaries are competitive.&lt;/p&gt;
&lt;h4&gt;Whom we are looking for&lt;/h4&gt;
&lt;p&gt;We are looking for a creative and collaborative person with a genuine interest in evolution and with either a&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a degree in bioinformatics, computer science, physics, applied math or similar and a strong genuine interest in biology, or&lt;/li&gt;
&lt;li&gt;a life science degree and strong quantitative skills&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you are excited about this opportunity but unsure whether your profile matches what we are looking for, please get in touch.&lt;/p&gt;
&lt;h4&gt;Application&lt;/h4&gt;
&lt;p&gt;Please send your cover letter, statement of research interests, CV, publication list, and contact information of three references as one pdf file to &lt;a href="mailto:richard.neher@unibas.ch"&gt;Richard Neher&lt;/a&gt;. Please state clearly in your cover letter what your main interests are and how you think it resonates with the work of our group.
Reviewing of application will start on June 1st and continue until the position is filled.&lt;/p&gt;
&lt;h4&gt;Living and working in Basel&lt;/h4&gt;
&lt;p&gt;Quality of life in Basel is one of the highest worldwide. Basel is a very international city and a center of art, music, and research. The city is less than 5km from both France and Germany and an hour and a half from the Swiss Alps.&lt;/p&gt;
&lt;p&gt;The &lt;a href="http://biozentrum.unibas.ch"&gt;Biozentrum&lt;/a&gt; of the &lt;a href="http://www.unibas.ch"&gt;University of Basel&lt;/a&gt; is one of the leading institutes worldwide for molecular and biomedical basic research. It is home to more than 30 research groups with scientists from over 40 countries. Research at the Biozentrum focuses on the areas of Cell Growth &amp;amp; Development, Infection Biology, Neurobiology, Structural Biology &amp;amp; Biophysics and Computational &amp;amp; Systems Biology. With its more than 500 employees, the Biozentrum is the largest department at the University of Basel’s Faculty of Science. Several other academic institutions are also in the city, including the &lt;a href="http://www.fmi.ch"&gt;Friedrich Miescher Institute&lt;/a&gt;, the &lt;a href="https://www.bsse.ethz.ch/"&gt;ETH Zurich Biosystems Science and Engineering Department&lt;/a&gt;, and the &lt;a href="http://www.swisstph.ch/"&gt;Swiss Tropical Health Institute&lt;/a&gt;.&lt;/p&gt;</content><category term="job_old"/></entry><entry><title>PanGraph: scalable bacterial pan-genome graph construction</title><link href="/noll_pangraph_2023.html" rel="alternate"/><published>2023-04-17T00:00:00+02:00</published><updated>2023-04-17T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-04-17:/noll_pangraph_2023.html</id><summary type="html">&lt;p&gt;The genomic diversity of microbes is commonly parameterized as population genetic polymorphisms relative to a reference genome of a well-characterized, but arbitrary, isolate. Reference genomes contain a fraction of the microbial pangenome, the set of genes observed within all isolates of a given species, and are thus blind to both …&lt;/p&gt;</summary><content type="html">&lt;p&gt;The genomic diversity of microbes is commonly parameterized as population genetic polymorphisms relative to a reference genome of a well-characterized, but arbitrary, isolate. Reference genomes contain a fraction of the microbial pangenome, the set of genes observed within all isolates of a given species, and are thus blind to both the dynamics of the accessory genome, as well as variation within gene order and copy number. With the wide-spread usage of long-read sequencing, the number of high-quality, complete genome assemblies has increased dramatically. Traditional computational approaches towards whole-genome analysis either scale poorly, or treat genomes as dissociated bags of genes, and thus are not suited for this new era. Here, we present PanGraph, a Julia based library and command line interface for aligning whole genomes into a graph, wherein each genome is represented as an undirected path along vertices, which in turn, encapsulate homologous multiple sequence alignments. The resultant data structure succinctly summarizes population-level nucleotide and structural polymorphisms and can be exported into a several common formats for either downstream analysis or immediate visualization.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Evolution of the SARS-CoV-2 mutational spectrum</title><link href="/bloom_evolution_2023.html" rel="alternate"/><published>2023-04-10T00:00:00+02:00</published><updated>2023-04-10T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-04-10:/bloom_evolution_2023.html</id><summary type="html">&lt;p&gt;SARS-CoV-2 evolves rapidly in part because of its high mutation rate. Here we examine whether this mutational process itself has changed during viral evolution. To do this, we quantify the relative rates of different types of single nucleotide mutations at four-fold degenerate sites in the viral genome across millions of …&lt;/p&gt;</summary><content type="html">&lt;p&gt;SARS-CoV-2 evolves rapidly in part because of its high mutation rate. Here we examine whether this mutational process itself has changed during viral evolution. To do this, we quantify the relative rates of different types of single nucleotide mutations at four-fold degenerate sites in the viral genome across millions of human SARS-CoV-2 sequences. We find clear shifts in the relative rates of several types of mutations during SARS-CoV-2 evolution. The most striking trend is a roughly two-fold decrease in the relative rate of G→T mutations in Omicron versus early clades, as was recently noted by Ruis et al (2022). There is also a decrease in the relative rate of C→T mutations in Delta, and other subtle changes in the mutation spectrum along the phylogeny. We speculate that these changes in the mutation spectrum could arise from viral mutations that affect genome replication, packaging, and antagonization of host innate-immune factors—although environmental factors could also play a role. Interestingly, the mutation spectrum of Omicron is more similar than that of earlier SARS-CoV-2 clades to the spectrum that shaped the long-term evolution of sarbecoviruses. Overall, our work shows that the mutation process is itself a dynamic variable during SARS-CoV-2 evolution, and suggests that human SARS-CoV-2 may be trending towards a mutation spectrum more similar to that of other animal sarbecoviruses.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Visualizing how pathogens spread and change</title><link href="/202303_VizBi.html" rel="alternate"/><published>2023-03-31T00:00:00+02:00</published><updated>2023-03-31T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-03-31:/202303_VizBi.html</id><summary type="html">&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Human seasonal influenza viruses&lt;/h3&gt;
&lt;div style="position: absolute;top:13%; left:15%; width:70%"&gt;
&lt;img src="/talk_images/flu_pandemics.png" width=100%&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;slide by Trevor Bedford&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h3&gt;Positive tests for influenza in the USA by week&lt;/h3&gt;
    &lt;img class="plain" src="/images/flu_subtypes_positive_tests.png" width="1400px"&gt;
&lt;span class="ref"&gt;&lt;a href="https://gis.cdc.gov/grasp/fluview/fluportaldashboard.html"&gt;Data by the US CDC&lt;/a&gt; &lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Virus genomes change rapidly through time&lt;/h3&gt;
&lt;div style="position: absolute;top:22%; left:15%; width:70%; text-align: left"&gt;
&lt;font font-family="Andale Mono"&gt;
&lt;b&gt;A/Brisbane/100/2014&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1000/2015&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;T&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1/2017&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
... hundreds …&lt;/font&gt;&lt;/div&gt;&lt;/section&gt;</summary><content type="html">&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Human seasonal influenza viruses&lt;/h3&gt;
&lt;div style="position: absolute;top:13%; left:15%; width:70%"&gt;
&lt;img src="/talk_images/flu_pandemics.png" width=100%&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;slide by Trevor Bedford&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h3&gt;Positive tests for influenza in the USA by week&lt;/h3&gt;
    &lt;img class="plain" src="/images/flu_subtypes_positive_tests.png" width="1400px"&gt;
&lt;span class="ref"&gt;&lt;a href="https://gis.cdc.gov/grasp/fluview/fluportaldashboard.html"&gt;Data by the US CDC&lt;/a&gt; &lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Virus genomes change rapidly through time&lt;/h3&gt;
&lt;div style="position: absolute;top:22%; left:15%; width:70%; text-align: left"&gt;
&lt;font font-family="Andale Mono"&gt;
&lt;b&gt;A/Brisbane/100/2014&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1000/2015&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;T&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1/2017&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
... hundreds of thousands of sequences...
&lt;/font&gt;
&lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Genome sequences record the spread of pathogens&lt;/h3&gt;
&lt;div  style="position: absolute;top:10%; left:15%; width: 70%"&gt;
  &lt;img src="/talk_images/infection_tree_1.png" width=100% class="plain"&gt;
&lt;/div&gt;
&lt;div class="fragment" style="position: absolute;top:10%; left:15%; width: 70%"&gt;
  &lt;img src="/talk_images/infection_tree_2.png" width=100% class="plain"&gt;
&lt;/div&gt;
&lt;div class="fragment" style="position: absolute;top:10%; left:15%; width: 70%"&gt;
  &lt;img src="/talk_images/infection_tree_3b.png" width=100% class="plain"&gt;
&lt;/div&gt;
&lt;div class="fragment" style="position: absolute;top:10%; left:15%; width: 70%"&gt;
  &lt;img src="/talk_images/infection_tree_4b.png" width=100% class="plain"&gt;
&lt;/div&gt;
&lt;div class="fragment" style="position: absolute;bottom:3%; left:10%; width: 80%"&gt;
&lt;h5&gt;in SARS-CoV-2 a new mutation accumulates about every 2 weeks &lt;/h5&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;images by Trevor Bedford&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;div style="position:absolute;width:1600px;"&gt;
        &lt;img src="talk_images/H3N2_35y_phylogeny.png" width=1100px&gt;
        &lt;div style="position:absolute; top:3%; left:44%; width:27%"&gt;
            &lt;img src="talk_images/H3N2_35y_legend.png"&gt;&lt;br&gt;
        &lt;/div&gt;
        &lt;div class="fragment" style="position:absolute; top:3%; left:19%; width:27%"&gt;
            &lt;img src="talk_images/H3N2_HA_structure.png"&gt;&lt;br&gt;
        &lt;/div&gt;
        &lt;div class="fragment current-visible" style="position:absolute; top:60%; left:16%; width:40%"&gt;
        &lt;small&gt;
            &lt;ul&gt;
                &lt;li&gt;Influenza viruses evolve to avoid human immunity&lt;/li&gt;
                &lt;li&gt;Vaccines need frequent updates&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/small&gt;
        &lt;/div&gt;
        &lt;div class="fragment" style="position:absolute; bottom:3%; left:10%; width:80%"&gt;
            &lt;img src="talk_images/H3N2_189_trajectory.png"&gt;&lt;br&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h2&gt;Many data dimensions&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Phylogenetic tree -- hierarchical relatedness structure&lt;/li&gt;
&lt;li&gt;Genotype -- mutations and variants&lt;/li&gt;
&lt;li&gt;Dynamics and time&lt;/li&gt;
&lt;li&gt;Spatial distribution&lt;/li&gt;
&lt;li&gt;Phenotypes&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;a href="https://nextstrain.org"&gt;Nextstrain.org&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;

&lt;section&gt;
  &lt;img src="/talk_images/nextclade_splash_page.png"&gt;
&lt;/section&gt;

&lt;section&gt;
  &lt;img src="/talk_images/nextclade_results.png"&gt;
&lt;/section&gt;

&lt;section&gt;
  &lt;img src="/talk_images/nextclade_tree.png"&gt;
&lt;/section&gt;

&lt;section&gt;
  &lt;img src="/talk_images/nextclade_tooltip.png"&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Hemagglutination Inhibition assays&lt;/h3&gt;
    &lt;div style="position:absolute; top:16%; left:10%; width:80%"&gt;
    &lt;img src="/talk_images/hi_cross_reactivity.jpg" width="80%"&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;Slide by Trevor Bedford&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Antigenic distance tables&lt;/h3&gt;
    &lt;div style="position:absolute; top:16%; left:5%; width:43%"&gt;
    &lt;img src="/talk_images/hi_table.png" width="100%"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position:absolute; top:46%; left:5%; width:43%"&gt;
        &lt;div class="hugespacer"&gt;&lt;/div&gt;
        &lt;small&gt;&lt;ul&gt;
            &lt;li&gt;Long list of distances between sera and viruses&lt;/li&gt;
            &lt;li&gt;Tables are sparse, only close by pairs&lt;/li&gt;
        &lt;/ul&gt;&lt;/small&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position:absolute; top:16%; left:52%; width:43%"&gt;
    &lt;img src="/talk_images/hi_full_table.png" width="100%"&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;Slide by Trevor Bedford&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Integrating antigenic and molecular evolution&lt;/h3&gt;
    &lt;img src="/talk_images/2023-03-29_flu_titer_tree_rawA.png" width="30%"&gt;
    &lt;img src="/talk_images/2023-03-29_flu_titer_tree_rawB.png" width="30%"&gt;
    &lt;span class="ref"&gt;RN et al, PNAS, 2017&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Integrating antigenic and molecular evolution&lt;/h3&gt;
    &lt;img src="/talk_images/2023-03-29_flu_titer_treeA.png" width="30%"&gt;
    &lt;img src="/talk_images/2023-03-29_flu_titer_treeB.png" width="30%"&gt;
    &lt;span class="ref"&gt;RN et al, PNAS, 2017&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Integrating antigenic and molecular evolution&lt;/h3&gt;
    &lt;img src="/talk_images/2023-03_measurements_panel.png" width="80%"&gt;
    &lt;span class="ref"&gt;Jover Lee..., John Huddleston, 2023&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Integrating antigenic and molecular evolution&lt;/h3&gt;
    &lt;img src="/talk_images/2023-03_measurements_panel_raw.png" width="80%"&gt;
    &lt;span class="ref"&gt;Jover Lee..., John Huddleston, 2023&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;None of this works for millions of tips&lt;/h3&gt;
    &lt;div style="position:absolute; top:16%; left:5%; width:90%"&gt;
  &lt;img src="talk_images/2023-03_sequence_availablity.png" width="80%"&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;Data from GISAID.org&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Taxonium by Theo Sanderson&lt;/h3&gt;
    &lt;div style="position:absolute; top:16%; left:5%; width:90%"&gt;
  &lt;img src="talk_images/taxonium.png" width="80%"&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;Theo Sanderson, eLife, 2022&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Pandemic scale trees by UShER &lt;/h3&gt;
    &lt;div style="position:absolute; top:16%; left:5%; width:90%"&gt;
  &lt;ul&gt;
  &lt;li&gt;phylogenetic tree of millions of samples grown through placement&lt;/li&gt;
  &lt;li&gt;Fast search on this tree to explore the context of specific samples&lt;/li&gt;
  &lt;li&gt;Extraction of the context and visualization in Nextstrain&lt;/li&gt;
  &lt;/ul&gt;
  &lt;img src="/talk_images/usher_example.jpg" width="800px"&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;Turakhia et al, 2021&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Acknowledgments&lt;/h3&gt;
&lt;div  style="position: absolute;top:20%; left:10%; width: 80%; text-align:left"&gt;
  &lt;h4&gt;Trevor Bedford and his lab -- terrific collaboration since 2014&lt;/h4&gt;
  &lt;img src="/talk_images/nextstrain_people.png" width="1300px"&gt;
  &lt;h4&gt;especially James Hadfield, Emma Hodcroft, Ivan Aksamentov, Cornelius Roemer, Moira Zuber, and John Huddleston&lt;/h4&gt;
&lt;/div&gt;
&lt;div style="position: absolute;bottom:10%; left:10%; width: 80%; text-align:left"&gt;
  &lt;h4&gt;Data we analyze are contributed by scientists from all over the world&lt;/h4&gt;
  &lt;h4&gt;Data are shared and curated by GISAID&lt;h4&gt;
  &lt;img src="/talk_images/GISAID_logo.png" class="plain" width="200px"&gt;
&lt;/div&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title/><link href="/202303_TecNight.html" rel="alternate"/><published>2023-03-28T00:00:00+02:00</published><updated>2023-03-28T00:00:00+02:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-03-28:/202303_TecNight.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1vrEOdQp3mLVITElDevzVwSpChFrbuowna63fUccUmKs/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk_outreach"/></entry><entry><title>What can we learn from millions of viral genomes.</title><link href="/202303_Crick.html" rel="alternate"/><published>2023-03-15T00:00:00+01:00</published><updated>2023-03-15T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-03-15:/202303_Crick.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1d2yDt0sQw88Rsct6H8bQvmhNI2IwdgA_gp1yFHQdXgo/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Predictability of influenza virus evolution</title><link href="/202303_RoyalSociety.html" rel="alternate"/><published>2023-03-14T00:00:00+01:00</published><updated>2023-03-14T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-03-14:/202303_RoyalSociety.html</id><summary type="html">&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Human seasonal influenza viruses&lt;/h3&gt;
&lt;div style="position: absolute;top:13%; left:15%; width:70%"&gt;
&lt;img src="/talk_images/flu_pandemics.png" width=100%&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;slide by Trevor Bedford&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h3&gt;Positive tests for influenza in the USA by week&lt;/h3&gt;
    &lt;img class="plain" src="/talk_images/flu_weekly_positives_log.png" width="1550px"&gt;
&lt;span class="ref"&gt;&lt;a href="https://gis.cdc.gov/grasp/fluview/fluportaldashboard.html"&gt;Data by the US CDC&lt;/a&gt; &lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Genomic analysis to reconstruct pathogen spread and evolution&lt;/h3&gt;
&lt;div  style="position: absolute;top:25%; left:5%; width: 90%"&gt;
  &lt;img src="/talk_images/infection_tree_v2.png" width=100%&gt;
&lt;/div&gt;
&lt;div  style="position: absolute;top:25%; left:5%; width: 90%" class="fragment"&gt;
  &lt;img src="/talk_images/infection_tree_combined_v2.png" width=100%&gt;
&lt;/div&gt;
&lt;div class="fragment" style="position: absolute;bottom:7%; left:10%; width: 80%; text-align:left"&gt;
&lt;h5&gt;&lt;b&gt;Link genotypic and phenotypic changes&lt;/b&gt;: immune escape, drug resistance, host adaptation&lt;/h5&gt;
&lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h2&gt;Influenza A/H3N2&lt;/h2&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;div style="position:absolute;width:1600px;"&gt;
        &lt;img src="talk_images/H3N2_35y_phylogeny.png" width=1100px&gt;
        &lt;div style="position:absolute; top:3%; left:44%; width:27%"&gt;
            &lt;img src="talk_images/H3N2_35y_legend.png"&gt;&lt;br&gt;
        &lt;/div&gt;
        &lt;div class="fragment" style="position:absolute; top:3%; left:19%; width:27%"&gt;
            &lt;img src="talk_images/H3N2_HA_structure.png"&gt;&lt;br&gt;
        &lt;/div&gt;
        &lt;div class="fragment current-visible" style="position:absolute; top:60%; left:16%; width:40%"&gt;
        &lt;small&gt;
            &lt;ul&gt;
                &lt;li&gt;Influenza viruses evolve to avoid human …&lt;/li&gt;&lt;/ul&gt;&lt;/small&gt;&lt;/div&gt;&lt;/div&gt;&lt;/section&gt;</summary><content type="html">&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Human seasonal influenza viruses&lt;/h3&gt;
&lt;div style="position: absolute;top:13%; left:15%; width:70%"&gt;
&lt;img src="/talk_images/flu_pandemics.png" width=100%&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;slide by Trevor Bedford&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h3&gt;Positive tests for influenza in the USA by week&lt;/h3&gt;
    &lt;img class="plain" src="/talk_images/flu_weekly_positives_log.png" width="1550px"&gt;
&lt;span class="ref"&gt;&lt;a href="https://gis.cdc.gov/grasp/fluview/fluportaldashboard.html"&gt;Data by the US CDC&lt;/a&gt; &lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Genomic analysis to reconstruct pathogen spread and evolution&lt;/h3&gt;
&lt;div  style="position: absolute;top:25%; left:5%; width: 90%"&gt;
  &lt;img src="/talk_images/infection_tree_v2.png" width=100%&gt;
&lt;/div&gt;
&lt;div  style="position: absolute;top:25%; left:5%; width: 90%" class="fragment"&gt;
  &lt;img src="/talk_images/infection_tree_combined_v2.png" width=100%&gt;
&lt;/div&gt;
&lt;div class="fragment" style="position: absolute;bottom:7%; left:10%; width: 80%; text-align:left"&gt;
&lt;h5&gt;&lt;b&gt;Link genotypic and phenotypic changes&lt;/b&gt;: immune escape, drug resistance, host adaptation&lt;/h5&gt;
&lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h2&gt;Influenza A/H3N2&lt;/h2&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;div style="position:absolute;width:1600px;"&gt;
        &lt;img src="talk_images/H3N2_35y_phylogeny.png" width=1100px&gt;
        &lt;div style="position:absolute; top:3%; left:44%; width:27%"&gt;
            &lt;img src="talk_images/H3N2_35y_legend.png"&gt;&lt;br&gt;
        &lt;/div&gt;
        &lt;div class="fragment" style="position:absolute; top:3%; left:19%; width:27%"&gt;
            &lt;img src="talk_images/H3N2_HA_structure.png"&gt;&lt;br&gt;
        &lt;/div&gt;
        &lt;div class="fragment current-visible" style="position:absolute; top:60%; left:16%; width:40%"&gt;
        &lt;small&gt;
            &lt;ul&gt;
                &lt;li&gt;Influenza viruses evolve to avoid human immunity&lt;/li&gt;
                &lt;li&gt;Vaccines need frequent updates&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/small&gt;
        &lt;/div&gt;
        &lt;div class="fragment" style="position:absolute; bottom:3%; left:10%; width:80%"&gt;
            &lt;img src="talk_images/H3N2_189_trajectory.png"&gt;&lt;br&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Vaccine strain selection schedule&lt;/h3&gt;
    &lt;img src="talk_images/vaccine_production_schedule.png" width=800px class="plain"&gt;
    &lt;span class="ref"&gt;Klingen and McHardy, Trends in Microbiology&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;img src="/talk_images/nextflu_screenshot.png" class="plain"&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h2&gt;Beyond tracking: can we predict?&lt;/h2&gt;
    &lt;h2&gt;Can we pick a "winner"?&lt;/h2&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Traditional approach: evolutionary race of viruses&lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; width:100%"&gt;
        &lt;img src="talk_images/arees_small_mutations.png" width=75%&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:75%; left:20%; width:70%"&gt;
        &lt;font size=5&gt;
            &lt;ul&gt;
                &lt;li&gt;Speed of adaptation is logarithmic in population size&lt;/li&gt;
                &lt;li&gt;Single mutations are easy to find, many such mutation are needed for success&lt;/li&gt;
                &lt;li&gt;Different models have universal emerging properties&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Annual Reviews, 2013; Desai &amp; Fisher; Brunet &amp; Derride; Kessler &amp; Levine&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;div style="position:absolute; top:5%; left:10%; width:38%"&gt;
        &lt;h4 class="fragment fade-out" data-fragment-index=1&gt;Neutral/Kingman coalescent&lt;/h4&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:5%; left:50%; width:38%"&gt;
        &lt;h4&gt;strong selection&lt;/h4&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:10%; width:38%"&gt;
        &lt;img src="talk_images/example_tree_Kingman.png"&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:50%; width:38%"&gt;
        &lt;img src="talk_images/example_tree_BSC.png"&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:5%; left:10%; width:38%"&gt;
        &lt;h4 class="fragment fade-in" data-fragment-index=1&gt;Bolthausen-Sznitman Coalescent&lt;/h4&gt;
    &lt;/div&gt;
    &lt;div class="fragment" data-fragment-index=1 style="position:absolute; bottom:10%; left:10%; width:38%"&gt;
        &lt;img src="talk_images/BSC_explain0.png"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" data-fragment-index=2 style="position:absolute; bottom:10%; left:10%; width:38%"&gt;
        &lt;img src="talk_images/BSC_explain1.png"&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Hallatschek, PNAS, 2013; see also Brunet and Derrida, PRE, 2007; Desai, Walczak, Fisher, Genetics, 2013&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h2&gt;Burst in the tree &amp;harr; high fitness&lt;/h2&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Predicting evolution&lt;/h3&gt;
    &lt;div style="position:absolute; top:18%; left:5%; width:33%"&gt;
        &lt;img src="talk_images/fitness_prediction_two_sample.png" width="90%" class="plain"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:38%; left:45%; width:60%"&gt;
    &lt;font size=6&gt;
        &lt;h3 style="text-align:left; width:100%"&gt;Given the branching pattern:&lt;/h3&gt;
        &lt;ul&gt;
            &lt;li&gt;can we predict fitness?&lt;/li&gt;
            &lt;li&gt;pick the closest relative of the future?&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/font&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Fitness inference from trees&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:5%; width:90%"&gt;
    &lt;object data="talk_images/neher_2014_algorithm.svg" width="90%"&gt;&lt;/object&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:20%; left:5%; width:90%"&gt;
        &lt;small&gt;$$P(\mathbf{x}|T) = \frac{1}{Z(T)} p_0(x_0) \prod_{i=0}^{n_{int}} g(x_{i_1}, t_{i_1}| x_i, t_i)g(x_{i_2}, t_{i_2}| x_i, t_i)$$&lt;/small&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Predicting an optimal representative&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:8%; width:34%"&gt;
    &lt;object data="talk_images/neher_2014_toy_prediction_C.svg" width="90%"&gt;&lt;/object&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:16%; left:54%; width:30%"&gt;
    &lt;img class="fragment fade-out"  data-fragment-index=1 src="talk_images/fitness_prediction_two_sample_pred.png"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:16%; left:54%; width:30%"&gt;
    &lt;img class="fragment current-visible" data-fragment-index=1 src="talk_images/fitness_prediction_two_sample_avg.png"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:16%; left:54%; width:30%"&gt;
    &lt;img class="fragment current-visible" data-fragment-index=2 src="talk_images/fitness_prediction_two_sample_opt.png"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Moderate prediction success&lt;/h3&gt;
    &lt;div class="spacer"&gt;&lt;/div&gt;
    &lt;object data="talk_images/neher_2014_H3N2_prediction.svg" width="70%"&gt;&lt;/object&gt;
    &lt;small&gt;&lt;ul&gt;
        &lt;li&gt;But is a random strain for previous years a sensible null?&lt;/li&gt;
        &lt;li&gt;Does this work for the right reason?&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Predicting the distribution in sequence space&lt;/h3&gt;
    &lt;div class="spacer"&gt;&lt;/div&gt;
    &lt;object data="talk_images/2020_Huddleston_prediction_illustration.png" width="70%"&gt;&lt;/object&gt;
    &lt;span class="ref"&gt;Huddleston et al, eLife, 2020&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Follow up investigations show very modest predictability&lt;/h3&gt;
    &lt;div class="spacer"&gt;&lt;/div&gt;
    &lt;object data="talk_images/2020_Huddleston_prediction_models.png" width="70%"&gt;&lt;/object&gt;
    &lt;small&gt;&lt;ul&gt;
        &lt;li&gt;Optimal transport distances between prediction and observation -- less than one amino acid gained&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;span class="ref"&gt;Huddleston et al, eLife, 2020&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Do A/H3N2 mutations have inertia?&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:5%; width:45%"&gt;
    &lt;img src="/talk_images/Barrat_flupred_sketch.png" width="90%"&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:50%; width:45%" class="fragment"&gt;
    &lt;img src="/talk_images/Barrat_flupred_traj.png" width="90%"&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;Barrat-Charlaix et al, 2020&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Complicated "Ecology" of host and pathogen&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:5%; width:85%; text-align:left "&gt;
    &lt;font size=6&gt;&lt;ul&gt;
        &lt;li&gt;Current approaches focus on the virus population&lt;/li&gt;
        &lt;li&gt;Models are predicated on identifying a 'winner'&lt;/li&gt;
        &lt;li&gt;Instead, dynamics might be slaved to host immunity:&lt;br&gt;
        &amp;rarr; exposure history and waning determine population immunity, viruses fill whatever niche there is&lt;/li&gt;
    &lt;/ul&gt;&lt;/font&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:50%; left:5%; width:85%; text-align:left" class="fragment"&gt;
    &lt;font size=6&gt;&lt;ul&gt;
        &lt;li&gt;For prediction, host data would be at least as important as viral dynamics&lt;/li&gt;
        &lt;li&gt;Prediction horizon is limited to within season dynamics that equilibrates the host-pathogen immunity landscape&lt;/li&gt;
        &lt;li&gt;Viral adaptations are niche specific and loose their benefit after equilibration.&lt;/li&gt;
    &lt;/ul&gt;&lt;/font&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;Barrat-Charlaix et al, 2020&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Diversity in immune responses&lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; left:10%; width:80%"&gt;
    &lt;img src="/talk_images/Lee_DMS_flu_antigenic_diversity.png" width="100%"&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;&lt;a href="https://doi.org/10.7554/eLife.49324"&gt;Lee et al, 2019&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Influenza and Theory acknowledgments&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:10%; width:30%"&gt;
        &lt;div style="display:inline"&gt;
            &lt;img src="/images/team_pics/boris_shraiman.png"     class="plain" height=180px&gt;
            &lt;img src="/images/team_pics/colin_russell.png"      class="plain" height=180px&gt;
            &lt;img src="/images/team_pics/trevor_bedford.png"     class="plain" height=180px&gt;
            &lt;img src="/images/team_pics/pierre_barrat.png" class="plain" height=180px&gt;
            &lt;img src="/images/team_pics/john_huddleston.jpg" class="plain" height=180px&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:45%; width:50%"&gt;
    &lt;font size=6&gt;
    &lt;ul&gt;
        &lt;li&gt;Boris Shraiman&lt;/li&gt;
        &lt;li&gt;Colin Russell&lt;/li&gt;
        &lt;li&gt;Trevor Bedford&lt;/li&gt;
        &lt;li&gt;Pierre Barrat&lt;/li&gt;
        &lt;li&gt;John Huddleston&lt;/li&gt;&lt;br&gt;
        &lt;li&gt;All the NICs and WHO CCs that provide influenza sequence data&lt;/li&gt;
        &lt;li&gt;The WHO CCs in London and Atlanta for providing titer data&lt;/li&gt;
    &lt;/ul&gt;&lt;/font&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:8%; left:60%; width:40%"&gt;
    &lt;img class="plain" src="talk_images/unibas_logo.png" height=80px style="margin-right: 10px"&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Acknowledgments&lt;/h3&gt;
&lt;div  style="position: absolute;top:20%; left:10%; width: 80%; text-align:left"&gt;
  &lt;h4&gt;Trevor Bedford and his lab -- terrific collaboration since 2014&lt;/h4&gt;
  &lt;img src="/talk_images/nextstrain_people.png" width="1300px"&gt;
  &lt;h4&gt;especially James Hadfield, Emma Hodcroft, Ivan Aksamentov, Cornelius Roemer, Moira Zuber, and John Huddleston&lt;/h4&gt;
&lt;/div&gt;
&lt;div style="position: absolute;bottom:10%; left:10%; width: 80%; text-align:left"&gt;
  &lt;h4&gt;Data we analyze are contributed by scientists from all over the world&lt;/h4&gt;
  &lt;h4&gt;Data are shared and curated by GISAID&lt;h4&gt;
  &lt;img src="/talk_images/GISAID_logo.png" class="plain" width="200px"&gt;
&lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Fixation probability is quasi-neutral&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:5%; width:45%"&gt;
    &lt;h5&gt;A/H3N2 influenza&lt;/h5&gt;
    &lt;img src="/talk_images/Barrat_limits_pfix_only.png" width="90%" class="plain"&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:50%; width:45%" class="fragment"&gt;
    &lt;h5&gt;Simulations with increasing interference&lt;/h5&gt;
    &lt;img src="/talk_images/Barrat_limits_pfix_simulation.png" width="85%" class="plain"&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;Barrat-Charlaix et al, 2020&lt;/span&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>A pseudovirus system enables deep mutational scanning of the full SARS-CoV-2 spike</title><link href="/dadonaite_pseudovirus_2023.html" rel="alternate"/><published>2023-02-10T00:00:00+01:00</published><updated>2023-02-10T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2023-02-10:/dadonaite_pseudovirus_2023.html</id><summary type="html">&lt;p&gt;A major challenge in understanding SARS-CoV-2 evolution is interpreting the antigenic and functional effects of emerging mutations in the viral spike protein. Here, we describe a deep mutational scanning platform based on non-replicative pseudotyped lentiviruses that directly quantifies how large numbers of spike mutations impact antibody neutralization and pseudovirus infection …&lt;/p&gt;</summary><content type="html">&lt;p&gt;A major challenge in understanding SARS-CoV-2 evolution is interpreting the antigenic and functional effects of emerging mutations in the viral spike protein. Here, we describe a deep mutational scanning platform based on non-replicative pseudotyped lentiviruses that directly quantifies how large numbers of spike mutations impact antibody neutralization and pseudovirus infection. We apply this platform to produce libraries of the Omicron BA.1 and Delta spikes. These libraries each contain ∼7,000 distinct amino acid mutations in the context of up to ∼135,000 unique mutation combinations. We use these libraries to map escape mutations from neutralizing antibodies targeting the receptor-binding domain, N-terminal domain, and S2 subunit of spike. Overall, this work establishes a high-throughput and safe approach to measure how ∼105 combinations of mutations affect antibody neutralization and spike-mediated infection. Notably, the platform described here can be extended to the entry proteins of many other viruses.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Reversions to consensus are positively selected in HIV-1 and bias substitution rate estimates</title><link href="/druelle_reversions_2023.html" rel="alternate"/><published>2022-12-15T00:00:00+01:00</published><updated>2022-12-15T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2022-12-15:/druelle_reversions_2023.html</id><summary type="html">&lt;p&gt;Human immunodeficiency virus 1 (HIV-1) is a rapidly evolving virus able to evade host immunity through rapid adaptation during chronic infection. The HIV-1 group M has diversified since its zoonosis into several subtypes at a rate of the order of 10−3 changes per site per year. This rate varies …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Human immunodeficiency virus 1 (HIV-1) is a rapidly evolving virus able to evade host immunity through rapid adaptation during chronic infection. The HIV-1 group M has diversified since its zoonosis into several subtypes at a rate of the order of 10−3 changes per site per year. This rate varies between different parts of the genome, and its inference is sensitive to the timescale and diversity spanned by the sequence data used. Higher rates are estimated on short timescales and particularly for within-host evolution, while rate estimates spanning decades or the entire HIV-1 pandemic tend to be lower. The underlying causes of this difference are not well understood. We investigate here the role of rapid reversions toward a preferred evolutionary sequence state on multiple timescales. We show that within-host reversion mutations are under positive selection and contribute substantially to sequence turnover, especially at conserved sites. We then use the rates of reversions and non-reversions estimated from longitudinal within-host data to parameterize a phylogenetic sequence evolution model. Sequence simulation of this model on HIV-1 phylogenies reproduces diversity and apparent evolutionary rates of HIV-1 in gag and pol, suggesting that a tendency to rapidly revert to a consensus-like state can explain much of the time dependence of evolutionary rate estimates in HIV-1.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Contributions of adaptation and purifying selection to SARS-CoV-2 evolution</title><link href="/neher_contributions_2022.html" rel="alternate"/><published>2022-12-10T00:00:00+01:00</published><updated>2022-12-10T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2022-12-10:/neher_contributions_2022.html</id><summary type="html">&lt;p&gt;Continued evolution and adaptation of SARS-CoV-2 has led to more transmissible and immune-evasive variants with profound impacts on the course of the pandemic. Here I analyze the evolution of the virus over 2.5 years since its emergence and estimate the rates of evolution for synonymous and non-synonymous changes separately …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Continued evolution and adaptation of SARS-CoV-2 has led to more transmissible and immune-evasive variants with profound impacts on the course of the pandemic. Here I analyze the evolution of the virus over 2.5 years since its emergence and estimate the rates of evolution for synonymous and non-synonymous changes separately for evolution within clades—well-defined monophyletic groups with gradual evolution—and for the pandemic overall. The rate of synonymous mutation is found to be around 6 changes per year. Synonymous rates within variants vary little from variant to variant and are compatible with the overall rate of 7 changes per year (or \$7.5 {\textbackslash}times 10{\textasciicircum}{-4}\$ per year and codon). In contrast, the rate at which variants accumulate amino acid changes (non-synonymous mutations) was initially around 12-16 changes per year, but in 2021 and 2022 it dropped to 6-9 changes per year. The overall rate of non-synonymous evolution, that is across variants, is estimated to be about 26 amino acid changes per year (or \$2.7 {\textbackslash}times 10{\textasciicircum}{-3}\$ per year and codon). This strong acceleration of the overall rate compared to within clade evolution indicates that the evolutionary process that gave rise to the different variants is qualitatively different from that in typical transmission chains and likely dominated by adaptive evolution. I further quantify the spectrum of mutations and purifying selection in different SARS-CoV-2 proteins and show that the massive global sampling of SARS-CoV-2 is sufficient to estimate site-specific fitness costs across the entire genome. Many accessory proteins evolve under limited evolutionary constraints with little short-term purifying selection. About half of the mutations in other proteins are strongly deleterious.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Determinants of antigenic evolution in SARS-CoV-2 and Influenza Viruses</title><link href="/202212_Geneva.html" rel="alternate"/><published>2022-12-09T00:00:00+01:00</published><updated>2022-12-09T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2022-12-09:/202212_Geneva.html</id><content type="html">&lt;section&gt;
&lt;h2&gt;&lt;a href="https://docs.google.com/presentation/d/1HoYjY0B-u8pVVjgk3Z6Y4-XDv20PvquaQDEdLK2yISo/edit?usp=sharing"&gt;Link to Slides&lt;/a&gt;&lt;/h2&gt;
&lt;/section&gt;</content><category term="talk"/></entry><entry><title>Evolution and spread of Influenza, HIV, and SARS-CoV-2</title><link href="/202212_CBB.html" rel="alternate"/><published>2022-12-01T00:00:00+01:00</published><updated>2022-12-01T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2022-12-01:/202212_CBB.html</id><summary type="html">&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Human seasonal influenza viruses&lt;/h3&gt;
&lt;div style="position: absolute;top:13%; left:15%; width:70%"&gt;
&lt;img src="/talk_images/flu_pandemics.png" width=100%&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;slide by Trevor Bedford&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h3&gt;Positive tests for influenza in the USA by week&lt;/h3&gt;
    &lt;img class="plain" src="/images/flu_subtypes_positive_tests.png" width="1400px"&gt;
&lt;span class="ref"&gt;&lt;a href="https://gis.cdc.gov/grasp/fluview/fluportaldashboard.html"&gt;Data by the US CDC&lt;/a&gt; &lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Virus genomes change rapidly through time&lt;/h3&gt;
&lt;div style="position: absolute;top:22%; left:15%; width:70%; text-align: left"&gt;
&lt;font font-family="Andale Mono"&gt;
&lt;b&gt;A/Brisbane/100/2014&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1000/2015&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;T&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1/2017&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
... hundreds …&lt;/font&gt;&lt;/div&gt;&lt;/section&gt;</summary><content type="html">&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Human seasonal influenza viruses&lt;/h3&gt;
&lt;div style="position: absolute;top:13%; left:15%; width:70%"&gt;
&lt;img src="/talk_images/flu_pandemics.png" width=100%&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;slide by Trevor Bedford&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h3&gt;Positive tests for influenza in the USA by week&lt;/h3&gt;
    &lt;img class="plain" src="/images/flu_subtypes_positive_tests.png" width="1400px"&gt;
&lt;span class="ref"&gt;&lt;a href="https://gis.cdc.gov/grasp/fluview/fluportaldashboard.html"&gt;Data by the US CDC&lt;/a&gt; &lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Virus genomes change rapidly through time&lt;/h3&gt;
&lt;div style="position: absolute;top:22%; left:15%; width:70%; text-align: left"&gt;
&lt;font font-family="Andale Mono"&gt;
&lt;b&gt;A/Brisbane/100/2014&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1000/2015&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;T&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1/2017&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
... hundreds of thousands of sequences...
&lt;/font&gt;
&lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Genome sequences record the spread of pathogens&lt;/h3&gt;
&lt;div  style="position: absolute;top:10%; left:15%; width: 70%"&gt;
  &lt;img src="/talk_images/infection_tree_1.png" width=100% class="plain"&gt;
&lt;/div&gt;
&lt;div class="fragment" style="position: absolute;top:10%; left:15%; width: 70%"&gt;
  &lt;img src="/talk_images/infection_tree_2.png" width=100% class="plain"&gt;
&lt;/div&gt;
&lt;div class="fragment" style="position: absolute;top:10%; left:15%; width: 70%"&gt;
  &lt;img src="/talk_images/infection_tree_3b.png" width=100% class="plain"&gt;
&lt;/div&gt;
&lt;div class="fragment" style="position: absolute;top:10%; left:15%; width: 70%"&gt;
  &lt;img src="/talk_images/infection_tree_4b.png" width=100% class="plain"&gt;
&lt;/div&gt;
&lt;div class="fragment" style="position: absolute;bottom:3%; left:10%; width: 80%"&gt;
&lt;h5&gt;in SARS-CoV-2 a new mutation accumulates about every 2 weeks &lt;/h5&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;images by Trevor Bedford&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;div style="position:absolute;width:1600px;"&gt;
        &lt;img src="talk_images/H3N2_35y_phylogeny.png" width=1100px&gt;
        &lt;div style="position:absolute; top:3%; left:44%; width:27%"&gt;
            &lt;img src="talk_images/H3N2_35y_legend.png"&gt;&lt;br&gt;
        &lt;/div&gt;
        &lt;div class="fragment" style="position:absolute; top:3%; left:19%; width:27%"&gt;
            &lt;img src="talk_images/H3N2_HA_structure.png"&gt;&lt;br&gt;
        &lt;/div&gt;
        &lt;div class="fragment current-visible" style="position:absolute; top:60%; left:16%; width:40%"&gt;
        &lt;small&gt;
            &lt;ul&gt;
                &lt;li&gt;Influenza viruses evolve to avoid human immunity&lt;/li&gt;
                &lt;li&gt;Vaccines need frequent updates&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/small&gt;
        &lt;/div&gt;
        &lt;div class="fragment" style="position:absolute; bottom:3%; left:10%; width:80%"&gt;
            &lt;img src="talk_images/H3N2_189_trajectory.png"&gt;&lt;br&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Predicting evolution&lt;/h3&gt;
    &lt;div style="position:absolute; top:18%; left:5%; width:33%"&gt;
        &lt;img src="talk_images/fitness_prediction_two_sample.png" width="90%"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:38%; left:50%; width:33%"&gt;
    &lt;small&gt;
        &lt;h3 style="text-align:left; width:100%"&gt;Given the branching pattern:&lt;/h3&gt;
        &lt;ul&gt;
            &lt;li&gt;can we predict fitness?&lt;/li&gt;
            &lt;li&gt;pick the closest relative of the future?&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/small&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Fitness inference from trees&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:5%; width:90%"&gt;
    &lt;object data="talk_images/neher_2014_algorithm.svg" width="90%"&gt;&lt;/object&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:20%; left:5%; width:90%"&gt;
        &lt;small&gt;$$P(\mathbf{x}|T) = \frac{1}{Z(T)} p_0(x_0) \prod_{i=0}^{n_{int}} g(x_{i_1}, t_{i_1}| x_i, t_i)g(x_{i_2}, t_{i_2}| x_i, t_i)$$&lt;/small&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Prediction of the dominating H3N2 influenza strain &lt;/h3&gt;
    &lt;div class="spacer"&gt;&lt;/div&gt;
    &lt;object data="talk_images/neher_2014_H3N2_prediction.svg" width="70%"&gt;&lt;/object&gt;
    &lt;small&gt;&lt;ul&gt;
        &lt;li&gt;no influenza specific input&lt;/li&gt;
        &lt;li&gt;how can the model be improved? (see model by Luksza &amp; Laessig)&lt;/li&gt;
        &lt;li&gt;what other context might this apply?&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h2&gt;Real-time tracking of SARS-CoV-2&lt;/h2&gt;
&lt;ul&gt;
    &lt;li&gt;thousands of new sequences every day&lt;/li&gt;
    &lt;li&gt;more than &gt;14M sequences right now &lt;/li&gt;
    &lt;li&gt;comprehensive analysis require hours to days to complete&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="bigspacer"&gt;&lt;/div&gt;
&lt;h5&gt;&amp;rarr; requires continuous analysis and easy dissemination&lt;/h5&gt;
&lt;h5&gt;&amp;rarr; interpretable and intuitive visualization&lt;/h5&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;a href="http://nextstrain.org"  target="_blank"&gt;&lt;h1 style="color:#5097BA"&gt;nextstrain.org&lt;/h1&gt;&lt;/a&gt;
&lt;a href="http://bedford.io"  target="_blank"&gt;&lt;h3&gt;joint project with Trevor Bedford &amp; his lab&lt;/h3&gt;&lt;/a&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;h3&gt;Emergence and dominance of SARS-CoV-2 variants&lt;/h3&gt;
&lt;img src="/talk_images/2021-09_VoCs.png" height=750px&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Successful variants are characterized by many mutations in S1&lt;/h3&gt;
&lt;div  style="position: absolute;top:15%; left:7%; width: 85%"&gt;
  &lt;img src="/talk_images/2022-05-09_ncov_S1_mutations.png" width=100%&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;&lt;a href=https://nextstrain.org/ncov/gisaid/global&gt;nextstrain.org/ncov/gisaid/global&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Remarkable patterns of rapid adaptation&lt;/h3&gt;
&lt;div  style="position: absolute;top:20%; left:5%; width: 90%"&gt;
&lt;img src="/talk_images/2022-05-09_ncov_diversity.png" width=100%&gt;
&lt;img src="/talk_images/omicron_mutations.png" width=100%&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;&lt;a href=https://nextstrain.org/ncov/gisaid/global&gt;nextstrain.org/ncov/gisaid/global&lt;/a&gt;, outbreak.info&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Gradual shift from selection on transmission to immune escape&lt;/h3&gt;
&lt;div  style="position: absolute;top:15%; left:7%; width: 55%"&gt;
  &lt;img src="/talk_images/SouthAfrica_seroprevalence.png" width=100%&gt;
&lt;/div&gt;
&lt;div  style="position: absolute;top:15%; left:65%; width: 35%"&gt;
    &lt;font size=5&gt;
    &lt;ul&gt;
    &lt;li&gt;Until early-2021, seroprevalence was low to moderate&lt;/li&gt;
    &lt;li&gt;Delta infections and vaccination resulted in high seroprevalence in 2021&lt;/li&gt;
    &lt;li&gt;Variant success now is dominated by immune escape&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/font&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;&lt;a href=https://www.cdc.gov/mmwr/volumes/71/wr/mm7117e3.htm&gt;Kleynhans et al&lt;/a&gt;, ourworldindata.org&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;So far, independent variants have dominated sequentially&lt;/h3&gt;
&lt;div  style="position: absolute;top:12%; left:7%; width: 50%"&gt;
  &lt;img src="/talk_images/2022-05-09_ncov_radial.png" width=100%&gt;
&lt;/div&gt;
&lt;div  style="position: absolute;top:18%; left:60%; width: 40%" class="fragment"&gt;
    &lt;font size=5&gt;
    &lt;ul&gt;
    &lt;li&gt;Variant emergence likely through chronic infections&lt;/li&gt;
    &lt;li&gt;Strong dichotomy (until 2022): dramatic changes between variants, slow and steady within variants&lt;/li&gt;
    &lt;li&gt;Omicron variants are more dynamic&lt;/li&gt;
    &lt;li&gt;With BA.4/5 and BA.2 subvariants, we start to see second generation variants&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/font&gt;
    &lt;div class="hugespacer"&gt;&lt;/div&gt;
    &lt;h5 class="fragment"&gt;What is driving this?&lt;/h5&gt;
    &lt;div class="hugespacer"&gt;&lt;/div&gt;
    &lt;h5 class="fragment"&gt;Can we predict?&lt;/h5&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;&lt;a href=https://nextstrain.org/ncov/gisaid/global&gt;nextstrain.org/ncov/gisaid/global&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;To predict, we need to quantify selection by immunity&lt;/h3&gt;
    &lt;div style="position:absolute; top:1%; left:68%; width:28%"&gt;
      &lt;img src="/talk_images/straten_SC2_serology.png" width=100%&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:7%; width:55%" class="fragment"&gt;
    &lt;font size=5&gt;
    &lt;ul&gt;
    &lt;li&gt;Given a population immunity "landscape", how much escape is caused by which mutation?&lt;/li&gt;
    &lt;li&gt;How variable are individual immune responses?&lt;/li&gt;
    &lt;li&gt;How does exposure history shape neutralization of different variants?&lt;/li&gt;
    &lt;li&gt;What is the contribution of chronic vs acute infections?&lt;/li&gt;
    &lt;li&gt;Does escape during chronic infection mediate inter-individual escape?
        It did for Omicron, but will this stay that way?&lt;/li&gt;
    &lt;li&gt;What is the contribution of chronic infections in other viruses?&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/font&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:1%; left:68%; width:28%" class="fragment"&gt;
      &lt;img src="/talk_images/Lee_fluVariability_escape.png" width=100%&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:60%; left:7%; width:50%"class="fragment"&gt;
      &lt;img src="/talk_images/Lee_fluVariability_selection.png" width=100%&gt;
    &lt;/div&gt;

&lt;span class="ref"&gt;&lt;a href="https://www.biorxiv.org/content/10.1101/2022.01.28.477987v1"&gt;van der Straten et al, biorxiv, 2022&lt;/a&gt;;
                  &lt;a href="https://elifesciences.org/articles/49324"&gt;Lee, ... Bloom, eLife, 2019&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Acknowledgments&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:10%; width:40%"&gt;
        &lt;div style="display:inline"&gt;
            &lt;object data="/images/team_pics/fabio_zanini.png" height=300px&gt;&lt;/object&gt;
            &lt;object data="/images/team_pics/jan_albert.png" height=150px&gt;&lt;/object&gt;
            &lt;object data="/images/team_pics/johanna_brodin.png" height=150px&gt;&lt;/object&gt;
            &lt;object data="/images/team_pics/christa_lanz.png" height=150px&gt;&lt;/object&gt;
            &lt;object data="/images/team_pics/goran_bratt.png" height=150px&gt;&lt;/object&gt;
            &lt;object data="/images/team_pics/lina_thebo.png" height=150px&gt;&lt;/object&gt;
            &lt;object data="/images/team_pics/vadim_puller.png" height=150px&gt;&lt;/object&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:45%; width:30%"&gt;
    &lt;font size=6&gt;
    &lt;ul&gt;
        &lt;li&gt;Fabio Zanini&lt;/li&gt;
        &lt;li&gt;Jan Albert&lt;/li&gt;
        &lt;li&gt;Johanna Brodin&lt;/li&gt;
        &lt;li&gt;Christa Lanz&lt;/li&gt;
        &lt;li&gt;Göran Bratt&lt;/li&gt;
        &lt;li&gt;Lina Thebo&lt;/li&gt;
        &lt;li&gt;Vadim Puller&lt;/li&gt;
    &lt;/ul&gt;&lt;/font&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:60%; width:40%"&gt;
    &lt;img class="plain" src="talk_images/max-planck-logo.png" height=120px style="margin-right: 10px"&gt;
    &lt;img class="plain" src="talk_images/erc-logo.jpg" height=120px style="margin-left: 10px"&gt;
    &lt;img class="plain" src="talk_images/unibas_logo.png" height=80px style="margin-right: 10px"&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Acknowledgments&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:10%; width:40%"&gt;
        &lt;div style="display:inline"&gt;
            &lt;object data="/images/team_pics/emma_hodcroft.jpg" height=250px&gt;&lt;/object&gt;
      &lt;object data="/images/team_pics/moira_zuber.jpg" height=250px&gt;&lt;/object&gt;
            &lt;object data="/images/team_pics/inaki_comas.jpg" height=250px&gt;&lt;/object&gt;
            &lt;object data="/images/team_pics/fernando_gonzales.jpg" height=250px&gt;&lt;/object&gt;
      &lt;object data="/images/team_pics/tanja_stadler.jpg" height=250px&gt;&lt;/object&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:45%; width:50%"&gt;
    &lt;font size=6&gt;
    &lt;ul&gt;
        &lt;li&gt;Emma Hodcroft&lt;/li&gt;
    &lt;li&gt;Moira Zuber&lt;/li&gt;
        &lt;li&gt;Inaki Comas&lt;/li&gt;
        &lt;li&gt;Fernando Gonzales&lt;/li&gt;
        &lt;li&gt;Tanja Stadler&lt;/li&gt;
    &lt;li&gt;Sarah Nadeau&lt;/li&gt;
    &lt;li&gt;Tim Vaughan&lt;/li&gt;
    &lt;li&gt;Jesse Bloom&lt;/li&gt;
    &lt;li&gt;David Veesler&lt;/li&gt;
    &lt;/ul&gt;&lt;/font&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:60%; width:40%"&gt;
    &lt;img class="plain" src="talk_images/unibas_logo.png" height=80px style="margin-right: 10px"&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Acknowledgments&lt;/h3&gt;
&lt;div  style="position: absolute;top:20%; left:10%; width: 80%; text-align:left"&gt;
  &lt;h4&gt;Trevor Bedford and his lab -- terrific collaboration since 2014&lt;/h4&gt;
  &lt;img src="/talk_images/nextstrain_people.png" width="1300px"&gt;
  &lt;h4&gt;especially James Hadfield, Emma Hodcroft, Ivan Aksamentov, Moira Zuber, John Huddleston, and Tom Sibley&lt;/h4&gt;
&lt;/div&gt;
&lt;div style="position: absolute;bottom:10%; left:10%; width: 80%; text-align:left"&gt;
  &lt;h4&gt;Data we analyze are contributed by scientists from all over the world&lt;/h4&gt;
  &lt;h4&gt;Data are shared and curated by GISAID&lt;h4&gt;
  &lt;img src="/talk_images/GISAID_logo.png" class="plain" width="200px"&gt;
&lt;/div&gt;
&lt;/section&gt;</content><category term="teaching"/></entry><entry><title>Virus evolution and the spread of infectious disease</title><link href="/202211_Ringvorlesung.html" rel="alternate"/><published>2022-11-30T00:00:00+01:00</published><updated>2022-11-30T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2022-11-30:/202211_Ringvorlesung.html</id><summary type="html">&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Viruses&lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; left:5%; width:30%"&gt;
        &lt;img src="talk_images/tobacco_mosaic_virus.png" width="100%"&gt;
        &lt;span style="font-size: 18px"&gt;tobacco mosaic virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; (Thomas Splettstoesser, wikipedia)&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:55%; left:5%; width:30%"&gt;
        &lt;img src="talk_images/bacteria_phage.png" width="40%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;bacteria phage&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; (adenosine, wikipedia)&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:15%; left:32%; width:30%"&gt;
        &lt;img src="talk_images/influenza_virus.png" width="70%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;influenza virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; wikipedia&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:55%; left:32%; width:30%"&gt;
        &lt;img src="talk_images/HI-virion-structure.svg" width="45%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;human immunodeficiency virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; wikipedia&lt;/span&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position:absolute; top:25%; left:60%; width:32%"&gt;
    &lt;small&gt;&lt;ul&gt;
        &lt;li&gt;rely on host to replicate&lt;/li&gt;
        &lt;li&gt;little more than genome + capsid&lt;/li&gt;
        &lt;li&gt;genomes typically 5-200k bases (+exceptions)&lt;/li&gt;
        &lt;!-- &lt;li&gt;many infectious diseases are caused by viruses&lt;/li&gt; --&gt;
        &lt;!-- &lt;li&gt;very important function in microbial eco-systems&lt;/li&gt; --&gt;
        &lt;li&gt;most abundant organisms on earth $\sim 10^{31}$&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:52%; left:55%; width: 50%"&gt;
&lt;!--    &lt;h5&gt;Phylogenetic analysis&lt;/h5&gt;
    &lt;img src="/talk_images/toy_alignment_notree.svg" width=70% class="plain"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:52%; left:55%; width: 50%"&gt;
    &lt;h5&gt;Phylogenetic analysis&lt;/h5&gt;
    &lt;img src="/talk_images/toy_alignment_tree.svg" width=70% class="plain"&gt;
    &lt;/div&gt;

 --&gt;&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Lifecycle of animal viruses&lt;/h3&gt;
    &lt;img src="/talk_images/HepC_replication.png"&gt;
&lt;span class="ref"&gt;By &lt;a href="https://en.wikipedia.org/wiki/User:GrahamColm" class="extiw" title="wikipedia:User:GrahamColm"&gt;GrahamColm&lt;/a&gt; at &lt;a href="https://en.wikipedia.org/wiki/" class="extiw" title="wikipedia:"&gt;English Wikipedia …&lt;/a&gt;&lt;/span&gt;&lt;/section&gt;</summary><content type="html">&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Viruses&lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; left:5%; width:30%"&gt;
        &lt;img src="talk_images/tobacco_mosaic_virus.png" width="100%"&gt;
        &lt;span style="font-size: 18px"&gt;tobacco mosaic virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; (Thomas Splettstoesser, wikipedia)&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:55%; left:5%; width:30%"&gt;
        &lt;img src="talk_images/bacteria_phage.png" width="40%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;bacteria phage&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; (adenosine, wikipedia)&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:15%; left:32%; width:30%"&gt;
        &lt;img src="talk_images/influenza_virus.png" width="70%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;influenza virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; wikipedia&lt;/span&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:55%; left:32%; width:30%"&gt;
        &lt;img src="talk_images/HI-virion-structure.svg" width="45%"&gt;&lt;br&gt;
        &lt;span style="font-size: 18px"&gt;human immunodeficiency virus&lt;/span&gt;
        &lt;span style="font-size: 12px"&gt; wikipedia&lt;/span&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position:absolute; top:25%; left:60%; width:32%"&gt;
    &lt;small&gt;&lt;ul&gt;
        &lt;li&gt;rely on host to replicate&lt;/li&gt;
        &lt;li&gt;little more than genome + capsid&lt;/li&gt;
        &lt;li&gt;genomes typically 5-200k bases (+exceptions)&lt;/li&gt;
        &lt;!-- &lt;li&gt;many infectious diseases are caused by viruses&lt;/li&gt; --&gt;
        &lt;!-- &lt;li&gt;very important function in microbial eco-systems&lt;/li&gt; --&gt;
        &lt;li&gt;most abundant organisms on earth $\sim 10^{31}$&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:52%; left:55%; width: 50%"&gt;
&lt;!--    &lt;h5&gt;Phylogenetic analysis&lt;/h5&gt;
    &lt;img src="/talk_images/toy_alignment_notree.svg" width=70% class="plain"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:52%; left:55%; width: 50%"&gt;
    &lt;h5&gt;Phylogenetic analysis&lt;/h5&gt;
    &lt;img src="/talk_images/toy_alignment_tree.svg" width=70% class="plain"&gt;
    &lt;/div&gt;

 --&gt;&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Lifecycle of animal viruses&lt;/h3&gt;
    &lt;img src="/talk_images/HepC_replication.png"&gt;
&lt;span class="ref"&gt;By &lt;a href="https://en.wikipedia.org/wiki/User:GrahamColm" class="extiw" title="wikipedia:User:GrahamColm"&gt;GrahamColm&lt;/a&gt; at &lt;a href="https://en.wikipedia.org/wiki/" class="extiw" title="wikipedia:"&gt;English Wikipedia&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Development of sequencing technologies&lt;/h3&gt;
    &lt;div style="position:absolute; top:12%; left:0%; width: 65%; text-align: left;"&gt;
        &lt;img src="/talk_images/developments_in_high_throughput_sequencing.jpg" width="100%" class="plain"&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:12%; left:60%; width: 40%; text-align: left;"&gt;
        &lt;div class="hugespacer"&gt;&lt;/div&gt;
        &lt;h5&gt;We can now sequence...&lt;/h5&gt;
        &lt;font size="6"&gt;
            &lt;ul&gt;
                &lt;li&gt;thousands of bacterial isolates&lt;/li&gt;
                &lt;li&gt;thousands of single cells&lt;/li&gt;
                &lt;li&gt;populations of viruses, bacteria or flies&lt;/li&gt;
                &lt;li&gt;diverse ecosystems&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/font&gt;
        &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Virus genomes change rapidly through time&lt;/h3&gt;
&lt;div style="position: absolute;top:22%; left:15%; width:70%; text-align: left"&gt;
&lt;font font-family="Andale Mono"&gt;
&lt;b&gt;A/Brisbane/100/2014&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1000/2015&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;T&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
&lt;b&gt;A/Brisbane/1/2017&lt;/b&gt;&lt;br&gt;
GGATAATTCTATTAACCATGAAGACTAT&lt;span style="color:red;"&gt;C&lt;/span&gt;ATTGCTTT...&lt;br&gt;&lt;br&gt;
... hundreds of thousands of sequences...
&lt;/font&gt;
&lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Phylogenetic analysis of viral sequences&lt;/h3&gt;
    &lt;div style="position: absolute;top:22%; left:15%; width: 70%"&gt;
    &lt;img src="/talk_images/toy_alignment_notree.svg" width=100% class="plain"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:22%; left:15%; width: 70%"&gt;
    &lt;img src="/talk_images/toy_alignment_tree.svg" width=100% class="plain"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" style="position: absolute;top:75%; left:15%; width: 70%"&gt;
        &lt;h5&gt;RNA viruses have a high mutation rate. New mutations arise every few weeks.&lt;/h5&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Some viruses evolve a million times faster than animals&lt;/h3&gt;
    &lt;div class="bigspacer"&gt;&lt;/div&gt;
    &lt;h4&gt;Animal haemoglobin&lt;/h4&gt;
    &lt;img src="/talk_images/hemoglobin_alignment.png" width="1200px" class="plain"&gt;
    &lt;div class="bigspacer"&gt;&lt;/div&gt;
    &lt;h4&gt;HIV protein&lt;/h4&gt;
    &lt;img src="/talk_images/HIV_dummy_alignment.png" width="1200px" class="plain"&gt;
&lt;/section&gt;
&lt;!--HIV INTRAPATIENT EVOLUTION --&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Evolution of HIV&lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; left:5%; width:64%"&gt;
        &lt;img src="talk_images/sharp_hahn_HIV_origins.png" width="100%"&gt;&lt;br&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:70%; width:30%"&gt;
    &lt;small&gt;
        &lt;ul class="fragment"&gt;
            &lt;li&gt;Chimp &amp;rarr; human transmission around 1900 gave rise to HIV-1 group M&lt;/li&gt;
            &lt;li&gt;~100 million infected people since&lt;/li&gt;
            &lt;li&gt;subtypes differ at 10-20% of their genome&lt;/li&gt;
            &lt;li&gt;HIV-1 evolves ~0.1% per year&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/small&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;image: Sharp and Hahn, CSH Persp. Med.&lt;/span&gt;
&lt;/section&gt;
&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;HIV infection&lt;/h3&gt;
    &lt;div style="position: absolute; left:5%; top:20%; width: 45%"&gt;
        &lt;img src="talk_images/HIV_infection_sketch.png" width="100%" class="plain"&gt;
    &lt;/div&gt;
    &lt;div style="position: absolute; left:50%; top:15%; width: 50%"&gt;
        &lt;img src="talk_images/HIV-replication-cycle_simplified.svg" width="100%" class="plain fragment"&gt;
    &lt;/div&gt;
    &lt;div style="position: absolute; left:5%; bottom:15%; width: 45%"&gt;
    &lt;small&gt;
    &lt;ul&gt;
        &lt;li&gt;$10^8$ cells are infected every day&lt;/li&gt;
        &lt;li&gt;the virus repeatedly escapes immune recognition&lt;/li&gt;
        &lt;li&gt;integrates into T-cells as &lt;it&gt;latent provirus&lt;/it&gt;&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;&lt;/div&gt;
    &lt;span class="ref"&gt;&lt;a href="https://en.wikipedia.org/wiki/HIV/AIDS#/media/File:Hiv-timecourse.png"&gt;image: wikipedia&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;HIV-1 evolution within one individual&lt;/h3&gt;
    &lt;div style="position:absolute; top:18%; left:5%; width:40%"&gt;
        &lt;img class="plain" src="talk_images/HIV_quasispecies.svg"&gt;&lt;br&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:18%; left:55%; width:40%"&gt;
        &lt;img class="fragment plain"  src="/talk_images/sketchPrepCircle.png" width=100%&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:7%; left:10%; width:40%"&gt;
        &lt;img class="fragment plain" src="talk_images/pile_up.png" width="100%"&gt;&lt;br&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;silouhette: clipartfest.com, Zanini at al, 2015. Collaboration with Jan Albert and his group&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Immune escape in early HIV infection&lt;/h3&gt;
    &lt;img src="/talk_images/HIV_immune_escape_sketch.png" width=1200px&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Immune escape in early HIV infection&lt;/h3&gt;
    &lt;img src="/talk_images/HIV_immune_escape_salazar.png" width=1200px&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Selective sweeps&lt;/h3&gt;
    &lt;font size=5&gt;
        &lt;ul&gt;
            &lt;li&gt;Viruses carrying a beneficial mutation have more offspring: on average $1+s$ instead of $1$&lt;/li&gt;
            &lt;li&gt;$s$ is called selection coefficient&lt;/li&gt;
            &lt;li&gt;Fraction $x$ of viruses carrying the mutation changes as
            $$x(t+1) = \frac{(1+s)x(t)}{(1+s)x(t) + (1-x(t))}$$&lt;/li&gt;
            &lt;li&gt;In continuous time &amp;rarr; logistic differential equation:
                $$\frac{dx}{dt} = sx(1-x) \Rightarrow x(t) = \frac{e^{s(t-t_0)}}{1+ e^{s(t-t_0)}}$$
                &lt;/li&gt;
        &lt;/ul&gt;
    &lt;/font&gt;
&lt;/section&gt;

&lt;!-- MUTATION TRACKING --&gt;
&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Population sequencing to track all mutations above 1%&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:8%; height:84%"&gt;
        &lt;div style="width:100%"&gt;
            &lt;object data="talk_images/zanini_2015_frequency_trajectories.svg" type="image/svg+xml" width="50%"&gt;&lt;/object&gt;
            &lt;object class="fragment" data="talk_images/richman_2003_antibody_titers.svg" type="image/svg+xml" width="48%"&gt;&lt;/object&gt;
        &lt;/div&gt;
    &lt;/div&gt;
        &lt;!-- &lt;div class="bigspacer"&gt;&lt;/div&gt; --&gt;
    &lt;div style="position:absolute; bottom:10%; left:8%;"&gt;
        &lt;small&gt;
        &lt;ul&gt;
            &lt;li&gt;diverge at 0.1-1% per year&lt;/li&gt;
            &lt;li&gt;almost whole genome coverage in 10 patients&lt;/li&gt;
            &lt;li&gt;full data set at &lt;a href="http://hiv.tuebingen.mpg.de"&gt;hiv.tuebingen.mpg.de&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
        &lt;/small&gt;
        &lt;/div&gt;
    &lt;span class="ref"&gt;Zanini et al, eLife, 2015; antibody data from Richman et al, 2003&lt;/span&gt;
&lt;/section&gt;

&lt;!-- BOOK OF TREES - MOVIE ALONG THE GENOME --&gt;
&lt;!-- &lt;section class="fullslide"&gt;
    &lt;div style="position:absolute; top:25%; left:0%; width:100%"&gt;
        &lt;img src="talk_images/HIV_book_of_trees.gif" width=60%&gt;&lt;br&gt;
    &lt;/div&gt;
&lt;/section&gt;
 --&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Human Influenza A viruses&lt;/h3&gt;
&lt;div style="position: absolute;top:13%; left:15%; width:70%"&gt;
&lt;img src="/talk_images/flu_pandemics.png" width=100%&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;slide by Trevor Bedford&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h3&gt;Weekly numbers of positive influenza tests in the US by subtype&lt;/h3&gt;
    &lt;img class="plain" src="/images/flu_subtypes_positive_tests.png"&gt;
&lt;span class="ref"&gt;&lt;a href="https://gis.cdc.gov/grasp/fluview/fluportaldashboard.html"&gt;Data by the US CDC&lt;/a&gt; &lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Influenza virus&lt;/h3&gt;
    &lt;div style="position: absolute;top:15%; left:5%; width:60%; justify-content: left"&gt;
    &lt;img src="/talk_images/InfluenzaA-virion_viralZone.jpg" width=100% class="plain"&gt;
    &lt;/div&gt;
    &lt;div style="position: absolute;top:15%; left:68%; width:30%; justify-content: left"&gt;
        &lt;font size=5&gt;
        &lt;ul&gt;
            &lt;li&gt;Surface proteins hemagglutinin (HA) and neuraminidase (NA)&lt;/li&gt;
            &lt;li&gt;Influenza A virus&lt;/li&gt;
            &lt;ul&gt;
                &lt;li&gt;Common in birds and mammals&lt;/li&gt;
                &lt;li&gt;Many different subtypes defined by surface proteins&lt;/li&gt;
                &lt;li&gt;H3N2, H1N1, H7N9, H5N1&lt;/li&gt;
            &lt;/ul&gt;
            &lt;li&gt;Influenza B virus&lt;/li&gt;
            &lt;ul&gt;
                &lt;li&gt;infects mainly humans&lt;/li&gt;
                &lt;li&gt;two lineages that split 30-40y ago&lt;/li&gt;
                &lt;li&gt;B/Victoria vs B/Yamagata&lt;/li&gt;
            &lt;/ul&gt;
        &lt;/ul&gt;
        &lt;/font&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;a href="http://nextflu.org"  target="_blank"&gt;&lt;h1 style="color:#5097BA"&gt;nextflu.org&lt;/h1&gt;&lt;/a&gt;
&lt;a href="http://bedford.io"  target="_blank"&gt;&lt;h3&gt;joint work with Trevor Bedford &amp; his lab&lt;/h3&gt;&lt;/a&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;img src="/talk_images/nextflu_screenshot.png" height=800px&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;a href="http://nextstrain.org"  target="_blank"&gt;&lt;h1 style="color:#E04929"&gt;nextstrain.org&lt;/h1&gt;&lt;/a&gt;
&lt;a href="http://bedford.io"  target="_blank"&gt;&lt;h3&gt;joint work with Trevor Bedford &amp; his lab&lt;/h3&gt;&lt;/a&gt;
&lt;!-- &lt;img src="talk_images/nextflu.png" width=90%&gt;
 --&gt;
&lt;/section&gt;

&lt;section&gt;
        &lt;img src="/talk_images/nextstrain_tb.png" class="plain"&gt;
&lt;/section&gt;

&lt;!-- THEORETICAL POPGEN AND BSC --&gt;
&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Clonal interference and traveling waves&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; width:100%"&gt;
        &lt;img src="talk_images/arees_small_mutations.png" width=75%&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Annual Reviews, 2013; Desai &amp; Fisher; Brunet &amp; Derrida; Kessler &amp; Levine&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;div style="position:absolute; top:5%; left:50%; width:38%"&gt;
        &lt;h4&gt;Typical tree&lt;/h4&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:50%; width:38%"&gt;
        &lt;img src="talk_images/example_tree_BSC.png"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" data-fragment-index=1 style="position:absolute; bottom:10%; left:10%; width:38%"&gt;
        &lt;img src="talk_images/BSC_explain0.png"&gt;
    &lt;/div&gt;
    &lt;div class="fragment" data-fragment-index=2 style="position:absolute; bottom:10%; left:10%; width:38%"&gt;
        &lt;img src="talk_images/BSC_explain1.png"&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:5%; left:10%; width:38%"&gt;
        &lt;h4 class="fragment fade-in" data-fragment-index=1&gt;Bolthausen-Sznitman Coalescent&lt;/h4&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Hallatschek, PNAS, 2013; see also Brunet and Derrida, PRE, 2007&lt;/span&gt;
&lt;/section&gt;

&lt;!-- &lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;U-shaped polarized site frequency spectra&lt;/h3&gt;
    &lt;div style="position:absolute; bottom:15%; left:27%; width:60%"&gt;
        &lt;img src="talk_images/BSC_SFS.png" width="100%"&gt;&lt;br&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:55%; left:0%; width:27%"&gt;
        &lt;img src="talk_images/toy_alignment.svg" width="70%" type="image/svg+xml"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:15%; left:0%; width:27%"&gt;
        &lt;img src="talk_images/example_tree_BSC.png" width="70%"&gt;&lt;br&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Hallatschek, PNAS, 2013&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;img src="talk_images/HIV_SFS.png" width=70%&gt;
    &lt;span class="ref"&gt;Zanini et al, eLife, 2015&lt;/span&gt;
&lt;/section&gt;
 --&gt;

&lt;!-- FLU PREDICTION --&gt;
&lt;section&gt;
    &lt;h3&gt;Bursts in a tree &amp;harr; high fitness genotypes&lt;/h3&gt;
    &lt;h3 class="fragment"&gt;Can we read fitness of a tree?&lt;/h3&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Predicting evolution&lt;/h3&gt;
    &lt;div style="position:absolute; top:18%; left:5%; width:33%"&gt;
        &lt;img src="talk_images/fitness_prediction_two_sample.png" width="90%"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:38%; left:50%; width:33%"&gt;
    &lt;small&gt;
        &lt;h3 style="text-align:left; width:100%"&gt;Given the branching pattern:&lt;/h3&gt;
        &lt;ul&gt;
            &lt;li&gt;can we predict fitness?&lt;/li&gt;
            &lt;li&gt;pick the closest relative of the future?&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/small&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Fitness inference from trees&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:5%; width:90%"&gt;
    &lt;object data="talk_images/neher_2014_algorithm.svg" width="90%"&gt;&lt;/object&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:20%; left:5%; width:90%"&gt;
        &lt;small&gt;$$P(\mathbf{x}|T) = \frac{1}{Z(T)} p_0(x_0) \prod_{i=0}^{n_{int}} g(x_{i_1}, t_{i_1}| x_i, t_i)g(x_{i_2}, t_{i_2}| x_i, t_i)$$&lt;/small&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;video height="100%" data-autoplay src="talk_images/flu_prediction.webm" type="video/webm"&gt;&lt;/video&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Validation on simulated data&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:8%; width:34%"&gt;
    &lt;object data="talk_images/neher_2014_toy_prediction_C.svg" width="90%"&gt;&lt;/object&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:16%; left:54%; width:30%"&gt;
    &lt;img class="fragment fade-out"  data-fragment-index=1 src="talk_images/fitness_prediction_two_sample_pred.png"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:16%; left:54%; width:30%"&gt;
    &lt;img class="fragment current-visible" data-fragment-index=1 src="talk_images/fitness_prediction_two_sample_avg.png"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:16%; left:54%; width:30%"&gt;
    &lt;img class="fragment current-visible" data-fragment-index=2 src="talk_images/fitness_prediction_two_sample_opt.png"&gt;&lt;/img&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;h3&gt;Prediction of the dominating H3N2 influenza strain &lt;/h3&gt;
    &lt;div class="spacer"&gt;&lt;/div&gt;
    &lt;object data="talk_images/neher_2014_H3N2_prediction.svg" width="70%"&gt;&lt;/object&gt;
    &lt;small&gt;&lt;ul&gt;
        &lt;li&gt;no influenza specific input&lt;/li&gt;
        &lt;li&gt;how can the model be improved? (see model by Luksza &amp; Laessig)&lt;/li&gt;
        &lt;li&gt;what other context might this apply?&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;span class="ref"&gt;RN, Russell, Shraiman, eLife, 2014&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h2&gt;Real-time tracking of SARS-CoV-2&lt;/h2&gt;
&lt;ul&gt;
    &lt;li&gt;thousands of new sequences every day&lt;/li&gt;
    &lt;li&gt;more than &gt;14M sequences right now &lt;/li&gt;
    &lt;li&gt;comprehensive analysis require hours to days to complete&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="bigspacer"&gt;&lt;/div&gt;
&lt;h5&gt;&amp;rarr; requires continuous analysis and easy dissemination&lt;/h5&gt;
&lt;h5&gt;&amp;rarr; interpretable and intuitive visualization&lt;/h5&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;a href="http://nextstrain.org"  target="_blank"&gt;&lt;h1 style="color:#5097BA"&gt;nextstrain.org&lt;/h1&gt;&lt;/a&gt;
&lt;a href="http://bedford.io"  target="_blank"&gt;&lt;h3&gt;joint project with Trevor Bedford &amp; his lab&lt;/h3&gt;&lt;/a&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;h3&gt;Emergence and dominance of SARS-CoV-2 variants&lt;/h3&gt;
&lt;img src="/talk_images/2021-09_VoCs.png" height=750px&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;SARS-CoV-2 variants can become dominant without advantage&lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; left:10%; width:80%"&gt;
    &lt;img src="/talk_images/2021-06_EU1_frequencies.png" width="100%"&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;&lt;a href="https://doi.org/10.1101/2020.10.25.20219063"&gt;Hodcroft et al&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Spanish EU1 diversity was mirrored across Europe &lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; left:10%; width:50%"&gt;
    &lt;img src="/talk_images/2021-05_Hodcroft_collapsedTree.png" width="100%"&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:15%; left:60%; width:30%"&gt;
    &lt;img src="/talk_images/2021-05_Hodcroft_collapsedTree_legend.png" width="100%"&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;&lt;a href="https://doi.org/10.1101/2020.10.25.20219063"&gt;Hodcroft et al&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;High case numbers in Spain and high travel volume spread the variant&lt;/h3&gt;
    &lt;div style="position:absolute; top:15%; left:10%; width:40%"&gt;
    &lt;img src="/talk_images/2021-06_EU1_TravelPattern.png" width="100%"&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:15%; left:50%; width:40%"&gt;
    &lt;img src="/talk_images/2021-06_EU1_TravelModel.png" width="100%"&gt;
    &lt;/div&gt;
    &lt;span class="ref"&gt;&lt;a href="https://doi.org/10.1101/2020.10.25.20219063"&gt;Hodcroft et al&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Successful variants are characterized by many mutations in S1&lt;/h3&gt;
&lt;div  style="position: absolute;top:15%; left:7%; width: 85%"&gt;
  &lt;img src="/talk_images/2022-05-09_ncov_S1_mutations.png" width=100%&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;&lt;a href=https://nextstrain.org/ncov/gisaid/global&gt;nextstrain.org/ncov/gisaid/global&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Remarkable patterns of rapid adaptation&lt;/h3&gt;
&lt;div  style="position: absolute;top:20%; left:5%; width: 90%"&gt;
&lt;img src="/talk_images/2022-05-09_ncov_diversity.png" width=100%&gt;
&lt;img src="/talk_images/omicron_mutations.png" width=100%&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;&lt;a href=https://nextstrain.org/ncov/gisaid/global&gt;nextstrain.org/ncov/gisaid/global&lt;/a&gt;, outbreak.info&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Gradual shift from selection on transmission to immune escape&lt;/h3&gt;
&lt;div  style="position: absolute;top:15%; left:7%; width: 55%"&gt;
  &lt;img src="/talk_images/SouthAfrica_seroprevalence.png" width=100%&gt;
&lt;/div&gt;
&lt;div  style="position: absolute;top:15%; left:65%; width: 35%"&gt;
    &lt;font size=5&gt;
    &lt;ul&gt;
    &lt;li&gt;Until early-2021, seroprevalence was low to moderate&lt;/li&gt;
    &lt;li&gt;Delta infections and vaccination resulted in high seroprevalence in 2021&lt;/li&gt;
    &lt;li&gt;Variant success now is dominated by immune escape&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/font&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;&lt;a href=https://www.cdc.gov/mmwr/volumes/71/wr/mm7117e3.htm&gt;Kleynhans et al&lt;/a&gt;, ourworldindata.org&lt;/span&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;So far, independent variants have dominated sequentially&lt;/h3&gt;
&lt;div  style="position: absolute;top:12%; left:7%; width: 50%"&gt;
  &lt;img src="/talk_images/2022-05-09_ncov_radial.png" width=100%&gt;
&lt;/div&gt;
&lt;div  style="position: absolute;top:18%; left:60%; width: 40%" class="fragment"&gt;
    &lt;font size=5&gt;
    &lt;ul&gt;
    &lt;li&gt;Variant emergence likely through chronic infections&lt;/li&gt;
    &lt;li&gt;Strong dichotomy (until 2022): dramatic changes between variants, slow and steady within variants&lt;/li&gt;
    &lt;li&gt;Omicron variants are more dynamic&lt;/li&gt;
    &lt;li&gt;With BA.4/5 and BA.2 subvariants, we start to see second generation variants&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/font&gt;
    &lt;div class="hugespacer"&gt;&lt;/div&gt;
    &lt;h5 class="fragment"&gt;What is driving this?&lt;/h5&gt;
    &lt;div class="hugespacer"&gt;&lt;/div&gt;
    &lt;h5 class="fragment"&gt;Can we predict?&lt;/h5&gt;
&lt;/div&gt;
&lt;span class="ref"&gt;&lt;a href=https://nextstrain.org/ncov/gisaid/global&gt;nextstrain.org/ncov/gisaid/global&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;To predict, we need to quantify selection by immunity&lt;/h3&gt;
    &lt;div style="position:absolute; top:1%; left:68%; width:28%"&gt;
      &lt;img src="/talk_images/straten_SC2_serology.png" width=100%&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:7%; width:55%" class="fragment"&gt;
    &lt;font size=5&gt;
    &lt;ul&gt;
    &lt;li&gt;Given a population immunity "landscape", how much escape is caused by which mutation?&lt;/li&gt;
    &lt;li&gt;How variable are individual immune responses?&lt;/li&gt;
    &lt;li&gt;How does exposure history shape neutralization of different variants?&lt;/li&gt;
    &lt;li&gt;What is the contribution of chronic vs acute infections?&lt;/li&gt;
    &lt;li&gt;Does escape during chronic infection mediate inter-individual escape?
        It did for Omicron, but will this stay that way?&lt;/li&gt;
    &lt;li&gt;What is the contribution of chronic infections in other viruses?&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/font&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:1%; left:68%; width:28%" class="fragment"&gt;
      &lt;img src="/talk_images/Lee_fluVariability_escape.png" width=100%&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:60%; left:7%; width:50%"class="fragment"&gt;
      &lt;img src="/talk_images/Lee_fluVariability_selection.png" width=100%&gt;
    &lt;/div&gt;

&lt;span class="ref"&gt;&lt;a href="https://www.biorxiv.org/content/10.1101/2022.01.28.477987v1"&gt;van der Straten et al, biorxiv, 2022&lt;/a&gt;;
                  &lt;a href="https://elifesciences.org/articles/49324"&gt;Lee, ... Bloom, eLife, 2019&lt;/a&gt;&lt;/span&gt;
&lt;/section&gt;

&lt;section&gt;
&lt;h2&gt;Summary&lt;/h2&gt;
    &lt;ul&gt;
        &lt;li&gt;RNA virus evolution can be observed directly&lt;/li&gt;
        &lt;li&gt;Rapidly adapting population require new population genetic models&lt;/li&gt;
        &lt;li&gt;Those model can be used to infer fit clades&lt;/li&gt;
        &lt;li&gt;Future influenza population can be anticipated&lt;/li&gt;
        &lt;li&gt;Automated real-time analysis can help fight the spread of disease&lt;/li&gt;
    &lt;/ul&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;HIV acknowledgments&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:10%; width:35%"&gt;
        &lt;div style="display:inline"&gt;
            &lt;img src="/images/team_pics/fabio_zanini.png" height=160px&gt;
            &lt;img src="/images/team_pics/jan_albert.png" height=160px&gt;
            &lt;img src="/images/team_pics/johanna_brodin.png" height=160px&gt;
            &lt;img src="/images/team_pics/christa_lanz.png" height=160px&gt;
            &lt;img src="/images/team_pics/goran_bratt.png" height=160px&gt;
            &lt;img src="/images/team_pics/lina_thebo.png" height=160px&gt;
            &lt;img src="/images/team_pics/vadim_puller.png" height=160px&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:45%; width:30%"&gt;
    &lt;small&gt;
    &lt;ul&gt;
        &lt;li&gt;Fabio Zanini&lt;/li&gt;
        &lt;li&gt;Jan Albert&lt;/li&gt;
        &lt;li&gt;Johanna Brodin&lt;/li&gt;
        &lt;li&gt;Christa Lanz&lt;/li&gt;
        &lt;li&gt;Göran Bratt&lt;/li&gt;
        &lt;li&gt;Lina Thebo&lt;/li&gt;
        &lt;li&gt;Vadim Puller&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:60%; width:40%"&gt;
    &lt;img class="plain" src="talk_images/max-planck-logo.png" height=120px style="margin-right: 10px"&gt;
    &lt;img class="plain" src="talk_images/erc-logo.jpg" height=120px style="margin-left: 10px"&gt;
    &lt;img class="plain" src="talk_images/unibas_logo.png" height=80px style="margin-right: 10px"&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;Influenza and Theory acknowledgments&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:10%; width:30%"&gt;
        &lt;div style="display:inline"&gt;
            &lt;img src="/images/team_pics/boris_shraiman.png" height=180px&gt;
            &lt;img src="/images/team_pics/colin_russell.png" height=180px&gt;
            &lt;img src="/images/team_pics/trevor_bedford.png" height=180px&gt;
            &lt;img src="/images/team_pics/oskar_hallatscheck.png" height=180px&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:45%; width:30%"&gt;
    &lt;small&gt;
    &lt;ul&gt;
        &lt;li&gt;Boris Shraiman&lt;/li&gt;
        &lt;li&gt;Colin Russell&lt;/li&gt;
        &lt;li&gt;Trevor Bedford&lt;/li&gt;
        &lt;li&gt;Oskar Hallatschek&lt;/li&gt;
    &lt;/ul&gt;&lt;/small&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:60%; width:40%"&gt;
    &lt;img class="plain" src="talk_images/max-planck-logo.png" height=120px style="margin-right: 10px"&gt;
    &lt;img class="plain" src="talk_images/erc-logo.jpg" height=120px style="margin-left: 10px"&gt;
    &lt;img class="plain" src="talk_images/unibas_logo.png" height=80px style="margin-right: 10px"&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
    &lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/rect&gt;&lt;/svg&gt;
    &lt;h3 class="slidetitle"&gt;SARS-CoV-2 acknowledgements&lt;/h3&gt;
    &lt;div style="position:absolute; top:20%; left:10%; width:30%"&gt;
        &lt;div style="display:inline"&gt;
            &lt;img src="/images/team_pics/emma_hodcroft.jpg" class="plain" height=250px&gt;
            &lt;img src="https://esmycobacteriology.eu/Content/image/ESM/Inakiweb(1).jpg" class="plain" height=250px&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; top:20%; left:45%; width:50%"&gt;
    &lt;font size=5&gt;
    &lt;ul&gt;
        &lt;li&gt;Emma Hodcroft (now in Bern)&lt;/li&gt;
        &lt;li&gt;Moira Zuber (Basel)&lt;/li&gt;
        &lt;li&gt;Iñaki Comas and Fernando Gonzalez-Candelas, Valencia&lt;/li&gt;
        &lt;li&gt;Martina Reichmuth and Christian Althaus (Bern)&lt;/li&gt;
        &lt;li&gt;Tanja Stadler, Sarah Nadeau, Tim Vaughan at ETH&lt;/li&gt;
        &lt;li&gt;Alberto Hernando and David Matteo at Kido Dynamics&lt;/li&gt;
        &lt;li&gt;Jesse Bloom, Katherine Crawford at Fred Hutch&lt;/li&gt;
        &lt;li&gt;David Veesler, Alex Walls, Davide Corti, John Bowen at UW&lt;/li&gt;
    &lt;/ul&gt;&lt;/font&gt;
    &lt;/div&gt;
    &lt;div style="position:absolute; bottom:10%; left:60%; width:40%"&gt;
    &lt;img class="plain" src="talk_images/unibas_logo.png" height=80px style="margin-right: 10px"&gt;
    &lt;/div&gt;
&lt;/section&gt;

&lt;section class="fullslide"&gt;
&lt;svg width="1600px" height="900px"&gt;&lt;rect width="1600" height="900" stroke="#CCC" stroke-width=1 fill=none&gt;&lt;/svg&gt;
&lt;h3 class="slidetitle"&gt;Acknowledgments&lt;/h3&gt;
&lt;div  style="position: absolute;top:20%; left:10%; width: 80%; text-align:left"&gt;
  &lt;h4&gt;Trevor Bedford and his lab -- terrific collaboration since 2014&lt;/h4&gt;
  &lt;img src="/talk_images/nextstrain_people.png" width="1300px"&gt;
  &lt;h4&gt;especially James Hadfield, Emma Hodcroft, Ivan Aksamentov, Moira Zuber, John Huddleston, and Tom Sibley&lt;/h4&gt;
&lt;/div&gt;
&lt;div style="position: absolute;bottom:10%; left:10%; width: 80%; text-align:left"&gt;
  &lt;h4&gt;Data we analyze are contributed by scientists from all over the world&lt;/h4&gt;
  &lt;h4&gt;Data are shared and curated by GISAID&lt;h4&gt;
  &lt;img src="/talk_images/GISAID_logo.png" class="plain" width="200px"&gt;
&lt;/div&gt;
&lt;/section&gt;</content><category term="teaching"/></entry><entry><title>Impact of cross-border-associated cases on the SARS-CoV-2 epidemic in Switzerland during summer 2020 and 2021</title><link href="/reichmuth_impact_2022.html" rel="alternate"/><published>2022-11-25T00:00:00+01:00</published><updated>2022-11-25T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2022-11-25:/reichmuth_impact_2022.html</id><summary type="html">&lt;p&gt;During the summers of 2020 and 2021, the number of confirmed cases of severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) infections in Switzerland remained at relatively low levels, but grew steadily over time. It remains unclear to what extent epidemic growth during these periods was a result of the relaxation …&lt;/p&gt;</summary><content type="html">&lt;p&gt;During the summers of 2020 and 2021, the number of confirmed cases of severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) infections in Switzerland remained at relatively low levels, but grew steadily over time. It remains unclear to what extent epidemic growth during these periods was a result of the relaxation of local control measures or increased traveling and subsequent importation of cases. A better understanding of the role of cross-border-associated cases (imports) on the local epidemic dynamics will help to inform future surveillance strategies. We analyzed routine surveillance data of confirmed cases of SARS-CoV-2 in Switzerland from 1 June to 30 September 2020 and 2021. We used a stochastic branching process model that accounts for superspreading of SARS-CoV-2 to simulate epidemic trajectories in absence and in presence of imports during summer 2020 and 2021. The Swiss Federal Office of Public Health reported 22,919 and 145,840 confirmed cases of SARS-CoV-2 from 1 June to 30 September 2020 and 2021, respectively. Among cases with known place of exposure, 27\% (3,276 of 12,088) and 25\% (1,110 of 4,368) reported an exposure abroad in 2020 and 2021, respectively. Without considering the impact of imported cases, the steady growth of confirmed cases during summer periods would be consistent with a value of Re that is significantly above the critical threshold of 1. In contrast, we estimated Re at 0.84 (95\% credible interval, CrI: 0.78–0.90) in 2020 and 0.82 (95\% CrI: 0.74–0.90) in 2021 when imported cases were taken into account, indicating that the local Re was below the critical threshold of 1 during summer. In Switzerland, cross-border-associated SARS-CoV-2 cases had a considerable impact on the local transmission dynamics and can explain the steady growth of the epidemic during the summers of 2020 and 2021.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Estimation and worldwide monitoring of the effective reproductive number of SARS-CoV-2</title><link href="/huisman_estimation_2022.html" rel="alternate"/><published>2022-11-20T00:00:00+01:00</published><updated>2022-11-20T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2022-11-20:/huisman_estimation_2022.html</id><summary type="html">&lt;p&gt;The effective reproductive number Re is a key indicator of the growth of an epidemic. Since the start of the SARS-CoV-2 pandemic, many methods and online dashboards have sprung up to monitor this number through time. However, these methods are not always thoroughly tested, correctly placed in time, or are …&lt;/p&gt;</summary><content type="html">&lt;p&gt;The effective reproductive number Re is a key indicator of the growth of an epidemic. Since the start of the SARS-CoV-2 pandemic, many methods and online dashboards have sprung up to monitor this number through time. However, these methods are not always thoroughly tested, correctly placed in time, or are overly confident during high incidence periods. Here, we present a method for timely estimation of Re, applied to COVID-19 epidemic data from 170 countries. We thoroughly evaluate the method on simulated data, and present an intuitive web interface for interactive data exploration. We show that, in early 2020, in the majority of countries the estimated Re dropped below 1 only after the introduction of major non-pharmaceutical interventions. For Europe the implementation of non-pharmaceutical interventions was broadly associated with reductions in the estimated Re. Globally though, relaxing non-pharmaceutical interventions had more varied effects on subsequent Re estimates. Our framework is useful to inform governments and the general public on the status of epidemics in their country, and is used as the official source of Re estimates for SARS-CoV-2 in Switzerland. It further allows detailed comparison between countries and in relation to covariates such as implemented public health policies, mobility, behaviour, or weather data.&lt;/p&gt;</content><category term="publication"/></entry><entry><title>Swiss public health measures associated with reduced SARS-CoV-2 transmission using genome data</title><link href="/nadeau_swiss_2022.html" rel="alternate"/><published>2022-11-08T00:00:00+01:00</published><updated>2022-11-08T00:00:00+01:00</updated><author><name>Richard Neher</name></author><id>tag:None,2022-11-08:/nadeau_swiss_2022.html</id><summary type="html">&lt;p&gt;Genome sequences from evolving infectious pathogens allow quantification of case introductions and local transmission dynamics. We sequenced 11,357 severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) genomes from Switzerland in 2020 - the sixth largest effort globally. Using a representative subset of these data, we estimated viral introductions to Switzerland and …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Genome sequences from evolving infectious pathogens allow quantification of case introductions and local transmission dynamics. We sequenced 11,357 severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) genomes from Switzerland in 2020 - the sixth largest effort globally. Using a representative subset of these data, we estimated viral introductions to Switzerland and their persistence over the course of 2020. We contrasted these estimates with simple null models representing the absence of certain public health measures. We show that Switzerland’s border closures de-coupled case introductions from incidence in neighboring countries. Under a simple model, we estimate an 86–98\% reduction in introductions during Switzerland’s strictest border closures. Furthermore, the Swiss 2020 partial lockdown roughly halved the time for sampled introductions to die out. Last, we quantified local transmission dynamics once introductions into Switzerland occurred, using a phylodynamic model. We found that transmission slowed 35–63\% upon outbreak detection in summer 2020, but not in fall. This finding may indicate successful contact tracing over summer before overburdening in fall. The study highlights the added value of genome sequencing data for understanding transmission dynamics.&lt;/p&gt;</content><category term="publication"/></entry></feed>