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
binca-0.1.41.tar.gz
(32.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
binca-0.1.41-py3-none-any.whl
(32.6 kB
view details)
File details
Details for the file binca-0.1.41.tar.gz.
File metadata
- Download URL: binca-0.1.41.tar.gz
- Upload date:
- Size: 32.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b11191fc2c75df66d81b57120139d812fda702bdb37458c602da49ec9010db6d
|
|
| MD5 |
7754b39e96195c2ac3c65f874a612a90
|
|
| BLAKE2b-256 |
80ab27ce23032a80b313630258dc5db5e7afec1d968e01797ba13105fa0d9bed
|
File details
Details for the file binca-0.1.41-py3-none-any.whl.
File metadata
- Download URL: binca-0.1.41-py3-none-any.whl
- Upload date:
- Size: 32.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cebd8315bbbf1c8f5dc70727bd49576e1430f35706cf751aab7a57f6b4ffca77
|
|
| MD5 |
64d70b404b79bfd1bfa93825aef83508
|
|
| BLAKE2b-256 |
1c4082b2afc51727ab968713f3ffd423e56e87a829f15f8327732ab361f974db
|