将数据转换为NWB
nwbext-ecog的Python项目详细描述
#nwbext_ecog:ecog数据的nwb扩展名
作者:ben dichter
有三种数据类型:“surface”、“corticalsurfaces”和“ecogsubject”。` corticalsurfaces只是一个组(就像一个文件夹)来放入“surface”对象。` surface保存皮层切片的表面网格数据(顶点和三角形面)。` ecog subject是subject的一个扩展,它允许您将corticalsurfaces对象添加到`/general/subject``/general/subject``/subject`/subject`/subject`/subject`/subject`/subject`/subject`.<
nwbext_ecog导入皮质表面,ecog subject
nwbfile=pynwb.nwbfile(…)
……
cortical_surfaces=corticalsurfaces()
顶点=vertices)
nwbfile.subject=ecogsubject(皮质面=皮质面)
````
images=[grayscaleimage('image1',data=image\data])
`````
读取:
```python
import nwbext\u ecog
from pynwb import nwbhdf5io
io=nwbhdf5io('path\u to_file.nwb',‘r’)
nwb=io.read()
nwb.subject.cor皮层表面的皮层表面
```
g.皮质表面;
%%loop me
surf=types.ecog.surface('面',面,'顶点',顶点);
皮质面.surface.set(surface_name,surf);
%%%
file.subject=types.ecog.ecogsubject(name,皮质面);
```
作者:ben dichter
有三种数据类型:“surface”、“corticalsurfaces”和“ecogsubject”。` corticalsurfaces只是一个组(就像一个文件夹)来放入“surface”对象。` surface保存皮层切片的表面网格数据(顶点和三角形面)。` ecog subject是subject的一个扩展,它允许您将corticalsurfaces对象添加到`/general/subject``/general/subject``/subject`/subject`/subject`/subject`/subject`/subject`/subject`.<
nwbext_ecog导入皮质表面,ecog subject
nwbfile=pynwb.nwbfile(…)
……
cortical_surfaces=corticalsurfaces()
顶点=vertices)
nwbfile.subject=ecogsubject(皮质面=皮质面)
````
images=[grayscaleimage('image1',data=image\data])
`````
读取:
```python
import nwbext\u ecog
from pynwb import nwbhdf5io
io=nwbhdf5io('path\u to_file.nwb',‘r’)
nwb=io.read()
nwb.subject.cor皮层表面的皮层表面
```
g.皮质表面;
%%loop me
surf=types.ecog.surface('面',面,'顶点',顶点);
皮质面.surface.set(surface_name,surf);
%%%
file.subject=types.ecog.ecogsubject(name,皮质面);
```