Skip to content

small package with utility functions for analyzing (fly) calcium imaging data

Notifications You must be signed in to change notification settings

TrendingTechnology/fly2p

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fly2p

Tools for analyzing two-photon (2p) imaging data collected with Vidrio Scanimage software and micromanger. Loading scanimage data relies on scanimageReader, which can be installed via 'pip install scanimage-tiff-reader'. Other dependencies are tracked using poetry.

Organization:

The fly2p package contains the following submodules:

  • preproc: Some file-format specific functions that extract metadata and load the imaging data. imgPreproc.py defines a data object to hold metadata and imaging data as well as basic proporcessing functions.
  • viz: A collection of utility functions related to plotting flourescence traces and images.

In addition, the scripts folder contains notebooks that illustrate how to use functions in this module based on example files in sample (sample files are not currently pushed to repo).

Install:

I recommend using poetry to setup a custom conda environment. A helpful introduction can be found here.

  1. Clone repo, navigate into folder
  2. If you don't already have poetry, install poetry. You may need to close command window and open a new one.
  3. Create conda environment:
    conda create --name unityvr python=3.8
  4. Activate environment:
    conda activate unityvr
  5. Make sure you are in the top folder of the cloned repo, then install dependencies:
    poetry install
  6. Setup the new environment as an ipython kernel:
    conda install -c anaconda ipykernel
    then
    python -m ipykernel install --user --name=unityvr

Now you should be able to run the example notebooks in the scripts folder without problems.

About

small package with utility functions for analyzing (fly) calcium imaging data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.8%
  • Python 0.2%