Skip to main content

melizalab-tools

ProjectStatus Version BuildStatus License PythonVersions

A collection of python code and scripts used by the Meliza Lab.

To install: pipx install melizalab-tools

modules

  • dlab.pprox: functions for working with pprox objects, a data format for storing multi-trial point process data (e.g. spike times evoked by stimulus presentation).

  • dlab.neurobank: some convenient wrappers for interacting with a neurobank repository and archives.

  • dlab.signal: signal processing functions

console scripts

  • group-kilo-spikes: sort spike times output from kilosort and phy2 into pprox files (stimtrial format), optionally recording pulses on auxiliary channels such as optogenetic stimulation (--aux). For recordings without a sync track, --audio-sync CHANNEL finds the stimulus onsets on a copy of the audio by cross-correlation (python -m dlab.audio_sync does this on its own, for checking a recording). If only part of the recording was sorted, --sort-start and --sort-stop give the part. Where kilosort’s output for it starts is found by checking it against the recording’s neural channels, to the sample, and the output is timed from the recording’s start. Stimuli presented under other names than they were deposited under are mapped with --alt-stim-names. The outputs record the sort, the sorter’s version (read from kilosort 4’s log, or given with --sorter), and how many of each unit’s spikes were dropped and why.

  • audit-kilo-spikes: check the group-kilo-spikes output for one recording against its waveform files, the stimulus messages in the ARF file, and each other, and write a JSON report. Changes nothing.

  • find-kilo-units: find the units of recordings in the registry and write a control file for running audit-kilo-spikes in batches.

  • collect-kilo-audit: summarize the audit-kilo-spikes reports.

  • regenerate-pprox: rebuild missing pprox files from their waveform files.

  • get-songs: extract segments from arf files, rescale, resample, save into wave files, and optionally deposit back into neurobank. Usually the first step in generating a stimulus set, keeps a nice provenance trail.

See docs/audit.md for how to run the audit and what its findings mean.

other stuff

Metadata

Release files for melizalab-tools 2026.10.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for melizalab-tools 2026.10.20
File Size Uploaded Provenance Actions
melizalab_tools-2026.10.20.tar.gz 3.2 MB With provenance Details for melizalab_tools-2026.10.20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for melizalab-tools 2026.10.20
File Interpreter ABI Platform Actions
melizalab_tools-2026.10.20-py3-none-any.whl Python 3 none any Details for melizalab_tools-2026.10.20-py3-none-any.whl

Total release size: 3.3 MB

Release files / melizalab_tools-2026.10.20.tar.gz

Download URL melizalab_tools-2026.10.20.tar.gz
Size 3.2 MB
Tags Source
SHA-256 checksum
How to use checksums
06389258444c9b3d3141a103804fcd78a326739b14e3b9373bcd7fc133f3fd2e
BLAKE2b-256 checksum
How to use checksums
ed249e894fe1bc9d79254839d1ac2b8ed86a8be52ad8cde6611174ba2a13aa10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / melizalab_tools-2026.10.20-py3-none-any.whl

Download URL melizalab_tools-2026.10.20-py3-none-any.whl
Size 87.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecf2e9131dcac63e8522c723ca121d838683a28a05f00f2b21ba7d4d85faf35e
BLAKE2b-256 checksum
How to use checksums
570b41fac59e328937101af94c434229b3f64d9b74ae2598ab7530f066465a66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for melizalab-tools 2026.10.20

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for melizalab_tools-2026.10.20.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2026.10.20 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page