Skip to main content

Tools for analyzing 2p (calcium) imaging data collected in flies (or other insects).

Project description

fly2p

Tools for analyzing imaging data collected with Vidrio Scanimage software or 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).

Installation

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 fly2p python=3.8
  4. Activate environment:
    conda activate fly2p
  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=fly2p

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

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

fly2p-0.2.1.tar.gz (13.0 kB view hashes)

Uploaded Source

Built Distribution

fly2p-0.2.1-py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 3

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