Metadata-Version: 2.5
Name: fmralign
Version: 0.0.6
Summary: Functional alignment for fMRI
Author: Thomas Bazeille, Bertrand Thirion
Author-email: Elizabeth DuPre <emd222@cornell.edu>, Pierre-Louis Barbarant <pierre-louis.barbarant@inria.fr>
License: Copyright (c) 2019, fmralign
        All rights reserved.
        
        Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are met:
        
        * Redistributions of source code must retain the above copyright notice, this
          list of conditions and the following disclaimer.
        
        * Redistributions in binary form must reproduce the above copyright notice,
          this list of conditions and the following disclaimer in the documentation
          and/or other materials provided with the distribution.
        
        * Neither the name of fmralign nor the names of its
          contributors may be used to endorse or promote products derived from
          this software without specific prior written permission.
        
        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
        AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
        FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
        SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
        CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
        OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
        OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
License-File: AUTHORS.rst
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: nilearn>=0.13.0
Requires-Dist: pot>=0.9.6
Requires-Dist: robust-laplacian>=1.1.0
Requires-Dist: torch>=2.12.1
Provides-Extra: ot
Requires-Dist: geomloss[full]>=0.3.1; extra == 'ot'
Requires-Dist: pot>=0.9.6; extra == 'ot'
Requires-Dist: torch>=2.12.1; extra == 'ot'
Provides-Extra: ot-geomloss
Requires-Dist: geomloss[full]>=0.3.1; extra == 'ot-geomloss'
Requires-Dist: torch>=2.12.1; extra == 'ot-geomloss'
Provides-Extra: ot-pot
Requires-Dist: pot>=0.9.6; extra == 'ot-pot'
Requires-Dist: torch>=2.12.1; extra == 'ot-pot'
Description-Content-Type: text/markdown

# fmralign

[![Code style: Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
![build](https://img.shields.io/github/actions/workflow/status/fmralign/fmralign/testing.yml?event=push&style=for-the-badge)
![python version](https://img.shields.io/badge/python-3.10_|_3.11_|_3.12_|_3.13_|_3.14-blue?style=for-the-badge)
![license](https://img.shields.io/github/license/fmralign/fmralign?style=for-the-badge)

[Functional alignment for fMRI](https://fmralign.github.io/fmralign/)
(functional Magnetic Resonance Imaging) data.

This light-weight Python library provides access to a range of functional
alignment methods, including Procrustes and Optimal Transport.
It is compatible with and inspired by [Nilearn](http://nilearn.github.io).
Alternative implementations of these ideas can be found in the
[pymvpa](http://www.pymvpa.org), [brainiak](http://brainiak.org)
or [neuroboros](http://neuroboros.github.io) packages.

## Getting Started

### Installation

You can access the latest stable version of fmralign directly with the PyPi
package installer:

```bash
pip install fmralign
```

Optimal Transport methods can be installed with the optional dependency `[ot]`,
which installs both supported backends (`geomloss` and `POT`):

```bash
pip install fmralign[ot]
```

If you only need one backend, you can install it individually:

```bash
pip install fmralign[ot_geomloss]  # geomloss backend only
pip install fmralign[ot_pot]       # POT backend only
```

For development or bleeding-edge features, fmralign can also be installed
directly from source:

```bash
git clone https://github.com/fmralign/fmralign
cd fmralign
pip install -e .
```

### Documentation

You can find an introduction to functional alignment, a user guide and some examples
on how to use the package on the documentation [website](https://fmralign.github.io/fmralign-docs).

## License

This project is licensed under the Simplified BSD License.

## Acknowledgments

This project has received funding from the European Union’s Horizon
2020 Research and Innovation Programme under Grant Agreement No. 785907
(HBP SGA2).
This project was supported by [Digiteo](http://www.digiteo.fr).
