Fabian Peter Hammerle 2361cd5d6b fix bad-continuation | %!s(int64=5) %!d(string=hai) anos | |
---|---|---|
examples | %!s(int64=5) %!d(string=hai) anos | |
freesurfer_volume_reader | %!s(int64=5) %!d(string=hai) anos | |
tests | %!s(int64=5) %!d(string=hai) anos | |
.coveragerc | %!s(int64=5) %!d(string=hai) anos | |
.gitignore | %!s(int64=5) %!d(string=hai) anos | |
.pylintrc | %!s(int64=5) %!d(string=hai) anos | |
.travis.yml | %!s(int64=5) %!d(string=hai) anos | |
Pipfile | %!s(int64=5) %!d(string=hai) anos | |
Pipfile.lock | %!s(int64=5) %!d(string=hai) anos | |
README.md | %!s(int64=5) %!d(string=hai) anos | |
setup.py | %!s(int64=5) %!d(string=hai) anos |
Python script & library to read hippocampal subfield volumes computed by Freesurfer & ASHS
pip3 install --user freesurfer-volume-reader
freesurfer-volume-reader --help
Releases follow the semantic versioning scheme.
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())
export SUBJECTS_DIR=/my/ashs/subjects
freesurfer-volume-reader --source-types ashs
or
freesurfer-volume-reader --source-types ashs -- /my/ashs/subjects
freesurfer-volume-reader --source-types ashs -- /my/ashs/subjects /other/ashs/subjects
or
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())
from freesurfer_volume_reader import ashs
for volume_file in ashs.IntracranialVolumeFile.find('/my/ashs/subjects'):
print(volume_file.subject)
print(volume_file.read_volume_mm3())
print(volume_file.read_volume_series())
freesurfer-volume-reader --source-types ashs freesurfer-hipposf -- /my/subjects
freesurfer-volume-reader --source-types ashs freesurfer-hipposf -- /my/ashs/subjects /my/freesurfer/subjects /other/subjects
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