Skip to content

NLTools

Version CI DOI Python Versions Platforms

NLTools is a Python package for analyzing neuroimaging data. It is the analysis engine powering neuro-learn. There are tools to perform data manipulation and analyses such as univariate GLMs, predictive multivariate modeling, and representational similarity analyses. It is based loosely off of Tor Wager's object-oriented Matlab toolbox and leverages much code from nilearn and scikit-learn.

You can install it using uv or pip:

uv add nltools
pip install nltools

Watch a video in which Dr. Eshin Jolly, PhD outlines some of the design principles behind nltools at SciPy 2020:

Learn how to use nltools through these full courses:

  • DartBrains is an introductory neuroimaging analysis course that uses nltools.
  • Naturalistic-Data is a course covering advanced methods for analyzing naturalistic data. Many of its tutorials use nltools.

The Reference has one page per namespace: the data classes you work with (BrainData, Adjacency, DesignMatrix), and the functions in nltools.algorithms and the smaller namespaces. Upgrading from v0.5? Start with Migrating from v0.5.