Metadata-Version: 2.1
Name: kyutils
Version: 0.1.56
Summary: kyu's utils
License: MIT
Author: Kyu Hyun Lee
Author-email: kyuhyun9056@gmail.com
Requires-Python: >=3.10,<3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Provides-Extra: figurl
Provides-Extra: nwb
Requires-Dist: matplotlib (>=3.7.2,<4.0.0)
Requires-Dist: numpy (>=1.26.0,<2.0.0)
Requires-Dist: probeinterface (>=0.2.17,<0.3.0)
Requires-Dist: scikit-learn (>=1.0.1,<2.0.0)
Requires-Dist: scipy (>=1.7.1,<2.0.0)
Requires-Dist: spikeinterface (>=0.98.2,<0.99.0)
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
- 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`.
