Metadata-Version: 2.3
Name: kyutils
Version: 0.1.112
Summary: kyu's utils
License: MIT
Author: Kyu Hyun Lee
Author-email: kyuhyun9056@gmail.com
Requires-Python: >=3.9,<3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Provides-Extra: decoder
Provides-Extra: figurl
Provides-Extra: nwb
Requires-Dist: hdmf (==3.13.0) ; extra == "nwb"
Requires-Dist: kachery_cloud (==0.4.8) ; extra == "figurl"
Requires-Dist: matplotlib (>=3.7.2,<4.0.0)
Requires-Dist: numpy (>=1.26.0,<2.0.0)
Requires-Dist: position_tools (==0.1.0.dev0) ; extra == "decoder"
Requires-Dist: probeinterface (>=0.2.17,<0.3.0)
Requires-Dist: pynwb (==2.6.0) ; extra == "nwb"
Requires-Dist: replay_trajectory_classification (==1.3.15) ; extra == "decoder"
Requires-Dist: ripple_detection (==1.4.0) ; extra == "decoder"
Requires-Dist: scikit-learn (>=1.0.1,<2.0.0)
Requires-Dist: scipy (>=1.7.1,<2.0.0)
Requires-Dist: sortingview (==0.13.2) ; extra == "figurl"
Requires-Dist: spikeinterface (>=0.98.2,<0.99.0)
Requires-Dist: track_linearization (==2.3.1) ; extra == "decoder"
Requires-Dist: trajectory_analysis_tools (==1.1.0) ; extra == "decoder"
Description-Content-Type: text/markdown

# kyutils

kyu's utils

## examples
- behavior
  - given the extracted DIO dat files from a SpikeGadgets `rec` file, plots the time course of the animal's decisions in the W-track task and indicates rewarded trials
  - plots place field
  - figures out the 2d distance by constructing a graph from trajectories
- nwb
  - basic NWB conversion of ephys data
- probe
  - `probeinterface.Probe` objects for the 15um and 20um versions of the Livermore polymer probes
- spikegadgets
  - generates a trodesconf file based on a list of Livermore probe types; e.g. if implanting three Livermore probes (one 15um type and two 20um type) in alternating order, can pass the list `[20, 15, 20]` and will generate a trodesconf file with the contacts arranged geometrically
  - generate a trodesconf file given the number of channels; good for reconfiguring
  - parses the header of a SpikeGadgets `rec` file
- spikesorting
  - plots spike waveform in probe geometry
  - computes standard metrisc for frank lab
  - generates figurl

## installation
`pip install kyutils`

for the version that creates figurls, do `pip install "kyutils[figurl]"` and set up `kachery-cloud`.
