{ "cells": [ { "cell_type": "markdown", "id": "90a6bd76-386e-484b-8a18-27a0fec48ca6", "metadata": {}, "source": [ "# Fit model to data\n", "We will fit a `Polyclonal` model to the RBD antibody mix we simulated.\n", "\n", "First, we read in that simulated data.\n", "Recall that we simulated both \"exact\" and \"noisy\" data, with several average per-library mutations rates, and at six different concentrations.\n", "Here we analyze the noisy data for the library with an average of 2 mutations per gene, measured at three different concentrations, as this represents a fairly realistic representation of a real experiment:" ] }, { "cell_type": "code", "execution_count": 1, "id": "18a5882b-3a28-4fdb-948c-2ab8dc9b82e7", "metadata": { "execution": { "iopub.execute_input": "2021-11-19T22:44:58.162010Z", "iopub.status.busy": "2021-11-19T22:44:58.161700Z", "iopub.status.idle": "2021-11-19T22:44:59.876110Z", "shell.execute_reply": "2021-11-19T22:44:59.875264Z", "shell.execute_reply.started": "2021-11-19T22:44:58.161877Z" }, "tags": [] }, "outputs": [ { "data": { "text/html": [ "
| \n", " | library | \n", "aa_substitutions | \n", "concentration | \n", "prob_escape | \n", "IC90 | \n", "
|---|---|---|---|---|---|
| 0 | \n", "avg2muts | \n", "\n", " | 0.25 | \n", "0.050440 | \n", "0.1128 | \n", "
| 1 | \n", "avg2muts | \n", "\n", " | 0.25 | \n", "0.143100 | \n", "0.1128 | \n", "
| 2 | \n", "avg2muts | \n", "\n", " | 0.25 | \n", "0.054520 | \n", "0.1128 | \n", "
| 3 | \n", "avg2muts | \n", "\n", " | 0.25 | \n", "0.084730 | \n", "0.1128 | \n", "
| 4 | \n", "avg2muts | \n", "\n", " | 0.25 | \n", "0.041740 | \n", "0.1128 | \n", "
| ... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
| 89995 | \n", "avg2muts | \n", "Y396T Y473L | \n", "4.00 | \n", "0.000000 | \n", "0.5832 | \n", "
| 89996 | \n", "avg2muts | \n", "Y421W S359K | \n", "4.00 | \n", "0.044600 | \n", "0.5777 | \n", "
| 89997 | \n", "avg2muts | \n", "Y449L V503T L335M | \n", "4.00 | \n", "0.000000 | \n", "1.0520 | \n", "
| 89998 | \n", "avg2muts | \n", "Y473E L518F D427L | \n", "4.00 | \n", "0.002918 | \n", "1.1600 | \n", "
| 89999 | \n", "avg2muts | \n", "Y505N H519T | \n", "4.00 | \n", "0.000000 | \n", "0.3505 | \n", "
90000 rows × 5 columns
\n", "