{ "info": { "author": "Ben Dichter", "author_email": "ben.dichter@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: Science/Research" ], "description": "# ndx-ecog Extension for NWB:N\n\nAuthor: Ben Dichter\n\nThere 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`.\n\n## Usage\n\n### python\n\ninstall:\n```bash\npip install ndx_ecog\n```\n\nwrite:\n```python\nimport pynwb\nfrom ndx_ecog import CorticalSurfaces, ECoGSubject\n\nnwbfile = pynwb.NWBFile(...)\n\n...\n\ncortical_surfaces = CorticalSurfaces()\n## loop me\n cortical_surfaces.create_surface(name=name, faces=faces, vertices=veritices)\n##\nnwbfile.subject = ECoGSubject(cortical_surfaces=cortical_surfaces)\n```\n\nYou can optionally attach images of the subject's brain:\n```python\nfrom pynwb.base import Images\nfrom pynwb.image import GrayscaleImage\n\nsubject.images = Images(name='subject images', images=[GrayscaleImage('image1', data=image_data)])\n```\n\nread:\n```python\nimport nwbext_ecog\nfrom pynwb import NWBHDF5IO\nio = NWBHDF5IO('path_to_file.nwb','r')\nnwb = io.read()\nnwb.subject.cortical_surfaces\n```\n\n### MATLAB\ninstall:\n```matlab\ngenerateExtension('/path/to/ndx-ecog/spec/ndx-ecog.namespace.yaml');\n```\n\nwrite:\n```matlab\ncortical_surfaces = types.ecog.CorticalSurfaces;\n\n%%% loop me\n surf = types.ecog.Surface('faces', faces, 'vertices', vertices);\n cortical_surfaces.surface.set(surface_name, surf);\n%%%\n\nfile.subject = types.ecog.ECoGSubject(name, cortical_surfaces);\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "BSD 3-Clause", "maintainer": "", "maintainer_email": "", "name": "ndx-ecog", "package_url": "https://pypi.org/project/ndx-ecog/", "platform": "", "project_url": "https://pypi.org/project/ndx-ecog/", "project_urls": null, "release_url": "https://pypi.org/project/ndx-ecog/0.1.1/", "requires_dist": [ "pynwb (>=1.1.2)" ], "requires_python": "", "summary": "An NWB extension for storing the cortical surface of subjects in ECoG experiments", "version": "0.1.1" }, "last_serial": 5980786, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2ec6953c947bec1841c302ed457df90a", "sha256": "716c4fdb6889a9542d18e5922b4e315f9b7c676283b88e682b0ac219d545cbbe" }, "downloads": -1, "filename": "ndx_ecog-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2ec6953c947bec1841c302ed457df90a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6130, "upload_time": "2019-10-15T23:37:20", "url": "https://files.pythonhosted.org/packages/f6/57/b0e80e1df0d1f5050cd1a51534c94c36274ffbd376eb042459d38c6448c3/ndx_ecog-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "819d91e63edcdcfe800c0a625e9b2d50", "sha256": "cb198a600a3a2e3a4323b4d4381640cb181bea423f8550356979a7b53f8ed427" }, "downloads": -1, "filename": "ndx-ecog-0.1.0.tar.gz", "has_sig": false, "md5_digest": "819d91e63edcdcfe800c0a625e9b2d50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14784, "upload_time": "2019-10-15T23:37:22", "url": "https://files.pythonhosted.org/packages/ee/76/85113cab0012ff77af73fad3ba70525e4358a2bcbc0af95ca3b769c4b035/ndx-ecog-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "09f5160a9d0168b0539ff92233374990", "sha256": "88e40f5d0403889198815144602ea16c84a20a88a4044b437546996b9ac15d15" }, "downloads": -1, "filename": "ndx_ecog-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "09f5160a9d0168b0539ff92233374990", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6109, "upload_time": "2019-10-16T02:07:54", "url": "https://files.pythonhosted.org/packages/d3/da/10586604f20f586471e2c34d93ab850e3279e827e52bb9209acc21500d76/ndx_ecog-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "641c047ff833dcf65a9a2285d880b4c1", "sha256": "b94909aa6f39bbe4141881f68a68d20148df6edc8c8a686751f2cafd36d4c781" }, "downloads": -1, "filename": "ndx-ecog-0.1.1.tar.gz", "has_sig": false, "md5_digest": "641c047ff833dcf65a9a2285d880b4c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14740, "upload_time": "2019-10-16T02:07:56", "url": "https://files.pythonhosted.org/packages/0c/46/8ed1244e73eb2caa2b0a438f8693a0438e07a8377788ac683ab54471b276/ndx-ecog-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "09f5160a9d0168b0539ff92233374990", "sha256": "88e40f5d0403889198815144602ea16c84a20a88a4044b437546996b9ac15d15" }, "downloads": -1, "filename": "ndx_ecog-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "09f5160a9d0168b0539ff92233374990", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6109, "upload_time": "2019-10-16T02:07:54", "url": "https://files.pythonhosted.org/packages/d3/da/10586604f20f586471e2c34d93ab850e3279e827e52bb9209acc21500d76/ndx_ecog-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "641c047ff833dcf65a9a2285d880b4c1", "sha256": "b94909aa6f39bbe4141881f68a68d20148df6edc8c8a686751f2cafd36d4c781" }, "downloads": -1, "filename": "ndx-ecog-0.1.1.tar.gz", "has_sig": false, "md5_digest": "641c047ff833dcf65a9a2285d880b4c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14740, "upload_time": "2019-10-16T02:07:56", "url": "https://files.pythonhosted.org/packages/0c/46/8ed1244e73eb2caa2b0a438f8693a0438e07a8377788ac683ab54471b276/ndx-ecog-0.1.1.tar.gz" } ] }