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.7.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.7-py3-none-any.whl (6.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfsviz-0.6.7.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.7.tar.gz
Algorithm Hash digest
SHA256 c9aae8a0da3408e1141e5dfcd7363aaa088c638c0c321b2515d481eb9ba3eff4
MD5 aa511c6da9ca3e60874fea26d68acfbe
BLAKE2b-256 e714eb4062d9c1c610bbb327c5257b523a78ca7a32c907af2c93042a9e0f8e05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyfsviz-0.6.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 25d0201692b195f8eabd8cec2a4d7338038bf891f8e0d789bb727c4be350cc51
MD5 afe87fd7bf5f1d0dd7d48797f303de81
BLAKE2b-256 0afdd9f7e53e8017d008d9531937ee6152703419f8675537f6cfc4430cc62de7

See more details on using hashes here.

Release history Release notifications | RSS feed

0.6.15

2 files

0.6.14

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

This release

0.6.7 This release

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