https://github.com/nilearn/nilearn
Machine learning for NeuroImaging in Python
https://github.com/nilearn/nilearn
brain-connectivity brain-imaging brain-mri decoding fmri machine-learning mvpa neuroimaging python
Last synced: about 1 month ago
JSON representation
Machine learning for NeuroImaging in Python
- Host: GitHub
- URL: https://github.com/nilearn/nilearn
- Owner: nilearn
- License: bsd-3-clause
- Created: 2011-01-09T19:02:23.000Z (almost 16 years ago)
- Default Branch: main
- Last Pushed: 2026-10-07T06:08:01.000Z (about 2 months ago)
- Last Synced: 2026-10-10T16:47:21.181Z (about 2 months ago)
- Topics: brain-connectivity, brain-imaging, brain-mri, decoding, fmri, machine-learning, mvpa, neuroimaging, python
- Language: Python
- Homepage: http://nilearn.github.io
- Size: 135 MB
- Stars: 1,443
- Watchers: 58
- Forks: 687
- Open Issues: 285
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Citation: CITATION.cff
- Authors: AUTHORS.rst
- Agents: AGENTS.md
- Claude: CLAUDE.md
Awesome Lists containing this project
- awesome-advanced-metering-infrastructure - nilearn - Machine learning for NeuroImaging in Python. (Python)
- awesome-python-data-science - nilearn - NeuroImaging. (Scientific)
- awesome-2026-ai-machine-learning-1000projects - nilearn - Machine learning for neuroimaging (๐ Project Purpose / Machine Learning (Intermediate-Level)
- awesome-python-machine-learning - nilearn - Nilearn is a Python module for fast and easy statistical learning on NeuroImaging data. (Uncategorized / Uncategorized)
- awesome-python-machine-learning-resources - GitHub - (๐จโ๐ป 190 ยท ๐ 450 ยท ๐ฅ 64 ยท ๐ฆ 1.7K ยท ๐ 1.6K - 14% open ยท โฑ๏ธ 25.08.2022): (ๅป็้ขๅ)
- fucking-awesome-machine-learning - nilearn - Machine learning for NeuroImaging in Python. (Python)
- awesome-machine-learning - nilearn - Machine learning for NeuroImaging in Python. (Python)
- awesome-machine-learning - nilearn - Machine learning for NeuroImaging in Python. (Python)
- awesome-machine-master - nilearn - Machine learning for NeuroImaging in Python (Python / General-Purpose Machine Learning)
- awesome-machine-learning - nilearn - Machine learning for NeuroImaging in Python. (Python / General-Purpose Machine Learning)
- awesome-machine-learning - nilearn - Machine learning for NeuroImaging in Python. (Python / General-Purpose Machine Learning)
- awesome-machine-learning - nilearn - Machine learning for NeuroImaging in Python. (Python / General-Purpose Machine Learning)
- awesome-mri-physics - Nilearn
- awesome-healthmetrics - nilearn: machine learning for neuroimaging in Python
- awesome-machine-learning - nilearn - Machine learning for NeuroImaging in Python. (Python / General-Purpose Machine Learning)
- awesome-machine-learning-cn - ๅฎ็ฝ
- awesome-neuroscience - Nilearn - Module for performing statistical learning/machine learning on NeuroImaging data. (Programming / Python)
- awesome-ai-for-science - nilearn - Machine learning and statistical learning for neuroimaging in Python, providing easy-to-use tools for fMRI and MRI analysis including decoding, connectivity estimation, and parcellation with seamless scikit-learn integration (INRIA Parietal team, 1.4K+ stars) (๐ฌ Domain-Specific Applications / ๐งฌ Biology & Medicine)
- awesome-neuroscience - Nilearn - Module for performing statistical learning/machine learning on NeuroImaging data. (Programming / Python)
README
.. image:: https://img.shields.io/pypi/v/nilearn.svg
:target: https://pypi.org/project/nilearn/
:alt: Pypi Package
.. image:: https://img.shields.io/pypi/pyversions/nilearn.svg
:target: https://pypi.org/project/nilearn/
:alt: PyPI - Python Version
.. image:: https://github.com/nilearn/nilearn/actions/workflows/build-docs.yml/badge.svg
:target: https://github.com/nilearn/nilearn/actions/workflows/build-docs.yml
:alt: Github Actions Doc Build Status
.. image:: https://github.com/nilearn/nilearn/actions/workflows/test_with_tox.yml/badge.svg?branch=main&event=push
:target: https://github.com/nilearn/nilearn/actions/workflows/test_with_tox.yml
:alt: Github Actions Test Status
.. image:: https://codecov.io/gh/nilearn/nilearn/graph/badge.svg?token=KpYArSdyXv
:target: https://app.codecov.io/gh/nilearn/nilearn
:alt: Coverage Status
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.8397156.svg
:target: https://doi.org/10.5281/zenodo.8397156
.. image:: https://img.shields.io/badge/bluesky-Follow_nilearn-blue?logo=bluesky
:target: https://bsky.app/profile/nilearn.bsky.social
:alt: Bluesky
.. image:: https://img.shields.io/youtube/channel/subscribers/UCU6BMAi2zOhNFnDkbdevmPw
:target: https://www.youtube.com/@nilearnevents5116
:alt: YouTube Channel Subscribers
.. image:: https://img.shields.io/mastodon/follow/109669703955432270?domain=https%3A%2F%2Ffosstodon.org%2F
:target: https://fosstodon.org/@nilearn
:alt: Mastodon
.. image:: https://img.shields.io/discord/711993354929569843
:target: https://discord.com/invite/SsQABEJHkZ
:alt: Discord
nilearn
=======
Nilearn enables approachable and versatile analyses of brain volumes and surfaces.
It provides statistical and machine-learning tools, with instructive documentation & friendly community.
It supports general linear model (GLM) based analysis
and leverages the `scikit-learn `_ Python toolbox
for multivariate statistics with applications
such as predictive modeling, classification, decoding, or connectivity analysis.
Important links
===============
- Official source code repo: https://github.com/nilearn/nilearn/
- HTML documentation (stable release): https://nilearn.github.io/
Install
=======
Latest release
--------------
The easiest way to install Nilearn is using pip.
Execute the following command in the command prompt / terminal
in the proper python environment:
.. code-block:: bash
python -m pip install nilearn
Please find all installation instructions
`on our install page `_.
Development version
-------------------
Please find all development setup instructions in the
`contribution guide `_.
Drop-in Hours
=============
The Nilearn team organizes regular online drop-in hours to answer questions,
discuss feature requests, or have any Nilearn-related discussions. Nilearn
drop-in hours occur *every Wednesday from 4pm to 5pm UTC*, and we make sure that at
least one member of the core-developer team is available. These events are held
on `Jitsi Meet `_ and are fully open,
anyone is welcome to join!
For more information and ways to engage with the Nilearn team see
`How to get help `_.
Dependencies
============
The required dependencies to use Nilearn are listed
in the file `pyproject.toml `_.
If you are using Nilearn plotting functionalities or running the examples, ``matplotlib`` is required.
Some plotting functions in Nilearn require both matplotlib and plotly as plotting engines.
In order to use the plotly engine in these functions,
you will need to install both plotly and kaleido, which can both be installed with pip and anaconda.
Please find all installation instructions
`on our install page `_.
If you want to run the tests,
extra dependencies (such as ``pytest`` and ``pytest-cov``) are required.
See our `development setup instructions `_
to know how to install them.
Development
===========
Detailed instructions on how to contribute are available at
https://nilearn.github.io/stable/development.html