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:
```bash
pip install nwbext_ecog.git
```
write:
```python
import pynwb
from nwbext_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:
```python
from pynwb.base import Images
from pynwb.image import GrayscaleImage
subject.images = Images(name='subject images', images=[GrayscaleImage('image1', data=image_data)])
```
read:
```python
import nwbext_ecog
from pynwb import NWBHDF5IO
io = NWBHDF5IO('path_to_file.nwb','r')
nwb = io.read()
nwb.subject.cortical_surfaces
```
### MATLAB
install:
```matlab
generateExtension('/path/to/nwbext_ecog/nwbext_ecog/ecog.namespace.yaml');
```
write:
```matlab
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);
```
Metadata
Release files for nwbext-ecog 0.7.2
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 |
|---|---|---|---|---|
| nwbext_ecog-0.7.2.tar.gz | 4.3 kB | Without provenance | Details for nwbext_ecog-0.7.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nwbext_ecog-0.7.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for nwbext_ecog-0.7.2-py2.py3-none-any.whl |
Total release size: 11.6 kB
Release files / nwbext_ecog-0.7.2.tar.gz
| Download URL | nwbext_ecog-0.7.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2df9c5a1fd0046077d39ef6273d906e43fd4292feac60b3c0ab2569181f4d68
|
|
BLAKE2b-256 checksum How to use checksums |
7d1a06ae9d29da772a24fdec7403e2792c2ead565f66f3273609244a433f86aa
|
| 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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Release files / nwbext_ecog-0.7.2-py2.py3-none-any.whl
| Download URL | nwbext_ecog-0.7.2-py2.py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f6414b7cfdcd81bb1ce92717cbcd1c5c6e86493559060cb138f0da29a5a9eaab
|
|
BLAKE2b-256 checksum How to use checksums |
7f4567ae64875ec3125c511c59cb7afd9737bf5265991918a49c658c76a88425
|
| 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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Security for nwbext-ecog 0.7.2
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.