ndx-ecog Extension for NWB:N
Author: Ben Dichter
There are three data types, Surface, CorticalSurfaces, and ECoGSubject. CorticalSurfaces is simply a group (like a folder) to put Surface objects into. Surface holds surface mesh data (vertices and triangular faces) for sections of cortex. ECoGSubject is an extension of Subject that allows you to add the CorticalSurfaces object to /general/subject.
Usage
python
install:
pip install ndx_ecog
write:
import pynwb
from ndx_ecog import CorticalSurfaces, ECoGSubject
nwbfile = pynwb.NWBFile(...)
...
cortical_surfaces = CorticalSurfaces()
## loop me
cortical_surfaces.create_surface(name=name, faces=faces, vertices=veritices)
##
nwbfile.subject = ECoGSubject(cortical_surfaces=cortical_surfaces)
You can optionally attach images of the subject's brain:
from pynwb.base import Images
from pynwb.image import GrayscaleImage
subject.images = Images(name='subject images', images=[GrayscaleImage('image1', data=image_data)])
read:
import nwbext_ecog
from pynwb import NWBHDF5IO
io = NWBHDF5IO('path_to_file.nwb','r')
nwb = io.read()
nwb.subject.cortical_surfaces
MATLAB
install:
generateExtension('/path/to/ndx-ecog/spec/ndx-ecog.namespace.yaml');
write:
cortical_surfaces = types.ecog.CorticalSurfaces;
%%% loop me
surf = types.ecog.Surface('faces', faces, 'vertices', vertices);
cortical_surfaces.surface.set(surface_name, surf);
%%%
file.subject = types.ecog.ECoGSubject(name, cortical_surfaces);
Release files for ndx-ecog 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 | |
|---|---|---|---|
| ndx-ecog-0.1.1.tar.gz | 14.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ndx_ecog-0.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 20.8 kB
Release files / ndx-ecog-0.1.1.tar.gz
| Download URL | ndx-ecog-0.1.1.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b94909aa6f39bbe4141881f68a68d20148df6edc8c8a686751f2cafd36d4c781
|
|
BLAKE2b-256 checksum How to use checksums |
0c468ed1244e73eb2caa2b0a438f8693a0438e07a8377788ac683ab54471b276
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Release files / ndx_ecog-0.1.1-py2.py3-none-any.whl
| Download URL | ndx_ecog-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
88e40f5d0403889198815144602ea16c84a20a88a4044b437546996b9ac15d15
|
|
BLAKE2b-256 checksum How to use checksums |
d3da10586604f20f586471e2c34d93ab850e3279e827e52bb9209acc21500d76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|