Нема описа

Fabian Peter Hammerle 898d71570b extend docstring sample: chain Freesurfer & ASHS find() iterator пре 5 година
examples 8bfbe75024 move/rename read_hippocampal_volume_file_dataframe -> freesurfer.HippocampalSubfieldsVolumeFile.read_volumes_dataframe() пре 5 година
freesurfer_volume_reader 898d71570b extend docstring sample: chain Freesurfer & ASHS find() iterator пре 5 година
tests 5f546743fc added ashs.HippocampalSubfieldsVolumeFile.read_volumes_dataframe() пре 5 година
.gitignore 5af1308d8e git ignore build/ & dist/ пре 5 година
.pylintrc 0ca4226d54 added ashs.HippocampalSubfieldsVolumeFile.read_volumes_mm3() пре 5 година
.travis.yml 9f97bd4982 travis-ci: exclude pandas-version<=0.23 && python>=3.7 due to compile error пре 5 година
Pipfile 8fd97e7d69 added failing test covering invalid root path '/' пре 5 година
Pipfile.lock 8fd97e7d69 added failing test covering invalid root path '/' пре 5 година
README.md 5f546743fc added ashs.HippocampalSubfieldsVolumeFile.read_volumes_dataframe() пре 5 година
setup.py 276b501c93 split __main__.py from __init__.py пре 5 година

README.md

freesurfer-volume-reader

Build Status

Python script & library to read hippocampal subfield volumes computed by Freesurfer

https://surfer.nmr.mgh.harvard.edu/fswiki/HippocampalSubfields

Install

pip3 install --user freesurfer-volume-reader
freesurfer-volume-reader --help

Usage

export SUBJECTS_DIR=/my/freesurfer/subjects
freesurfer-volume-reader

or

freesurfer-volume-reader /my/freesurfer/subjects
freesurfer-volume-reader /my/freesurfer/subjects /other/freesurfer/subjects

or

from freesurfer_volume_reader import freesurfer

for volume_file in freesurfer.HippocampalSubfieldsVolumeFile.find('/my/freesurfer/subjects'):
    print(volume_file.subject, volume_file.hemisphere, volume_file.analysis_id)
    print(volume_file.read_volumes_mm3())
    print(volume_file.read_volumes_dataframe())

ASHS

from freesurfer_volume_reader import ashs

for volume_file in ashs.HippocampalSubfieldsVolumeFile.find('/my/ashs/subjects'):
    print(volume_file.subject, volume_file.hemisphere, volume_file.correction)
    print(volume_file.read_volumes_mm3())
    print(volume_file.read_volumes_dataframe())

Tests

pip3 install --user pipenv
git clone https://github.com/fphammerle/freesurfer-volume-reader.git
cd freesurfer-volume-reader
pipenv run pylint freesurfer_volume_reader
pipenv run pytest