Skip to main content

Quality metric from spike trains

Project description

slidingRefractory

Code to perform a new test of whether neurons have contaminated refractory periods, with a sliding window

Python

Installation

Install using pip:

pip install slidingRP

Install using sources in development mode. First clone the repository.

cd slidingRefractory
pip install -e .

Minimal working example

from pathlib import Path
import numpy as np
import pandas as pd

from slidingRP import metrics

TEST_DATA_PATH = Path(slidingRP.__file__).parent.parent.joinpath("test-data", "integration")

params = {'sampleRate': 30000, 'binSizeCorr': 1 / 30000}
spikes = pd.read_parquet(TEST_DATA_PATH.joinpath('spikes.pqt'))
table = slidingRP.slidingRP_all(spikes.times, spikes.clusters, **params)

assert np.allclose(pd.read_parquet(TEST_DATA_PATH.joinpath("rp_table.pqt")), pd.DataFrame(table), equal_nan=True)

Contribute

Run unit tests

 pytest python/test_*

Upload package

rm -fR dist
rm -fR build
python setup.py sdist bdist_wheel
twine upload dist/*

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

slidingRP-1.0.0.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

slidingRP-1.0.0-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file slidingRP-1.0.0.tar.gz.

File metadata

  • Download URL: slidingRP-1.0.0.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for slidingRP-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c85af312283a4f9bbe8cd34171f0ca9607d6cf08aa41ea136bf7f3cd6f4f0cc5
MD5 99b57e754b3809466ae6c4eee0efdd1c
BLAKE2b-256 e44d5dfeaa45ff83b3f8770f214183ebecb80ba5073b0139fb900e559afc9d82

See more details on using hashes here.

Provenance

File details

Details for the file slidingRP-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: slidingRP-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for slidingRP-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36acc9d2d37a390b53ffae0d1165c790f8b223787bcd9f3709b3da8da02ab637
MD5 21e421cfe49b457433accac5f41ca040
BLAKE2b-256 604b4e437d8ac6b8dc2a09730d81da0566ba6b073f29da379ccbdad32ccfcc8d

See more details on using hashes here.

Provenance

Supported by

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