Giter Club home page Giter Club logo

tda-for-worm-behavior's Introduction

tda-for-worm-behavior

By Ashleigh Thomas, Alex Elchesen, Iryna Hartsock with contributions by Peter Bubenik

Analyze videos of C. elegans behavior using persistent homology techniques as outlined in [arxiv | published].

Dependencies

tda-tools by Jose Bouza

Usage

  1. In config.R, set window_length, patch_length, and number of frames nframes as desired. Also include the filepaths for the input data, which is a 100-dimensional time series of angles formatted as a csv (each row is a 100-dimensional vector).

  2. Run compute_diagrams.R. This does the heavy computations and can run for hours depending on parameter choice.

    A file with the computed diagrams will be saved in the computations folder. The path to the computations will be stored in the variable diagram_computation_filepath.

  3. Run chunks of analyze_diagrams.Rmd, using the output file from compute_diagrams.R as input. There are a few processing chunks and after that, each chunk gives a different aspect of analysis.

Getting and Preprocessing Data

  1. Get the original video data, which was collected by Kathleen Bates.

  2. Download the skeleton extract code at figshare. The code comes from this paper.

  3. Use the above code to extract 100-dimensional angle data for the skeletons of each sample into csv files.

  4. Add the filepaths to the csv files to a config file. Now you can run the tda-for-worm-behavior code on that data.

License

Apache License 2.0

tda-for-worm-behavior's People

Contributors

althomas avatar

Stargazers

Iryna Hartsock avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.