{ "cells": [ { "cell_type": "markdown", "id": "0e9a6ccd", "metadata": {}, "source": [ "# Introducing FRET restraints" ] }, { "cell_type": "code", "execution_count": 1, "id": "ea263007", "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "from matplotlib import pyplot as plt\n", "import pandas as pd\n", "import mdtraj as md\n", "import fretraj as ft" ] }, { "cell_type": "code", "execution_count": 2, "id": "b6bd6397", "metadata": {}, "outputs": [], "source": [ "import importlib" ] }, { "cell_type": "markdown", "id": "bedd9c07", "metadata": {}, "source": [ "## Accessible contact volume\n", "\n", "Calculate ACVs for donor and acceptor dye on an **solvated and energy minimized** biomolecule.\n", "> Note: the generated .gro file must first be converted to a .pdb file using `gmx trjconv`" ] }, { "cell_type": "code", "execution_count": 3, "id": "0cdbec73", "metadata": {}, "outputs": [], "source": [ "labels = ft.cloud.labeling_params('gmx/mn_riboswitch_labels.json', verbose=False)" ] }, { "cell_type": "code", "execution_count": 4, "id": "f1af7a93", "metadata": {}, "outputs": [], "source": [ "struct = md.load_pdb('gmx/mn_riboswitch.pdb')\n", "struct_nosolv = struct.remove_solvent()" ] }, { "cell_type": "code", "execution_count": 5, "id": "acfec770", "metadata": {}, "outputs": [], "source": [ "don = ft.cloud.Volume(struct_nosolv, '1-B-U1-O5\\'', labels)\n", "acc = ft.cloud.Volume(struct_nosolv, '1-A-A1-O5\\'', labels)" ] }, { "cell_type": "markdown", "id": "bba17084", "metadata": {}, "source": [ "Compute a FRET trajectory from the ACVs" ] }, { "cell_type": "code", "execution_count": 6, "id": "2d5d1227", "metadata": {}, "outputs": [], "source": [ "fret_traj = ft.cloud.FRET(don, acc, 'A1-U1', labels)" ] }, { "cell_type": "code", "execution_count": 7, "id": "45cfeff6", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | R0 (A) | \n", "<R_DA> (A) | \n", "<E_DA> | \n", "<R_DA_E> (A) | \n", "R_attach (A) | \n", "R_mp (A) | \n", "
---|---|---|---|---|---|---|
value | \n", "54.0 | \n", "96.1 | \n", "0.04 | \n", "91.9 | \n", "86.6 | \n", "94.4 | \n", "
std | \n", "NaN | \n", "10.7 | \n", "0.03 | \n", "13.0 | \n", "NaN | \n", "NaN | \n", "