LabMetaData extension.
Project description
ndx-labmetadata-abf extension for NWB:N
Extension of the lab_meta_data field.
[
Python Installation
pip install git+https://github.com/ben-dichter-consulting/ndx-labmetadata-abf.git
Python Usage
from datetime import datetime
from pynwb import NWBFile, NWBHDF5IO
from ndx_labmetadata_abf import LabMetaData_ext
nwb = NWBFile('session_description', 'identifier', datetime.now().astimezone())
# Creates LabMetaData container
lab_metadata = LabMetaData_ext(
name='LabMetaData',
cell_id='cell_id',
tissue_sample_id='tissue_sample_id',
)
# Add to file
nwb.add_lab_meta_data(lab_metadata)
# Write nwb file
with NWBHDF5IO('test_labmetadata.nwb', 'w') as io:
io.write(nwb)
# Read nwb file and check its content
with NWBHDF5IO('test_labmetadata.nwb', 'r', load_namespaces=True) as io:
nwb = io.read()
print(nwb.lab_meta_data['LabMetaData'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ndx-labmetadata-abf-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e85627ed7b7667811374da8c6d070ced785c24888a7139751caa2181cf5540de |
|
MD5 | 71ab99c26bb6abb290bce1c298894036 |
|
BLAKE2b-256 | 0cc4a11d3febc0fcd6861218f19ba19a30721670cde87836ea5a638ba07a9630 |
Close
Hashes for ndx_labmetadata_abf-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d507f37536cf65731079be3c780c5f3c6348624b83f0a1b7e5134f8f4ddadbb |
|
MD5 | b442867b2ca8041b68355634734e5b74 |
|
BLAKE2b-256 | 878215c759b24e7ca59dc77c70d91b0f6bef12f9bbfe7f8c0afb678d7a05082a |