|
@@ -21,14 +21,34 @@
|
|
|
"\n",
|
|
|
"SUBJECTS_DIR = '../tests/subjects'\n",
|
|
|
"surface = Surface.read_triangular(SUBJECTS_DIR + '/fabian/surf/lh.pial')\n",
|
|
|
- "surface.load_annotation(SUBJECTS_DIR + '/fabian/label/lh.aparc.annot')\n",
|
|
|
- "len(surface.vertex_annotation_values)"
|
|
|
+ "surface.load_annotation_file(SUBJECTS_DIR + '/fabian/label/lh.aparc.annot')\n",
|
|
|
+ "len(surface.annotation.vertex_values)"
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"cell_type": "code",
|
|
|
"execution_count": 2,
|
|
|
"metadata": {},
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "data": {
|
|
|
+ "text/plain": [
|
|
|
+ "'/autofs/space/tanha_002/users/greve/fsdev.build/average/colortable_desikan_killiany.txt'"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "execution_count": 2,
|
|
|
+ "metadata": {},
|
|
|
+ "output_type": "execute_result"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "source": [
|
|
|
+ "surface.annotation.colortable_path.decode()"
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "cell_type": "code",
|
|
|
+ "execution_count": 3,
|
|
|
+ "metadata": {},
|
|
|
"outputs": [
|
|
|
{
|
|
|
"data": {
|
|
@@ -94,7 +114,7 @@
|
|
|
"4 6558940 4"
|
|
|
]
|
|
|
},
|
|
|
- "execution_count": 2,
|
|
|
+ "execution_count": 3,
|
|
|
"metadata": {},
|
|
|
"output_type": "execute_result"
|
|
|
}
|
|
@@ -103,13 +123,13 @@
|
|
|
"import pandas\n",
|
|
|
"\n",
|
|
|
"vertex_frame = pandas.DataFrame({'vertex_index': vertex_index, 'annotation_value': annotation_value}\n",
|
|
|
- " for vertex_index, annotation_value in surface.vertex_annotation_values.items())\n",
|
|
|
+ " for vertex_index, annotation_value in surface.annotation.vertex_values.items())\n",
|
|
|
"vertex_frame.head()"
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"cell_type": "code",
|
|
|
- "execution_count": 3,
|
|
|
+ "execution_count": 4,
|
|
|
"metadata": {},
|
|
|
"outputs": [
|
|
|
{
|
|
@@ -153,7 +173,7 @@
|
|
|
"Name: annotation_value, dtype: int64"
|
|
|
]
|
|
|
},
|
|
|
- "execution_count": 3,
|
|
|
+ "execution_count": 4,
|
|
|
"metadata": {},
|
|
|
"output_type": "execute_result"
|
|
|
}
|