Skip to main content

Automated filament tracker for in-vitro motility actin gliding assays

Project description

FAST v1.0.1: Fast Automated Spud Tracker

Please cite Aksel T, Yu EC, Sutton S, Ruppel KM, Spudich JA. Cell Reports. 2015. Ensemble force changes that result from human cardiac myosin mutations and a small molecule effector.

examples folder containing all example movies can be downloaded from https://goo.gl/87LyDG

© 2020 Tural Aksel

Dependencies

To generate movies of tracking, install avconv package.

On Mac OS, install using brew: brew install libav. On Ubuntu, sudo apt-get install ffmpeg.

Installation

Before you install this package, remove previous installations and make sure to delete any lines with FAST in .bashrc, '.profile or .bash_profile files in your home directory (~).

Installing this package inside python virtual environment is highly encouraged. After installing virtualenv and virtualenvwrapper, create a python2 virtual environnment.

Create a virtual environment with python2.7.

$mkvirtualenv FAST -p python2.7$

Remember to activate the virtualenvironment

$workon FAST

To install the FAST package, type and execcute

$(FAST) pip install FASTrack

For most up to date version of the package, clone or download FAST github repository. Inside the FAST package folder, execute

$(FAST) pip install .

Everytime you need to use FAST, remeber to activate FAST virtual environment typing workon FAST on terminal.

To display fonts properly om Ubuntu, install MS fonts.

$sudo apt-get install ttf-mscorefonts-installer

On Ubuntu, after installing MD fonts, remove font cache file for matplotlib in your home directory.

$rm -f ~/.cache/matplotlib/fontList.cache

After installation don't move the FAST directory to some other location.

Preparation of movie files

  • fast only analyzes movie tif files recorded using micro-manager. For movies, recorded using other software, first save the movie as tiff stacks and convert the stacks to micro-manager output format using stack2tiffs.

    stack2tiffs -d DIRECTORY -f FRAMERATE -s SIZELOWERBOUND
    
  • DIRECTORY is the top directory in which tiff stacks are stored.

  • FRAMERATE is the frame rate of the movies in frame per second (Default: 1). Process movies with different frame rates separately.

  • SIZELOWERBOUND is the lower bound for the size (Mbytes) of the tiff stacks to be converted into individual tiffs (Default: 6). Only tiffstacks bigger in size than SIZELOWERBOUND are processed.

Analysis of movies using FAST

  • Although not necessary, it is recommended to organize the movies to be analyzed in a hierarchical order.

    • LEVEL1 (e.g. date)
      • LEVEL2 (e.g. slide number)
        • LEVEL3 (e.g. experimental condition)
          • LEVEL4 (e.g. replicates)
  • All fast needs is the top directory the movie folders are located at.

    fast -d LEVEL1
    
  • FAST first finds the lowest LEVEL directories that have movie folders under LEVEL1, and analyzes them in order. The lowest level movies (folders) under the same directory are treated as replicates. The results from replicates are combined to determine the average results. Therefore, it is important that the replicates have identical frame rates. Please check example movie files in the examples/unloaded_motility directory.

  • FAST accepts various parameters for comprehensive analysis of filament velocities and for display of results.

    • -n WINDOWSIZE : Number of consecutive frames for velocity averaging (Default:5).
    • -p PATHLENGTH : Minimum length for the tracked filament paths in the analysis (Default:5).
    • -pt TOLERANCE : Percent tolerance parameter to filter fluctuating velocities (Default:None).
    • -cl COLOR: Color of the data points in velocity scatter plot (Default:blue).
    • -fx FUNCTION: Function to be fitted to maximal velocity data. exp for single exponential decay, uyeda for Uyeda equation and none for no curve fitting (Default:none).
    • -px PIXEL: Pixel size in nm (Default:80.65).
    • -ymax YMAX: Maximum velocity in nm/s for the scatter plot (Default:1500).
    • -xmax XMAX: Maximum filament length in nm for the scatter plot (Default:10000).
    • -mv MV: Maximum allowed distance in nm between adjacent frames for a filament (Default:2016.25)
  • To estimate maximum velocities TOP5% and PLATEAU, I recommend the following parameter set.

    • fast -n 5 -p 10 -pt 20 -d LEVEL1
  • For loaded motility experiments, I recommend the following parameter set.

    • fast -n 5 -p 10 -d LEVEL1
  • Analysis results are stored in outputs folder in the path FAST is executed. Analysis results with different parameter sets are stored in different folders. For example, the results for LEVEL1 analyzed using the parameters -n 5 -p 10 and -pt 20 are stored in outputs/LEVEL1_n_5_p_10_pt_20. Combined results from replicates at the lowest level (LEVEL4) are stored in a subfolder called combined.

  • To analyze the movies with a new parameter set, use -r flag for speedy analysis.

    • fast -r -n 10 -p 10 -pt 20 -d LEVEL1
  • To force re-analyze the movies by processing through individual images, use -f flag.

    • fast -f -n 10 -p 10 -pt 20 -d LEVEL1
  • To make tracking movies, use -m flag.

    • fast -m -n 10 -p 10 -pt 20 -d LEVEL1
  • To abort execution, press CTRL+C on terminal.

  • Please check the examples in examples/unloaded_motility to get familiar with stack2tiffs and fast.

Result descriptions

  • fast plots velocities as png files and prints velocity data as text files. Complete list of unfiltered velocity points are saved with the extension *_full_length_velocity.txt. Maximum path velocities, which are colored in the scatter plot, are saved with the extension *_max_length_velocity.txt. The plots are saved with the extension *_length_velocity.png. Combined results are saved in combined folder in outputs directory.

  • First column in *_length_velocity.txt files is the filament length in nm. Second column is the mean velocity over the n frame window (see above -n WINDOWSIZE). Third column is the standard deviation of velocities within n frame window. Fourth column is the length of the track from which the velocity is measured.

  • For description of *_length_velocity.png and the algorithms of fast, see Aksel et al. 2015

  • *_paths_2D.png shows the tracks for each filament ad the number is the average velocity for each filament track in nm/s.

  • Tracking movies are saved as *_filament_tracks.avi if -m is used in fast execution. Please remember that movies will be generated, if only the packages required for movie generation are installed.

  • In addition, mean and standard error of mean (SEM) for the velocity parameters are stored in MEAN_values.txt and SEM_values.txt in combined folder.

Loaded in vitro motility analysis

  • FAST is designed for high throughput analysis of loaded in vitro motility movies. For the experimental setup and the details of the loaded motility analysis please read through our paper.
  • To extract the "force" parameter from a set of data collected at different utrophin (or any other actin binding protein) concentrations, I wrote a python script called lima. LIMA stands for Loaded In vitro Motility Analysis.

  • To use lima for loaded motility analysis, user has to name the movie files in a specific format.

  • LEVEL3 (described above) should be minimally named in the following way PROTEINNAME_XnM_utr. X is the utrophin concentration. For example, for a movie recorded at 0.5 nM utrophin for a myosin called alpha, I would name the LEVEL3 folder as alpha_0.5nM_utr. For LEVEL3 and hierarchical organization of the movie folders, see above. For an example set of loaded motility data, check under examples/loaded_motility directory.

  • To run lima, on a set of movies processed by fast, first go to outputs directory where the results for the complete data set are stored. For example, if user is in examples/loaded_motility, enter in terminal cd outputs to change directory to outputs.

  • To perform a loaded motility analysis for a FOLDER in outputs directory, enter in terminal,

    • lima -d FOLDER
  • Analysis results will be stored in FOLDER/combined/lima.

  • For the analysis of an example data set, check examples/loaded_motility.

    • First, analyze the movies:
      • fast -r -d 032714
    • Move to outputs folder:
      • cd outputs
    • Process the only directory in outputs:
      • lima -d 032714__pt_none__n_5__ymax_1500__p_5__fx_none
    • Check the analysis results under
      • 032714__pt_none__n_5__ymax_1500__p_5__fx_none/combined/lima.
  • For different analysis options, enter lima -h.

FAQ

  • For questions and to report bugs, please contact me by turalaksel[at]gmail.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FASTrack-1.0.1.tar.gz (56.1 kB view details)

Uploaded Source

File details

Details for the file FASTrack-1.0.1.tar.gz.

File metadata

  • Download URL: FASTrack-1.0.1.tar.gz
  • Upload date:
  • Size: 56.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.14

File hashes

Hashes for FASTrack-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4b69e4fd2d484b6062f49c95d479ec21bba5a7a8f7a4766c70298ed9e7de2710
MD5 1029b6c0a907247db568617f0421726f
BLAKE2b-256 b850d37d3ec36118ef7521e37519495d208d0802c218d38e3c5b03ddd7ff1c97

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page