説明なし

Fabian Peter Hammerle 42be0083ef CorticalParcellationStats: changed type of attribute `whole_brain_measurements` to `pandas.DataFrame` 4 年 前
freesurfer_stats 42be0083ef CorticalParcellationStats: changed type of attribute `whole_brain_measurements` to `pandas.DataFrame` 4 年 前
tests 42be0083ef CorticalParcellationStats: changed type of attribute `whole_brain_measurements` to `pandas.DataFrame` 4 年 前
.gitignore 994cf548d4 added CorticalParcellationStats.read() reading stats file headers 4 年 前
.pylintrc 7cd5af01f2 pylint: ignore missing-docstring 4 年 前
.style.yapf d8cf13e57b setup yapf (pep8 style) 4 年 前
Pipfile 994cf548d4 added CorticalParcellationStats.read() reading stats file headers 4 年 前
Pipfile.lock 994cf548d4 added CorticalParcellationStats.read() reading stats file headers 4 年 前
README.rst 42be0083ef CorticalParcellationStats: changed type of attribute `whole_brain_measurements` to `pandas.DataFrame` 4 年 前
setup.py 994cf548d4 added CorticalParcellationStats.read() reading stats file headers 4 年 前

README.rst

freesurfer-stats
================

TODO add badges

Python Library to Read FreeSurfer's cortical parcellation anatomical statistics

Freesurfer https://surfer.nmr.mgh.harvard.edu/

Install
-------

.. code:: sh

pip3 install --user freesurfer-stats

Releases follow the `semantic versioning ` scheme.

Usage
-----

.. code:: python

>>> from freesurfer_stats import CorticalParcellationStats
>>> stats = CorticalParcellationStats.read('tests/subjects/fabian/stats/lh.aparc.DKTatlas.stats')
>>> stats.headers['CreationTime'].isoformat()
'2019-05-09T21:05:54+00:00'
>>> stats.headers['cvs_version']
'Id: mris_anatomical_stats.c,v 1.79 2016/03/14 15:15:34 greve Exp'
>>> stats.headers['cmdline'][:64]
'mris_anatomical_stats -th3 -mgz -cortex ../label/lh.cortex.label'
>>> stats.hemisphere
'left'
>>> stats.whole_brain_measurements['estimated_total_intracranial_volume_mm^3']
0 1.670487e+06
Name: estimated_total_intracranial_volume_mm^3, dtype: float64
>>> stats.whole_brain_measurements['white_surface_total_area_mm^2']
0 98553
Name: white_surface_total_area_mm^2, dtype: int64
>>> stats.structure_measurements[['Structure Name', 'Surface Area (mm^2)',
... 'Gray Matter Volume (mm^3)']].head()
Structure Name Surface Area (mm^2) Gray Matter Volume (mm^3)
0 caudalanteriorcingulate 1472 4258
1 caudalmiddlefrontal 3039 8239
2 cuneus 2597 6722
3 entorhinal 499 2379
4 fusiform 3079 9064