Skip to main content

pyFSViz

ci codecov documentation pypi version

Description

Python tools for FreeSurfer visualization and quality assurance. pyFSViz builds HTML reports from existing recon-all output (individual screenshots and group metric summaries). It does not run FreeSurfer reconstructions.

While manual QA of FreeSurfer data is always recommended, this workflow become untenable with larger datasets, especially longitudinal ones. Several tools are available (some of which are utilized by this package), however, after doing manual QA myself for years, I've found a few key pieces missing.

  • The ability to check Talairach registrations (an important first step as this affects downstream processing and brain volume calculations)
  • An easy way to check for outliers at a glance (can be done statistically later on but also useful in catching errors earlier on in the process, especially for large datasets)
  • Comparison between groups (especially helpful for multi-site data that may have different scanner characteristics)

pyFSViz relies on code from Deep-MI's fsqc, as well as other neuroimaging python packages such as nipype and nireports.

FreeSurfer and FSL are not part of this install. Install those tools separately and source their setup scripts in the same shell or job before using pyFSViz. See Prerequisites.

Installation

Requires Python 3.10 or newer. This installs the Python package only.

pip install pyfsviz

With uv:

uv tool install pyfsviz

Usage

After FreeSurfer and FSL are initialized:

from pyfsviz import FreeSurfer

fs = FreeSurfer()
fs.gen_batch_reports("reports/")
fs.gen_group_report("reports/")

See the quick start for output layout, group comparisons, and batch flags.

Acknowledgements

Thanks to pawamoy's copier project for package templates!

AI Disclosure

Please note that the default Cursor Agent was used in this project. This included models suchs as Grok-4.6 and Composer-2.5. The agent was used to improve base code, add testing, help with html development, and documentation.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfsviz-0.6.14.tar.gz (8.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfsviz-0.6.14-py3-none-any.whl (6.6 MB view details)

Uploaded Python 3

File details

Details for the file pyfsviz-0.6.14.tar.gz.

File metadata

  • Download URL: pyfsviz-0.6.14.tar.gz
  • Upload date:
  • Size: 8.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pyfsviz-0.6.14.tar.gz
Algorithm Hash digest
SHA256 33fab30044d7b6eb09c68538fbaa68c38536c0479cd9ae3df3380e9ed4456366
MD5 f4c0d81a01cdf053dd9d5143f675b867
BLAKE2b-256 2aaf99b04e5010d6e9d31a4d1f16fe138fbf05a477fe48beda370cd70be3fa0f

See more details on using hashes here.

File details

Details for the file pyfsviz-0.6.14-py3-none-any.whl.

File metadata

  • Download URL: pyfsviz-0.6.14-py3-none-any.whl
  • Upload date:
  • Size: 6.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pyfsviz-0.6.14-py3-none-any.whl
Algorithm Hash digest
SHA256 3d9845511ad5e5e645f775563c148d129895e849d54ad0702660bda402c26b5c
MD5 2da54e5359d6dafe2db924ab0f7347f8
BLAKE2b-256 23bec1fab32f78f32e80ecf0f0d74e9bb2e404eacf1ed423763d92f6b93b347f

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.16

2 files

0.6.15

2 files

This release

0.6.14 This release

2 files

0.6.13

2 files

0.6.12

2 files

0.6.11

2 files

0.6.10

2 files

0.6.9

2 files

0.6.8

2 files

0.6.7

2 files

0.6.6

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

0.6.1

2 files

0.6.0

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page