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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file fly2p-0.2.1.tar.gz.

File metadata

  • Download URL: fly2p-0.2.1.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/21.6.0

File hashes

Hashes for fly2p-0.2.1.tar.gz
Algorithm Hash digest
SHA256 bb5c0576e5c9d0bb85e431d998d5b0c4a184bd8b483c0a381cda426a6ae332af
MD5 eae0259653df3a41f8d5890dc7d6de71
BLAKE2b-256 abd8e51938b36c6cc862dbbc13ed9e0317b9afe318578a891c889aa36378d0c7

See more details on using hashes here.

File details

Details for the file fly2p-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: fly2p-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/21.6.0

File hashes

Hashes for fly2p-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7279527483ec20d136c43b8b96fb9294dc169c428296128be137ca4956e601ce
MD5 07154dfcc96d3bb555f91941fc2e2e39
BLAKE2b-256 1e459e4ed36a558480b6b53ac7dd133bf7218e798a5402be2faaad7598c6f10e

See more details on using hashes here.

Supported by

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