Metadata-Version: 2.4
Name: brain-pasta
Version: 1.1.1
Summary: Memory-efficient Parametric Spatial Test for Associations
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: numpy>=1.26
Requires-Dist: scipy>=1.13
Requires-Dist: scikit-learn>=1.6
Dynamic: requires-python

# brain-pasta

`brain-pasta` provides a memory-efficient Python implementation of the
Parametric Spatial Test for Associations (PaSTA), including stationary,
nonstationary, and bilateral analyses.

## Installation

```bash
python -m pip install brain-pasta
```

## Usage

```python
import pasta

fit = pasta.pasta(x, y, coord)
bilateral_fit = pasta.pasta_bilateral(x, y, hemi, coord)
```

Both functions accept `max_nfev` to control the maximum number of function
evaluations used for variogram optimization. Its default is `10_000`.

```python
fit = pasta.pasta(x, y, coord, max_nfev=20_000)
```

The primary result fields are `pef`, `rX`, and `nef`. Bilateral results also
include `pef_hemi` and the complete hemisphere fits in `fit_hemi`.
