Molecular motors are constructs that employ intermolecular interactions to propel themselves. We are developing an artificial molecular motor, the Lawnmower (LM), based on a micron-sized bead coated with the trypsin enzyme. Trypsin molecules cleave a peptide track enabling the LM movement along the track. Anomaluos diffusion coefficent characterizes the motion, and in this notebook we get the coefficient from calculating time averaged mean squared displacement (TA MSD) of a motor.
As some motors in our experiments aggregate or get stuck in their tracks, it is important to choose trajectories for analysis based on how they look. The notebook LM_tracks_010420
allows for choosing trajectories of motors from a .csv file and analyzing them. It calculates TA MSD for the chosen motors.
Note that TA MSDs calculation is time-intense – for a quicker result choose not more than 2 trajectories when running the notebook. The data is fitted using linear regression, and anomalous diffusion coefficient is calculated.
Notebook outputs a .csv file 'TAMSD' with TA MSDs values and an image 'TAMSD&alpha' of plots.
Package | Used for |
---|---|
numpy | operations with arrays |
pandas | operations with dataframes |
matplotlib | plots |
math | maths operations |
scipy | linear regression fit |
os | switching directories |
Before running the notebook, make sure the sample trajectories file Vertical_in_channels_1000s&longer_140220.csv
and environment file environment.yml
are in the working directory of the notebook. To install and activate the environment, run in the prompt
:
conda env create -f environment.yml
activate LMtracking