Skip to content

jcreinhold/pyrobex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Jacob Reinhold
Oct 5, 2022
00435c5 · Oct 5, 2022

History

38 Commits
Jun 11, 2021
May 25, 2021
Oct 5, 2022
Aug 21, 2021
May 5, 2021
May 5, 2021
May 5, 2021
May 5, 2021
May 25, 2021
May 5, 2021
May 6, 2021
May 6, 2021
Jun 29, 2021
Aug 21, 2021
May 6, 2021
Oct 5, 2022
Oct 5, 2022
Jun 11, 2021

Repository files navigation

pyrobex

Documentation Status

Python bindings for ROBEX brain extraction.

This package comes with ROBEX v1.2 for Linux. Windows is not currently supported.

Install

The easiest way to install the package is with:

pip install pyrobex

Alternatively, you can download the source and run:

python setup.py install

Basic Usage

This package provides a CLI (to the CLI) of ROBEX for convenience and testing which can be accessed through, e.g.,:

robex path/to/t1w_image.nii -os path/to/stripped.nii -om path/to/mask.nii

The real use-case of this package is by importing robex and using it within another script or neuroimaging pipeline, e.g.,

import nibabel as nib
from pyrobex.robex import robex
image = nib.load('path/to/t1w_image.nii')
stripped, mask = robex(image)

References

If you use this package in support of an academic publication, please cite:

@article{iglesias2011robust,
  title={Robust brain extraction across datasets and comparison with publicly available methods},
  author={Iglesias, Juan Eugenio and Liu, Cheng-Yi and Thompson, Paul M and Tu, Zhuowen},
  journal={IEEE transactions on medical imaging},
  volume={30},
  number={9},
  pages={1617--1634},
  year={2011},
  publisher={IEEE}
}