ndx-whisk Extension for NWB
ndx-whisk is an NWB extension to store whisker tracking measurements. It is intended to convert .whiskers and .measurements files generated by whisk (Janelia Whisker Tracker), or saved to hdf5 with WhiskiWrap, but can be used with other whisker tracking methods.
Installation
pip install ndx-whisk
Usage
See test script test_whiskermeasurement.py in src/pynwb/tests.
from pynwb import NWBHDF5IO, NWBFile
from ndx_whisk import WhiskerMeasurementTable
import numpy as np
# Load your data
whisker_data = read_whisker_measurement_table('tracked_data.whiskers')
# Create a WhiskerMeasurementTable
whisker_meas = WhiskerMeasurementTable(
name='name',
description='description'
)
# Add data to the WhiskerMeasurementTable
for i in range(np.shape(whisker_data['frame_id'])[0]):
whisker_meas.add_row({k: whisker_data[k][i] for k in whisker_data.keys()})
# Set up a NWB file
nwbfile = set_up_nwbfile()
path = 'tracked_data.nwb'
# Add a ProcessingModule for behavioral data
behavior_module = nwbfile.create_processing_module(
name="behavior", description="Processed behavioral data"
)
# Add the WhiskerMeasurementTable
nwbfile.processing['behavior'].add(whisker_meas)
# Save to NWB file
with NWBHDF5IO(path, mode='w') as io:
io.write(nwbfile)
This extension was created using ndx-template.
Metadata
Release files for ndx-whisk 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ndx-whisk-0.1.1.tar.gz | 10.5 MB | Without provenance | Details for ndx-whisk-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ndx_whisk-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for ndx_whisk-0.1.1-py2.py3-none-any.whl |
Total release size: 10.5 MB
Release files / ndx-whisk-0.1.1.tar.gz
| Download URL | ndx-whisk-0.1.1.tar.gz |
|---|---|
| Size | 10.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68bf5c6b2ac7f45de91ee15dfe190bc9098d852d049c9e11ee0071b06689ee2c
|
|
BLAKE2b-256 checksum How to use checksums |
b035c116b5030c9e40df0f0aceb7aa84b2bd1512b7cec060e2ae17190fb9baf0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / ndx_whisk-0.1.1-py2.py3-none-any.whl
| Download URL | ndx_whisk-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f0eeadc818671076e5d63cddc5ab97a09fc730d4b71f231cc172fd3eac7d6343
|
|
BLAKE2b-256 checksum How to use checksums |
4993ff267a622459373433c58b6242b59d105725332067bdfad007a729d0ede3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for ndx-whisk 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.