ndx-turner-metadata Extension for NWB
The NWB extension for storing Turner lab specific metadata.
Extends pynwb.file.LabMetaData to store the MPTP treatment status of the subject.
Installation
pip install ndx_turner_metadata
Usage
from uuid import uuid4
from datetime import datetime
from dateutil.tz import tzlocal
from pynwb import NWBFile, NWBHDF5IO
from ndx_turner_metadata import TurnerLabMetaData
# Create NWBFile
nwbfile = NWBFile(
session_description="session_description",
identifier=str(uuid4()),
session_start_time=datetime(1970, 1, 1, tzinfo=tzlocal()),
)
# Create LabMetaData
lab_meta_data = TurnerLabMetaData(
name="MPTPMetaData",
MPTP_status="pre-MPTP",
)
# Add to NWBFile
nwbfile.add_lab_meta_data(lab_meta_data=lab_meta_data)
# Write LabMetaData to NWB file
nwbfile_path = "metadata.nwb"
with NWBHDF5IO(nwbfile_path, mode="w") as io:
io.write(nwbfile)
# Check LabMetaData was added to the NWB file
with NWBHDF5IO(nwbfile_path, mode="r", load_namespaces=True) as io:
read_nwbfile = io.read()
read_nwbfile_lab_metadata = read_nwbfile.lab_meta_data["MPTPMetaData"]
This extension was created using ndx-template.
Metadata
Release files for ndx-turner-metadata 0.1.0
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_turner_metadata-0.1.0.tar.gz | 12.2 kB | Without provenance | Details for ndx_turner_metadata-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ndx_turner_metadata-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for ndx_turner_metadata-0.1.0-py2.py3-none-any.whl |
Total release size: 16.2 kB
Release files / ndx_turner_metadata-0.1.0.tar.gz
| Download URL | ndx_turner_metadata-0.1.0.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
913bc0a3e928040654cf6d542bdfd68540bf2fd719b3a201003735b27fbd6d6b
|
|
BLAKE2b-256 checksum How to use checksums |
45300f572f84e1aee25c3e2571ffe6d09aed34ce899ea6736794ee14c551c2d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Release files / ndx_turner_metadata-0.1.0-py2.py3-none-any.whl
| Download URL | ndx_turner_metadata-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
19091e7f7d96e9f95041d507fbe370941fd9242c1bb47e91074f09d997cfe7b5
|
|
BLAKE2b-256 checksum How to use checksums |
279151309c61365755bd90ba5864eb9c8f0bb28e2894e088085ce6de3a5f9889
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Security for ndx-turner-metadata 0.1.0
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.