No project description provided
Project description
Binarize2PCalcium
=================
Binarize2PCalcium is a Python package for processing calcium imaging data.
Features
--------
- Support for data preprocessing.
- Visualization tools for calcium imaging data.
Installation
------------
You can install Binarize2PCalcium using pip:
.. code-block:: bash
pip install binarize2pcalcium
Usage
-----
To use Binarize2PCalcium, import the package in your Python code:
.. code-block:: python
from binarize2pcalcium import binarize2pcalcium as binca
animal_id = 'DON-011733'
session = '20230203'
c = binca.Calcium(data_dir, animal_id)
c.session = session
c.session_name = session
c.data_type = '2p'
c.remove_bad_cells = False
c.verbose = False # outputs additional information during processing
c.recompute_binarization = True # recomputes binarization and other processing steps; False: loads from previous saved locations
# set flags to save matlab and python data
c.save_python = True # save output as .npz file
c.save_matlab = False # save output as .mat file
# manual thresholds for spike detection
c.dff_min = 0.05 # min %DFF for [ca] burst to be considered a spike (default 5%) overwrites percentile threshold parameter
c.percentile_threshold = 0.9999 # this is pretty fixed, we don't change it; we want [ca] bursts that are well outside the "physics-caused" noise
c.maximum_std_of_signal = 0.08 # if std of signal is greater than this, then we have a noisy signal and we don't want to binarize it
# - this is a very important flag! come see me if you don't understand it
#
c.binarize_data()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
binarize2pcalcium-0.1.42.tar.gz
(32.7 kB
view details)
Built Distribution
File details
Details for the file binarize2pcalcium-0.1.42.tar.gz
.
File metadata
- Download URL: binarize2pcalcium-0.1.42.tar.gz
- Upload date:
- Size: 32.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01a7dcdfc7b91aa0c45ec38d6cd428cbba7690105939aea4efcc6ef7161455db |
|
MD5 | 17175dcc3ba5982b6f204212cf008fc9 |
|
BLAKE2b-256 | 172a735a17e3e3f199f7232f7a2acbb6be689005c8baef313ef9b7ec2b54350f |
File details
Details for the file binarize2pcalcium-0.1.42-py3-none-any.whl
.
File metadata
- Download URL: binarize2pcalcium-0.1.42-py3-none-any.whl
- Upload date:
- Size: 32.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aaffc81f57be8511e1602c23654aacf0a9321bf35b49fbb15381a204b59918d |
|
MD5 | 935197f8269c8c923c92bbf5024de96c |
|
BLAKE2b-256 | 0699a08d22f075425b385fe6d370e48d584439fb99bd0d171ba9625764990006 |