{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "155622" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from freesurfer_surface import Surface\n", "\n", "surface = Surface.read_triangular('../tests/subjects/fabian/surf/lh.pial')\n", "len(surface.vertices)" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
rightanteriorsuperior
0-2.126251-93.136818-8.335812
1-2.696686-93.194458-8.206024
2-3.738874-93.369530-8.548558
3-4.594223-93.183983-8.173017
4-2.160212-93.190521-8.865552
\n", "
" ], "text/plain": [ " right anterior superior\n", "0 -2.126251 -93.136818 -8.335812\n", "1 -2.696686 -93.194458 -8.206024\n", "2 -3.738874 -93.369530 -8.548558\n", "3 -4.594223 -93.183983 -8.173017\n", "4 -2.160212 -93.190521 -8.865552" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import pandas\n", "\n", "vertex_frame = pandas.DataFrame(surface.vertices)\n", "vertex_frame.head()" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
rightanteriorsuperior
count155622.000000155622.000000155622.000000
mean-26.856146-20.50914424.335409
std18.79625939.09262228.195845
min-68.530327-93.548004-39.114269
25%-41.877634-53.5728241.600599
50%-26.917927-23.10232424.000984
75%-9.77634310.14722647.299869
max7.29156070.08596886.737892
\n", "
" ], "text/plain": [ " right anterior superior\n", "count 155622.000000 155622.000000 155622.000000\n", "mean -26.856146 -20.509144 24.335409\n", "std 18.796259 39.092622 28.195845\n", "min -68.530327 -93.548004 -39.114269\n", "25% -41.877634 -53.572824 1.600599\n", "50% -26.917927 -23.102324 24.000984\n", "75% -9.776343 10.147226 47.299869\n", "max 7.291560 70.085968 86.737892" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "vertex_frame.describe()" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.7" } }, "nbformat": 4, "nbformat_minor": 2 }