Git Product home page Git Product logo

flycaiman's Introduction

FlyCaImAn - Fly Calcium Imaging Analysis Pipeline

Matlab code for analysis of calcium imaging data from the Drosophila brain, including motion correction, ROI segmentation, and detection of stimulus-modulated ROIs.

Organization of data

Pipeline

To process either 3DxT or 2DxT datasets:

    1. Convert tiffs to mat files (generate image data variable 'Data', and image metadata variable 'iDat').
    1. Pull extra information from metadata files ('.bin', '_vDat.mat', or '.mat' (LEDcontroler)).
    1. Do motion correction (using NoRMCorre).
    1. Do spatial and/or temporal resampling
    • this includes re-slicing for volumetric datasets and aligment relative to stimuli delivery.
    • generates main metadata variable used for ROI segmentation (wDat).
    1. select brain pixels (generate a binary mask).
    1. i) format stacks for ROI segmentation.
    1. ii) stitch (along z axis) and format stacks for ROI segmentation.
    1. ROI segmentation (in progress)
    1. Detect stimulus-modulated ROIs (in progress)

To register image segments to local whole brain and to in vivo atlas

  • (in progress)

Dependencies

For processing of imaging data this pipeline requires the following packages:

For processing of behavior videos with fictrac this pipeline requires the following packages:

  • Fictrac, see link for installation & dependencies (for windows see fic-trac-win).
  • generate calibration-transform.dat, and update that file in /toolbox/fictrac_offline/fictrac_settings

For saving figures install:

For stitching Z-stacks:

For interfacing with a cluster:

  • download pu_cluster_interface (it requires the user defined temporary folder to save job parameters)

Usage

To use this package

  1. Copy and edit fiji_fullpathedit.m (see that file for details), and save as fiji_fullpath.m.

For examples see all the demos: FlyCaImAn_demo.m FlyCaImAn_behavior_only_demo.m FlyCaImAn_behavior_plus_stimuli_demo.m FlyCaImAn_behavior_plus_stimuli_plus_imaging_demo.m FlyCaImAn_imaging_only_demo.m FlyCaImAn_Zstack_demo.m

Acknowledgements

Special thanks to:

Citation

If you use this code please cite the following paper: Pacheco, D.A., Thiberge, S.Y., Pnevmatikakis, E. et al. Auditory activity is diverse and widespread throughout the central brain of Drosophila. Nat Neurosci (2020). https://doi.org/10.1038/s41593-020-00743-y

flycaiman's People

Contributors

dpacheco0921 avatar mmurthy avatar

Watchers

 avatar  avatar

Forkers

murthylab

flycaiman's Issues

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.